# Rails

**URL:** https://www.ruby-forum.com/c/ruby-on-rails/6.md?page=1440

[Latest](https://www.ruby-forum.com/latest.md) · [Categories](https://www.ruby-forum.com/categories.md) · [Tags](https://www.ruby-forum.com/tags.md)

**Page:** 1441

---

## [Auto\_complete and validate](https://www.ruby-forum.com/t/auto-complete-and-validate/132168)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 2\
**Last updated:** [March 17, 2008, 4:41pm UTC](https://www.ruby-forum.com/t/auto-complete-and-validate/132168 "2008-03-17T16:41:24Z")

</div>

I am trying to validate a phone number when it is update. The way that it is updated is through an auto\_complete\_\_text\_field and what I tried is to have: validates\_format\_of :h\_phone, :with =\> /(?\[0-9\]{3})?-\[0-9\]{3}-\[…

---

## [Limit in include?](https://www.ruby-forum.com/t/limit-in-include/132165)

<div class="topic-metadata">

**Author:** [@peter](https://www.ruby-forum.com/u/peter)\
**Replies:** 3\
**Last updated:** [March 17, 2008, 4:35pm UTC](https://www.ruby-forum.com/t/limit-in-include/132165 "2008-03-17T16:35:31Z")

</div>

I have a page where i go through all categories, and show the latest 3 games for each one. Right now i include those games when i fetch the categories in the controller: @categories = Category.find :all, :include =\> \[…

---

## [How to send an email on a particular date](https://www.ruby-forum.com/t/how-to-send-an-email-on-a-particular-date/132130)

<div class="topic-metadata">

**Author:** [@dhaval](https://www.ruby-forum.com/u/dhaval)\
**Replies:** 4\
**Last updated:** [March 17, 2008, 4:15pm UTC](https://www.ruby-forum.com/t/how-to-send-an-email-on-a-particular-date/132130 "2008-03-17T16:15:17Z")

</div>

Hello people, I am trying to create a application where a person can set a reminder. for example a person may choose a date on which he wants the email to be sent to his email id, on submitting this data a cron job s…

---

## [3G phones](https://www.ruby-forum.com/t/3g-phones/132169)

<div class="topic-metadata">

**Author:** [@deia](https://www.ruby-forum.com/u/deia)\
**Replies:** 0\
**Last updated:** [March 17, 2008, 4:07pm UTC](https://www.ruby-forum.com/t/3g-phones/132169 "2008-03-17T16:07:10Z")

</div>

Why not to use your 3G on mobile phones http://www.mediaportal.ro/play.php?pid=13937&Because%20Of%203G

---

## [How to sort a collection of items in the index page](https://www.ruby-forum.com/t/how-to-sort-a-collection-of-items-in-the-index-page/131440)

<div class="topic-metadata">

**Author:** [@Kei\_Simone](https://www.ruby-forum.com/u/Kei_Simone)\
**Replies:** 5\
**Last updated:** [March 17, 2008, 3:57pm UTC](https://www.ruby-forum.com/t/how-to-sort-a-collection-of-items-in-the-index-page/131440 "2008-03-17T15:57:01Z")

</div>

Hi all, i have the following: items\_controller index.rhtml for the items inside the items\_controller i have a def index method where @items contains a collection of items inside teh index.rhtml i display the items …

---

## [How does one restore their MySQL database from a tar.gz in Windows?](https://www.ruby-forum.com/t/how-does-one-restore-their-mysql-database-from-a-tar-gz-in-windows/132163)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [March 17, 2008, 3:54pm UTC](https://www.ruby-forum.com/t/how-does-one-restore-their-mysql-database-from-a-tar-gz-in-windows/132163 "2008-03-17T15:54:04Z")

</div>

Thanks in part to all the help I received on this forum I’m up and running with my web adventure developed in Windows XP. I’ve had this fear creeping in with “what would I do if I had to restore the entire database”? …

---

## [Nil dates in selct\_date](https://www.ruby-forum.com/t/nil-dates-in-selct-date/132167)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [March 17, 2008, 3:47pm UTC](https://www.ruby-forum.com/t/nil-dates-in-selct-date/132167 "2008-03-17T15:47:05Z")

</div>

Can one specify to date\_select that a nil value is permitted and is the default value? Is it possible to add nil to the list of permitted values in a date\_select call? The code in /usr/lib/ruby/gems/1.8/gems/actionp…

---

## [Selecting data fromSelect\_date showing in the same page](https://www.ruby-forum.com/t/selecting-data-fromselect-date-showing-in-the-same-page/132161)

<div class="topic-metadata">

**Author:** [@dibyendu](https://www.ruby-forum.com/u/dibyendu)\
**Replies:** 0\
**Last updated:** [March 17, 2008, 2:56pm UTC](https://www.ruby-forum.com/t/selecting-data-fromselect-date-showing-in-the-same-page/132161 "2008-03-17T14:56:04Z")

</div>

I want to use two comboboxes : 1…using select\_date - having day month and year in it. 2…options filled with database data when I click on submit, those selected data from those two comboboxes should be shown in the s…

---

## [Select\_date](https://www.ruby-forum.com/t/select-date/132144)

<div class="topic-metadata">

**Author:** [@subhadip](https://www.ruby-forum.com/u/subhadip)\
**Replies:** 2\
**Last updated:** [March 17, 2008, 2:53pm UTC](https://www.ruby-forum.com/t/select-date/132144 "2008-03-17T14:53:06Z")

</div>

i have one field date in ruby mysql database… i use select\_date tag in view… please help to write simple controller code(QUERY\_\_ which fetch data from datbase… pleaes provide one simple code…very urgent…

---

## [Form inside a form](https://www.ruby-forum.com/t/form-inside-a-form/132132)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 5\
**Last updated:** [March 17, 2008, 2:39pm UTC](https://www.ruby-forum.com/t/form-inside-a-form/132132 "2008-03-17T14:39:25Z")

</div>

Hi I have a main form like below \<%= start\_form\_tag ({:action =\> ‘update\_sd\_ticket’, :method =\> ‘post’,:id =\>@sd\_ticket.id})%\> SD Ticket \<%=h @sd\_ticket.number %\> Resolution \<%= render :partial=\>'ser…

---

## [Display data from more than one table](https://www.ruby-forum.com/t/display-data-from-more-than-one-table/132136)

<div class="topic-metadata">

**Author:** [@snowbird122](https://www.ruby-forum.com/u/snowbird122)\
**Replies:** 4\
**Last updated:** [March 17, 2008, 2:06pm UTC](https://www.ruby-forum.com/t/display-data-from-more-than-one-table/132136 "2008-03-17T14:06:23Z")

</div>

Hi guys ! I’m a RoR newbye and need to display the content of more than one table in a view. Let’s say I have a Invoices table with a relationship to a Customers table. I’d like to display on a single page every invoi…

---

## [Ssl\_requirement problems - https --\> http](https://www.ruby-forum.com/t/ssl-requirement-problems-https-http/132157)

<div class="topic-metadata">

**Author:** [@adam](https://www.ruby-forum.com/u/adam)\
**Replies:** 0\
**Last updated:** [March 17, 2008, 2:01pm UTC](https://www.ruby-forum.com/t/ssl-requirement-problems-https-http/132157 "2008-03-17T14:01:03Z")

</div>

I am having problems with the SSL Requirement plugin. It redirects to HTTPS no problem. Problem is when I want it to leave HTTPS it stays! Have put the following in apache ssl config: \<VirtualHost \*:443\> ServerName c…

---

## [Answering to ajax request like it is normal](https://www.ruby-forum.com/t/answering-to-ajax-request-like-it-is-normal/132147)

<div class="topic-metadata">

**Author:** [@fero](https://www.ruby-forum.com/u/fero)\
**Replies:** 1\
**Last updated:** [March 17, 2008, 1:59pm UTC](https://www.ruby-forum.com/t/answering-to-ajax-request-like-it-is-normal/132147 "2008-03-17T13:59:17Z")

</div>

hi. it is possible to decide on the server side if the answer is ajax or non? or: it is possible to answer ajax-request like it was standard without page.redirect\_to ?

---

## [How to do a new with prefilled info?](https://www.ruby-forum.com/t/how-to-do-a-new-with-prefilled-info/131331)

<div class="topic-metadata">

**Author:** [@apswartz](https://www.ruby-forum.com/u/apswartz)\
**Replies:** 4\
**Last updated:** [March 17, 2008, 1:51pm UTC](https://www.ruby-forum.com/t/how-to-do-a-new-with-prefilled-info/131331 "2008-03-17T13:51:02Z")

</div>

In my example, I have a topic that I want to have a link next to to create a new child. So my erb, says something like: \<%= link\_to ‘New Child’, { :action =\> “newChild”, id =\> topic.id } %\> However, the routing doesn…

---

## [Capturing textbox data in the same page](https://www.ruby-forum.com/t/capturing-textbox-data-in-the-same-page/131797)

<div class="topic-metadata">

**Author:** [@dibyendu](https://www.ruby-forum.com/u/dibyendu)\
**Replies:** 8\
**Last updated:** [March 17, 2008, 1:45pm UTC](https://www.ruby-forum.com/t/capturing-textbox-data-in-the-same-page/131797 "2008-03-17T13:45:23Z")

</div>

Hi, I am new to ruby. Can anyone help me with a simple code snippet where a user types in some date in any textbox and on submission, the same page opens with expects set of recorset in an HTML table. very urgent !

---

## [Model/controller pair with different names?](https://www.ruby-forum.com/t/model-controller-pair-with-different-names/131806)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 6\
**Last updated:** [March 17, 2008, 1:40pm UTC](https://www.ruby-forum.com/t/model-controller-pair-with-different-names/131806 "2008-03-17T13:40:52Z")

</div>

I want to use a controller that has a different name to the model it uses. Can i do this in rails? Something like class FooController \< ApplicationController model =\> “AModelWithALongClunkyName” … ?? Ie, to overr…

---

## [Find(:all) problem when using rss builder](https://www.ruby-forum.com/t/find-all-problem-when-using-rss-builder/132152)

<div class="topic-metadata">

**Author:** [@jraines](https://www.ruby-forum.com/u/jraines)\
**Replies:** 0\
**Last updated:** [March 17, 2008, 1:36pm UTC](https://www.ruby-forum.com/t/find-all-problem-when-using-rss-builder/132152 "2008-03-17T13:36:42Z")

</div>

I have an index page that displays the newest contents of a table called ratings. The controller code looks like this: def index @newratings = Rating.find(:all, :order =\> "twitter\_num DESC", :limit =\> 20) …

---

## [Submitting form with link\_to](https://www.ruby-forum.com/t/submitting-form-with-link-to/132146)

<div class="topic-metadata">

**Author:** [@Sumeru](https://www.ruby-forum.com/u/Sumeru)\
**Replies:** 1\
**Last updated:** [March 17, 2008, 1:18pm UTC](https://www.ruby-forum.com/t/submitting-form-with-link-to/132146 "2008-03-17T13:18:02Z")

</div>

I want to submit a form using link\_to. I dont want to use \<%= submit\_tag “Add” %\>. Instead of that i want to create a “link\_to “Add”, …”. so please let me know how to make it. I also want to use an image for delete l…

---

## [Render a partial file](https://www.ruby-forum.com/t/render-a-partial-file/132143)

<div class="topic-metadata">

**Author:** [@suneeta](https://www.ruby-forum.com/u/suneeta)\
**Replies:** 8\
**Last updated:** [March 17, 2008, 1:13pm UTC](https://www.ruby-forum.com/t/render-a-partial-file/132143 "2008-03-17T13:13:35Z")

</div>

Hi all… Can we render a partial file while clicking on a link? I tried the following: \<%= link\_to\_remote( “Cancel”, :update =\> “edit\_func\_spec\_div”, :url =\> {:partial =\> ‘cipart/show\_functional\_spec\_to\_edit’} ) %\>…

---

## [Creating Tables at RUNTIME](https://www.ruby-forum.com/t/creating-tables-at-runtime/132099)

<div class="topic-metadata">

**Author:** [@neo](https://www.ruby-forum.com/u/neo)\
**Replies:** 6\
**Last updated:** [March 17, 2008, 1:01pm UTC](https://www.ruby-forum.com/t/creating-tables-at-runtime/132099 "2008-03-17T13:01:50Z")

</div>

I am confused about creating tables on runtime… suppose i register to one website, and upon successful registration i want to create a table with my name like— Neo\_Message is the table that i would like to create as s…

---

## [How to call a c bin from a controller](https://www.ruby-forum.com/t/how-to-call-a-c-bin-from-a-controller/131910)

<div class="topic-metadata">

**Author:** [@Ecrevisse06](https://www.ruby-forum.com/u/Ecrevisse06)\
**Replies:** 2\
**Last updated:** [March 17, 2008, 12:52pm UTC](https://www.ruby-forum.com/t/how-to-call-a-c-bin-from-a-controller/131910 "2008-03-17T12:52:21Z")

</div>

Hi, I am a newbee and for my project i have to call a C bin from the cgi- bin rep of my host ,i want to call the script from my controller…I’am sure it’s a trivial question but i havent found the answer on google, I…

---

## [Rails 2 and associations-slash-loading](https://www.ruby-forum.com/t/rails-2-and-associations-slash-loading/132127)

<div class="topic-metadata">

**Author:** [@colin](https://www.ruby-forum.com/u/colin)\
**Replies:** 2\
**Last updated:** [March 17, 2008, 12:03pm UTC](https://www.ruby-forum.com/t/rails-2-and-associations-slash-loading/132127 "2008-03-17T12:03:51Z")

</div>

Been encountering several (seemingly) related issues with Rails 2. Was hoping someone has run into these things and found a suitable solution: instance methods disappearing in view: a. In the index action of Articles…

---

## [Submit\_to\_remote and javascript](https://www.ruby-forum.com/t/submit-to-remote-and-javascript/132141)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 0\
**Last updated:** [March 17, 2008, 11:51am UTC](https://www.ruby-forum.com/t/submit-to-remote-and-javascript/132141 "2008-03-17T11:51:37Z")

</div>

Hi I have a submit\_to\_remote \<%= submit\_to\_remote ‘save\_btn’, ‘Save’, :url =\> {:controller =\> ‘service\_desk’, :action =\> ‘sd\_resolution\_save’, :id =\> @sd\_ticket.id, :sd\_resolution\_id =\> @sd\_resolution\_id, :page =\> p…

---

## [Guideline for "has\_one" validation + Multiple post actions from a form](https://www.ruby-forum.com/t/guideline-for-has-one-validation-multiple-post-actions-from-a-form/132139)

<div class="topic-metadata">

**Author:** [@Gishu\_Pillai](https://www.ruby-forum.com/u/Gishu_Pillai)\
**Replies:** 0\
**Last updated:** [March 17, 2008, 11:37am UTC](https://www.ruby-forum.com/t/guideline-for-has-one-validation-multiple-post-actions-from-a-form/132139 "2008-03-17T11:37:41Z")

</div>

Hi, This is my scenario. I have an expense entry form, each expense must have one category - classic foreign key example Now I see that has\_one with a non-existent category is not caught, I think Rails creates the ne…

---

## [Setting the Element ID of inserted partials with javascript](https://www.ruby-forum.com/t/setting-the-element-id-of-inserted-partials-with-javascript/132115)

<div class="topic-metadata">

**Author:** [@The\_Cool\_Web\_Guy](https://www.ruby-forum.com/u/The_Cool_Web_Guy)\
**Replies:** 2\
**Last updated:** [March 17, 2008, 11:37am UTC](https://www.ruby-forum.com/t/setting-the-element-id-of-inserted-partials-with-javascript/132115 "2008-03-17T11:37:41Z")

</div>

Hi, Lets say I have a form with multiple task elements, for adding tasks to a project, and a link\_to\_function which inserts a new task using page.insert\_html :partial eg: tasks holder \<%= link\_to\_function "Add Task"…

---

## [Don't know how to build task 'migrate'](https://www.ruby-forum.com/t/dont-know-how-to-build-task-migrate/132137)

<div class="topic-metadata">

**Author:** [@macriis](https://www.ruby-forum.com/u/macriis)\
**Replies:** 3\
**Last updated:** [March 17, 2008, 11:21am UTC](https://www.ruby-forum.com/t/dont-know-how-to-build-task-migrate/132137 "2008-03-17T11:21:37Z")

</div>

Hi, I have a rather simple problem. Just installed Rails on OS X Leopard and the database connection to MySQL doesn’t work from Rails. I’m following Apples Expenses example (http://developer.apple.com/tools/rubyonrai…

---

## [Texting confusion](https://www.ruby-forum.com/t/texting-confusion/132098)

<div class="topic-metadata">

**Author:** [@drsharp](https://www.ruby-forum.com/u/drsharp)\
**Replies:** 1\
**Last updated:** [March 17, 2008, 11:15am UTC](https://www.ruby-forum.com/t/texting-confusion/132098 "2008-03-17T11:15:44Z")

</div>

Hi, I’m trying to learn how to test my apps as I build them. I’ve been following the tutorials at nullislove.com but I they don’t seem to be acting as described. I’ve tried to run the default generated unit tests and…

---

## [Rquerypad, improve activerecord in association query](https://www.ruby-forum.com/t/rquerypad-improve-activerecord-in-association-query/132135)

<div class="topic-metadata">

**Author:** [@scorpio\_leon](https://www.ruby-forum.com/u/scorpio_leon)\
**Replies:** 0\
**Last updated:** [March 17, 2008, 10:58am UTC](https://www.ruby-forum.com/t/rquerypad-improve-activerecord-in-association-query/132135 "2008-03-17T10:58:47Z")

</div>

http://code.google.com/p/rquerypad/ Simplify query options with association automation and improve inner join for activerecord of rails Feature single name string decribe associations support to mix inner join and o…

---

## [Syntax error](https://www.ruby-forum.com/t/syntax-error/132126)

<div class="topic-metadata">

**Author:** [@manish](https://www.ruby-forum.com/u/manish)\
**Replies:** 6\
**Last updated:** [March 17, 2008, 10:47am UTC](https://www.ruby-forum.com/t/syntax-error/132126 "2008-03-17T10:47:58Z")

</div>

hi i m new to ROR when i m using… \<%= form\_tag ‘signup\_submit’ %\> \<%= render :partial =\> “signup\_form” %\> \<%= end\_form %\> i m getting error… undefined local variable or method \`end\_form’ for #ActionView::Base:0x3…

---

## [Problems with Auth to my mysql db](https://www.ruby-forum.com/t/problems-with-auth-to-my-mysql-db/132113)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [March 17, 2008, 9:42am UTC](https://www.ruby-forum.com/t/problems-with-auth-to-my-mysql-db/132113 "2008-03-17T09:42:26Z")

</div>

Hi, I am new to ruby/rails. learning fast but still getting stuck on key places… so I have a db and a colum called email and crypt one is obviosly the email of the users and the other the password column. so I have …

[Previous page](https://www.ruby-forum.com/c/ruby-on-rails/6.md?page=1439)

[Next page](https://www.ruby-forum.com/c/ruby-on-rails/6.md?page=1441)
