<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Winn &#187; plug-in</title>
	<atom:link href="http://winn.ws/archives/tag/plug-in/feed" rel="self" type="application/rss+xml" />
	<link>http://winn.ws</link>
	<description>Standards-based design &#38; development</description>
	<lastBuildDate>Wed, 01 Feb 2012 05:30:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>WinnScriptatype:Rails v1.7b</title>
		<link>http://winn.ws/archives/135</link>
		<comments>http://winn.ws/archives/135#comments</comments>
		<pubDate>Fri, 04 Apr 2008 03:18:55 +0000</pubDate>
		<dc:creator>Greg Winn</dc:creator>
				<category><![CDATA[WinnScriptatype]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[plug-in]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://www.winn.ws/archives/135</guid>
		<description><![CDATA[I just released WinnScriptatype version 1.7 beta on the RubyForge project page. I have also made some fixes to version 1.5 and it is now production ready. The latest release has added some new functionality and the ability to make calls to display text. The call still supports the effects and Ajax request url along [...]]]></description>
			<content:encoded><![CDATA[<p>I just released WinnScriptatype version 1.7 beta on the RubyForge project page. I have also made some fixes to version 1.5 and it is now production ready. The latest release has added some new functionality and the ability to make calls to display text. The call still supports the effects and Ajax request url along with url options.</p>
<p>[ruby]<br />
# New calls in 1.7b<br />
textlink_do_fade<br />
textlink_do_puff<br />
textlink_do_blindup<br />
textlink_do_dropout<br />
[/ruby]</p>
<p>I expect i will be making the same update to the PHP version soon so keep an eye out for that!</p>
<p>Take a look at the <a href="http://rubyforge.org/projects/winnscriptatype/">WinnScriptatype:Rails RubyForge project page</a> and download the latest!</p>
]]></content:encoded>
			<wfw:commentRss>http://winn.ws/archives/135/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails Plugin: WinnScriptatype</title>
		<link>http://winn.ws/archives/129</link>
		<comments>http://winn.ws/archives/129#comments</comments>
		<pubDate>Thu, 27 Mar 2008 02:45:00 +0000</pubDate>
		<dc:creator>Greg Winn</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[WinnScriptatype]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[plug-in]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://www.winn.ws/archives/129</guid>
		<description><![CDATA[Making an Ajax checkbox just got easy. This very simple plugin was built for my own use. The idea was to make one call for my checkbox, update to the database, and an effect. This plugin is easy to use and install, i dont have it setup in an svn yet so you will need [...]]]></description>
			<content:encoded><![CDATA[<p>Making an Ajax checkbox just got easy. This very simple plugin was built for my own use. The idea was to make one call for my checkbox, update to the database, and an effect. This plugin is easy to use and install, i dont have it setup in an svn yet so you will need to download it and place it in RAILS_ROOT/vendor/plugins/HERE.</p>
<p>I had been working on this plugin for a few weeks in making a new application. I kept writing the &#8220;input, Ajax.Request and, Effect.Fade&#8221;, so i needed a way to make that fast and do what i need. And out came this handy plugin!</p>
<p>[ruby]<br />
# Lets use this new plugin<br />
checkbox_do_fade(&#8216;theDiv&#8217;, &#8216;CheckboxID&#8217;, {:controller => &#8216;todo&#8217;, :action => &#8216;finish&#8217;, :id => todo.id}, {:userid => user.id})</p>
<p>[/ruby]</p>
<h4><strong>Here is an over view of the options:</strong></h4>
<p>[ruby]<br />
checkbox_do_fade(&#8216;*&#8217;, &#8216;**&#8217;, {***}, {****})</p>
<p>[Element ID]* This is the name of the element you want to effect such as a div or table (tr,td)&#8230;</p>
<p>[Checkbox ID]** This is the id of the checkbox it self</p>
<p>[URL/path]*** this is the url for the update to take place NOTE: always use controller,<br />
              action, and id DO NOT place other variables in this block that is for the next block.</p>
<p>[URL/path options]**** This block is used for url options like so: (/path/to/1?userid=1) as you see<br />
                       userid is 1, this is done by using the url options block. You may send an unlimited number of<br />
                       url options with this.</p>
<p># Below are the ONLY supported calls<br />
checkbox_do_fade # This will fade the element<br />
checkbox_do_puff # This will puff the element<br />
checkbox_do_blindup # and so on&#8230;<br />
checkbox_do_dropout # again&#8230;<br />
[/ruby]</p>
<p>Ready to start using it? <a href="http://svn.winn.ws/winn_scriptatype.zip">Download WinnScriptatype</a></p>
<p>You will also need help installing this plugin so take a look at <a href="http://rubyonrailsrailway.com/winnscriptatype">Ruby on Rails Railway : WinnScriptatype</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://winn.ws/archives/129/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Magic Multi-Connections</title>
		<link>http://winn.ws/archives/126</link>
		<comments>http://winn.ws/archives/126#comments</comments>
		<pubDate>Tue, 25 Mar 2008 14:00:55 +0000</pubDate>
		<dc:creator>Greg Winn</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[plug-in]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://www.winn.ws/archives/126</guid>
		<description><![CDATA[This plug-in is a great one! I have found a few bugs but it did the job just as i needed it to. I am using this plug-in to connect to three databases, where i am selecting, updating, inserting, and deleting. By adding this plug-in i was able to set my databases in the database.yml [...]]]></description>
			<content:encoded><![CDATA[<p>This plug-in is a great one! I have found a few bugs but it did the job just as i needed it to. I am using this plug-in to connect to three databases, where i am selecting, updating, inserting, and deleting. By adding this plug-in i was able to set my databases in the database.yml file and name them as i wanted. Next i adding two modules to my environment.rb file. After that i was able to connect to each of the databases with ease.</p>
<p>Below is how my database.yml file looks:</p>
<p>[ruby]<br />
databaseone:<br />
  adapter: mysql<br />
  database: one<br />
  username: root<br />
  password:<br />
  host: localhost</p>
<p>databasetwo:<br />
  adapter: mysql<br />
  database: two<br />
  username: root<br />
  password:<br />
  host: localhost</p>
<p>production:<br />
  adapter: mysql<br />
  database: three<br />
  username: root<br />
  password:<br />
  host: localhost<br />
[/ruby]</p>
<p>Now in my environment.rb file i have:</p>
<p>[ruby]<br />
module Dbone<br />
  establish_connection :databaseone<br />
end<br />
module Dbtwo<br />
  establish_connection :databasetwo<br />
end<br />
[/ruby]</p>
<p>Now if i would like to select from my database one i do the following in any controller:</p>
<p>[ruby]<br />
def index<br />
  @users = Dbone::Users.find(:all)<br />
end<br />
[/ruby]</p>
<p>Get the idea now? It&#8217;s the same to update and add to the database. Just use the module name. Now for the &#8220;production&#8221; database everything remains the same, no need to add a module to it.</p>
<p>Get <a href="http://magicmodels.rubyforge.org/magic_multi_connections/" target="_blank">Magic Multi-Connections V1</a></p>
]]></content:encoded>
			<wfw:commentRss>http://winn.ws/archives/126/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Database Caching 1/17 queries in 0.004 seconds using disk: basic
Object Caching 346/378 objects using disk: basic
Content Delivery Network via Amazon Web Services: CloudFront: d45jz936mo8n8.cloudfront.net

Served from: winn.ws @ 2012-02-05 05:44:26 -->
