Skip to content

Commit

Permalink
Re-initialize the repository
Browse files Browse the repository at this point in the history
  • Loading branch information
Akhil Bansal authored and Akhil Bansal committed Jun 10, 2009
0 parents commit ca37cbf
Show file tree
Hide file tree
Showing 25 changed files with 1,687 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
StateSelect
=============
state_select plugin allows you to easyly create dropdown list of states for a country provided as an option.
Default counrty is US.

Usage:
state_select(object, method, country='US', options = {}, html_options = {})

Currently it supports only INDIA, US, CANADA, AUSTRALIA, SPAIN, FRANCE, UGANDA, GERMAN and NETHERLANDS

*Thanks keith(http://rubygreenblue.com/) for Australia states
*Thanks Vicent (http://www.vicentgozalbes.com/) for Spain states
*Thanks Chuck Phillips for Uganda states
*Thanks Jonathan Tron for France states

If you want to add other country plese send me the list of states and I will add them.


Author:
Akhil Bansal
bansalakhil30.10@gmail.com
http://webonrails.com
Vinayak Solutions Pvt. Ltd.(http://vinsol.com)
New Delhi, India

107 changes: 107 additions & 0 deletions doc/classes/ActionView.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Module: ActionView</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
<script type="text/javascript">
// <![CDATA[

function popupCode( url ) {
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
}

function toggleCode( id ) {
if ( document.getElementById )
elem = document.getElementById( id );
else if ( document.all )
elem = eval( "document.all." + id );
else
return false;

elemStyle = elem.style;

if ( elemStyle.display != "block" ) {
elemStyle.display = "block"
} else {
elemStyle.display = "none"
}

return true;
}

// Make codeblocks hidden by default
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )

// ]]>
</script>

</head>
<body>



<div id="classHeader">
<table class="header-table">
<tr class="top-aligned-row">
<td><strong>Module</strong></td>
<td class="class-name-in-header">ActionView</td>
</tr>
<tr class="top-aligned-row">
<td><strong>In:</strong></td>
<td>
</td>
</tr>

</table>
</div>
<!-- banner header -->

<div id="bodyContent">



<div id="contextContent">



</div>


</div>


<!-- if includes -->

<div id="section">

<div id="class-list">
<h3 class="section-bar">Classes and Modules</h3>

Module <a href="ActionView/Helpers.html" class="link">ActionView::Helpers</a><br />

</div>







<!-- if method_list -->


</div>


<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>

</body>
</html>
109 changes: 109 additions & 0 deletions doc/classes/ActionView/Helpers.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Module: ActionView::Helpers</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
<script type="text/javascript">
// <![CDATA[

function popupCode( url ) {
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
}

function toggleCode( id ) {
if ( document.getElementById )
elem = document.getElementById( id );
else if ( document.all )
elem = eval( "document.all." + id );
else
return false;

elemStyle = elem.style;

if ( elemStyle.display != "block" ) {
elemStyle.display = "block"
} else {
elemStyle.display = "none"
}

return true;
}

// Make codeblocks hidden by default
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )

// ]]>
</script>

</head>
<body>



<div id="classHeader">
<table class="header-table">
<tr class="top-aligned-row">
<td><strong>Module</strong></td>
<td class="class-name-in-header">ActionView::Helpers</td>
</tr>
<tr class="top-aligned-row">
<td><strong>In:</strong></td>
<td>
</td>
</tr>

</table>
</div>
<!-- banner header -->

<div id="bodyContent">



<div id="contextContent">



</div>


</div>


<!-- if includes -->

<div id="section">

<div id="class-list">
<h3 class="section-bar">Classes and Modules</h3>

Module <a href="Helpers/FormOptionsHelper.html" class="link">ActionView::Helpers::FormOptionsHelper</a><br />
Class <a href="Helpers/FormBuilder.html" class="link">ActionView::Helpers::FormBuilder</a><br />
Class <a href="Helpers/InstanceTag.html" class="link">ActionView::Helpers::InstanceTag</a><br />

</div>







<!-- if method_list -->


</div>


<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>

</body>
</html>
146 changes: 146 additions & 0 deletions doc/classes/ActionView/Helpers/FormBuilder.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Class: ActionView::Helpers::FormBuilder</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
<script type="text/javascript">
// <![CDATA[

function popupCode( url ) {
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
}

function toggleCode( id ) {
if ( document.getElementById )
elem = document.getElementById( id );
else if ( document.all )
elem = eval( "document.all." + id );
else
return false;

elemStyle = elem.style;

if ( elemStyle.display != "block" ) {
elemStyle.display = "block"
} else {
elemStyle.display = "none"
}

return true;
}

// Make codeblocks hidden by default
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )

// ]]>
</script>

</head>
<body>



<div id="classHeader">
<table class="header-table">
<tr class="top-aligned-row">
<td><strong>Class</strong></td>
<td class="class-name-in-header">ActionView::Helpers::FormBuilder</td>
</tr>
<tr class="top-aligned-row">
<td><strong>In:</strong></td>
<td>
<a href="../../../files/lib/state_select_rb.html">
lib/state_select.rb
</a>
<br />
</td>
</tr>

<tr class="top-aligned-row">
<td><strong>Parent:</strong></td>
<td>
Object
</td>
</tr>
</table>
</div>
<!-- banner header -->

<div id="bodyContent">



<div id="contextContent">



</div>

<div id="method-list">
<h3 class="section-bar">Methods</h3>

<div class="name-list">
<a href="#M000003">state_select</a>&nbsp;&nbsp;
</div>
</div>

</div>


<!-- if includes -->

<div id="section">








<!-- if method_list -->
<div id="methods">
<h3 class="section-bar">Public Instance methods</h3>

<div id="method-M000003" class="method-detail">
<a name="M000003"></a>

<div class="method-heading">
<a href="#M000003" class="method-signature">
<span class="method-name">state_select</span><span class="method-args">(method, country = 'US', options = {}, html_options = {})</span>
</a>
</div>

<div class="method-description">
<p><a class="source-toggle" href="#"
onclick="toggleCode('M000003-source');return false;">[Source]</a></p>
<div class="method-source-code" id="M000003-source">
<pre>
<span class="ruby-comment cmt"># File lib/state_select.rb, line 47</span>
47: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">state_select</span>(<span class="ruby-identifier">method</span>, <span class="ruby-identifier">country</span> = <span class="ruby-value str">'US'</span>, <span class="ruby-identifier">options</span> = {}, <span class="ruby-identifier">html_options</span> = {})
48: <span class="ruby-ivar">@template</span>.<span class="ruby-identifier">state_select</span>(<span class="ruby-ivar">@object_name</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">country</span>, <span class="ruby-identifier">options</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">:object</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-ivar">@object</span>), <span class="ruby-identifier">html_options</span>)
49: <span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>


</div>


</div>


<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>

</body>
</html>
Loading

0 comments on commit ca37cbf

Please sign in to comment.