# Rails

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

[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:** 1372

---

## [A question about the RESTful Routing](https://www.ruby-forum.com/t/a-question-about-the-restful-routing/136369)

<div class="topic-metadata">

**Author:** [@nik](https://www.ruby-forum.com/u/nik)\
**Replies:** 2\
**Last updated:** [May 1, 2008, 10:10am UTC](https://www.ruby-forum.com/t/a-question-about-the-restful-routing/136369 "2008-05-01T10:10:29Z")

</div>

Hello! Thank you for reading my post, if I am not being careful about the use of terminology or am not being exactly clear enough for my question to be understood, kindly notify and I will correct. I remember that wh…

---

## [Comparing selection of a drop down using ajax](https://www.ruby-forum.com/t/comparing-selection-of-a-drop-down-using-ajax/136354)

<div class="topic-metadata">

**Author:** [@rushnosh](https://www.ruby-forum.com/u/rushnosh)\
**Replies:** 4\
**Last updated:** [May 1, 2008, 8:27am UTC](https://www.ruby-forum.com/t/comparing-selection-of-a-drop-down-using-ajax/136354 "2008-05-01T08:27:00Z")

</div>

I am very new to ruby and since my javscript skills are zero I was wondering if this could be done. I have a drop down. When the user makes a selection I would like to make a call with observe\_field. Can I then check…

---

## [Google Ajax Search API - UTF-8 encoded response](https://www.ruby-forum.com/t/google-ajax-search-api-utf-8-encoded-response/136300)

<div class="topic-metadata">

**Author:** [@prasad](https://www.ruby-forum.com/u/prasad)\
**Replies:** 1\
**Last updated:** [May 1, 2008, 8:24am UTC](https://www.ruby-forum.com/t/google-ajax-search-api-utf-8-encoded-response/136300 "2008-05-01T08:24:39Z")

</div>

Hello All, I am writing a facebook application in ruby on rails, which requires google search in one page. I’ve implemented this using a simple RESTful interface as follows: url = URI.parse( “http://ajax.googleapis.c…

---

## [Books on Ajax Design](https://www.ruby-forum.com/t/books-on-ajax-design/136144)

<div class="topic-metadata">

**Author:** [@Rory\_McKinley](https://www.ruby-forum.com/u/Rory_McKinley)\
**Replies:** 4\
**Last updated:** [May 1, 2008, 7:22am UTC](https://www.ruby-forum.com/t/books-on-ajax-design/136144 "2008-05-01T07:22:42Z")

</div>

Hi all I was wondering if anyone could recommend good books or other resources on designing AJAX applications ? I am looking primarily for the principles behind designing and modelling the AJAX interactions rather th…

---

## [NoMethodError](https://www.ruby-forum.com/t/nomethoderror/136097)

<div class="topic-metadata">

**Author:** [@manish](https://www.ruby-forum.com/u/manish)\
**Replies:** 8\
**Last updated:** [May 1, 2008, 6:16am UTC](https://www.ruby-forum.com/t/nomethoderror/136097 "2008-05-01T06:16:57Z")

</div>

I have created a simple login form… form is like this… \<% form\_tag :controller =\> “user”, :action =\> “login\_submit” do %\> Username: Password: \<%= submit\_tag “Login”%\> \<% end %\> METHOD IN USER CONTROLLER IS …

---

## [To call a modal window before executing link\_to\_remote](https://www.ruby-forum.com/t/to-call-a-modal-window-before-executing-link-to-remote/136282)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 2\
**Last updated:** [May 1, 2008, 6:07am UTC](https://www.ruby-forum.com/t/to-call-a-modal-window-before-executing-link-to-remote/136282 "2008-05-01T06:07:02Z")

</div>

Hi I have \<% @flow\_items = ServiceDeskStatusFlow.find\_all\_by\_service\_desk\_status\_id(@sd\_ticket.service\_desk\_status\_id) %\> \<% for flow\_item in @flow\_items %\> \<% end %\> \<%= link\_to\_remote "#{flow\_item.action\_name…

---

## [Is there a best practice for when an app requires a gem?](https://www.ruby-forum.com/t/is-there-a-best-practice-for-when-an-app-requires-a-gem/136352)

<div class="topic-metadata">

**Author:** [@kuma](https://www.ruby-forum.com/u/kuma)\
**Replies:** 2\
**Last updated:** [May 1, 2008, 4:34am UTC](https://www.ruby-forum.com/t/is-there-a-best-practice-for-when-an-app-requires-a-gem/136352 "2008-05-01T04:34:17Z")

</div>

Hi there, Is there a standard/recommended way for a Rails app to express a dependency on a gem? For non-rails projects, we could package as a gem and hence use the gem spec to express dependencies. I suppose I could…

---

## [Complex search query](https://www.ruby-forum.com/t/complex-search-query/136257)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [May 1, 2008, 4:04am UTC](https://www.ruby-forum.com/t/complex-search-query/136257 "2008-05-01T04:04:26Z")

</div>

Hi all, This is my first question, and hopefully someone can help. Overview: models:… class Post \< ActiveRecord::Base belongs\_to :user has\_and\_belongs\_to\_many :categories acts\_as\_mappable :distance\_field\_name…

---

## [Best Practice For Background Processes](https://www.ruby-forum.com/t/best-practice-for-background-processes/136332)

<div class="topic-metadata">

**Author:** [@johnk](https://www.ruby-forum.com/u/johnk)\
**Replies:** 2\
**Last updated:** [May 1, 2008, 1:36am UTC](https://www.ruby-forum.com/t/best-practice-for-background-processes/136332 "2008-05-01T01:36:56Z")

</div>

I have a couple background processes that run from anywhere between 2 seconds and 30 seconds that run periodically (some run every 15 minutes, some every 4 hrs). To run them I call a webpage using curl in a cron job. …

---

## [Setting up SSL with Rails, and Apache 2 on Ubuntu](https://www.ruby-forum.com/t/setting-up-ssl-with-rails-and-apache-2-on-ubuntu/136345)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [May 1, 2008, 1:20am UTC](https://www.ruby-forum.com/t/setting-up-ssl-with-rails-and-apache-2-on-ubuntu/136345 "2008-05-01T01:20:34Z")

</div>

I just wrote a more detailed tutorial than any I have found on Google after two days of searching. It details exactly how to setup SSL with Rails and Apache. Thought others might find this useful if they have to go …

---

## [My fresh ruby-on-rails News Digest application](https://www.ruby-forum.com/t/my-fresh-ruby-on-rails-news-digest-application/136314)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [May 1, 2008, 1:18am UTC](https://www.ruby-forum.com/t/my-fresh-ruby-on-rails-news-digest-application/136314 "2008-05-01T01:18:48Z")

</div>

Here is my latest work using ror - www.radio21g.com, a news digest website to help people follow their huge RSS feed. I’ve worked on this for about 4 month from graphic design to test. See if it’s cool enough. thanks…

---

## [Launching server from Aptana](https://www.ruby-forum.com/t/launching-server-from-aptana/136337)

<div class="topic-metadata">

**Author:** [@joernborup](https://www.ruby-forum.com/u/joernborup)\
**Replies:** 2\
**Last updated:** [May 1, 2008, 12:44am UTC](https://www.ruby-forum.com/t/launching-server-from-aptana/136337 "2008-05-01T00:44:53Z")

</div>

Hi Rails group… (new to Rails/ruby, so please excuse if this is dumb question…) I have installed Rails, and done some small testing. Had the server up and running, and I did get the ‘default’ page. Then I installed t…

---

## [Setter method for forms in multiple models](https://www.ruby-forum.com/t/setter-method-for-forms-in-multiple-models/136317)

<div class="topic-metadata">

**Author:** [@rushnosh](https://www.ruby-forum.com/u/rushnosh)\
**Replies:** 1\
**Last updated:** [April 30, 2008, 11:56pm UTC](https://www.ruby-forum.com/t/setter-method-for-forms-in-multiple-models/136317 "2008-04-30T23:56:12Z")

</div>

hello, i am trying to collect data for multiple models thru a 3 model controller. i can create a setter method but the data that user inputs does not show back in the form. params show the data is being collected. h…

---

## [Layouts and partials](https://www.ruby-forum.com/t/layouts-and-partials/136166)

<div class="topic-metadata">

**Author:** [@predhme](https://www.ruby-forum.com/u/predhme)\
**Replies:** 4\
**Last updated:** [April 30, 2008, 11:47pm UTC](https://www.ruby-forum.com/t/layouts-and-partials/136166 "2008-04-30T23:47:23Z")

</div>

I am currently working on re factoring my controllers and views to better follow the DRY principal. I have done significant work with the controllers but am struggling with the views… I have the standard type layout, …

---

## [Pretty url](https://www.ruby-forum.com/t/pretty-url/136287)

<div class="topic-metadata">

**Author:** [@huang\_zhimin](https://www.ruby-forum.com/u/huang_zhimin)\
**Replies:** 3\
**Last updated:** [April 30, 2008, 11:45pm UTC](https://www.ruby-forum.com/t/pretty-url/136287 "2008-04-30T23:45:03Z")

</div>

I want to write a permalink like /year/month/day/title, code is as followsï¼š self.permalink = “#{now.year}/#{now.month}/#{now.day}/#{title}” in the view, I use restful url post\_path(@post). And in the html source co…

---

## [Ruby Developer Needed for Position in Bethpage NY](https://www.ruby-forum.com/t/ruby-developer-needed-for-position-in-bethpage-ny/136339)

<div class="topic-metadata">

**Author:** [@Katie](https://www.ruby-forum.com/u/Katie)\
**Replies:** 0\
**Last updated:** [April 30, 2008, 11:03pm UTC](https://www.ruby-forum.com/t/ruby-developer-needed-for-position-in-bethpage-ny/136339 "2008-04-30T23:03:19Z")

</div>

I am looking for someone with Ruby programming experience who also has experience with Oracle and SQL. This is for a full time on site project in Bethpage NY. It is a contracting opportunity that will last for at leas…

---

## [Get ID before save](https://www.ruby-forum.com/t/get-id-before-save/136231)

<div class="topic-metadata">

**Author:** [@kivanio](https://www.ruby-forum.com/u/kivanio)\
**Replies:** 10\
**Last updated:** [April 30, 2008, 10:43pm UTC](https://www.ruby-forum.com/t/get-id-before-save/136231 "2008-04-30T22:43:24Z")

</div>

Hi, it’s possible, get value of ID before save the object? I need ID concatenated with year for make new value of other column in table. I try with before\_save but in this point, before\_save don’t know ID. I try wit…

---

## [Newbie - trouble with acts\_as\_taggable\_on\_steroids](https://www.ruby-forum.com/t/newbie-trouble-with-acts-as-taggable-on-steroids/136315)

<div class="topic-metadata">

**Author:** [@accipiter](https://www.ruby-forum.com/u/accipiter)\
**Replies:** 2\
**Last updated:** [April 30, 2008, 10:38pm UTC](https://www.ruby-forum.com/t/newbie-trouble-with-acts-as-taggable-on-steroids/136315 "2008-04-30T22:38:43Z")

</div>

I’ve installed the plugin for taggable steroids, read the read me, followed the instructions, but I’m getting the error ‘undefined method tag\_list’. How is that possible? I assume that the method tag\_list should be in…

---

## [ActiveRecord class method count issues](https://www.ruby-forum.com/t/activerecord-class-method-count-issues/87905)

<div class="topic-metadata">

**Author:** [@dfg59](https://www.ruby-forum.com/u/dfg59)\
**Replies:** 1\
**Last updated:** [April 30, 2008, 10:15pm UTC](https://www.ruby-forum.com/t/activerecord-class-method-count-issues/87905 "2008-04-30T22:15:45Z")

</div>

All - I’m using ActiveRecord outside of the rails framework and I’m having an issue using the class method count. I’m connected to an Oracle 10g database and my find commands are working fine: Employee.find(:first) -\>…

---

## [Weird foreign key constraint failure in transaction](https://www.ruby-forum.com/t/weird-foreign-key-constraint-failure-in-transaction/136321)

<div class="topic-metadata">

**Author:** [@mud](https://www.ruby-forum.com/u/mud)\
**Replies:** 2\
**Last updated:** [April 30, 2008, 9:42pm UTC](https://www.ruby-forum.com/t/weird-foreign-key-constraint-failure-in-transaction/136321 "2008-04-30T21:42:25Z")

</div>

I have an ActiveRecord transaction that works some times and fails some times. I’ve narrowed it down to where the failure depends on the inclusion of an empty method from a library object. By ‘empty’, I mean I’ve remo…

---

## [Loading libraries and passing objects between actions](https://www.ruby-forum.com/t/loading-libraries-and-passing-objects-between-actions/136241)

<div class="topic-metadata">

**Author:** [@brownerthanu](https://www.ruby-forum.com/u/brownerthanu)\
**Replies:** 6\
**Last updated:** [April 30, 2008, 9:42pm UTC](https://www.ruby-forum.com/t/loading-libraries-and-passing-objects-between-actions/136241 "2008-04-30T21:42:14Z")

</div>

hello all, i’m starting on a rails app that will hopefully make machine maintenance much easier at my work. i have a few general questions about what approach to take in the design. for each machine the app maintain…

---

## [Change log directory from default "log"?](https://www.ruby-forum.com/t/change-log-directory-from-default-log/136320)

<div class="topic-metadata">

**Author:** [@nwiger](https://www.ruby-forum.com/u/nwiger)\
**Replies:** 1\
**Last updated:** [April 30, 2008, 8:42pm UTC](https://www.ruby-forum.com/t/change-log-directory-from-default-log/136320 "2008-04-30T20:42:30Z")

</div>

Hi, I know there’s a way to do this but can’t find it. IT wants the log directory changed from its default of “log/” to “/var/ log/rails”. Where can I do this? Thanks, Nate

---

## [How can i make ruby line comments](https://www.ruby-forum.com/t/how-can-i-make-ruby-line-comments/136089)

<div class="topic-metadata">

**Author:** [@manish](https://www.ruby-forum.com/u/manish)\
**Replies:** 6\
**Last updated:** [April 30, 2008, 8:12pm UTC](https://www.ruby-forum.com/t/how-can-i-make-ruby-line-comments/136089 "2008-04-30T20:12:38Z")

</div>

In ruby we can make a line comments by using #. but when we use the same ruby code in .rhtml, how can i make comments a line \<%= link\_to ‘Create New Book’, :controller =\> ‘Book’, :action =\> ‘list’ %\> I want to comme…

---

## [Developing a tutorial](https://www.ruby-forum.com/t/developing-a-tutorial/136303)

<div class="topic-metadata">

**Author:** [@Abbas\_Sutarwala](https://www.ruby-forum.com/u/Abbas_Sutarwala)\
**Replies:** 1\
**Last updated:** [April 30, 2008, 7:48pm UTC](https://www.ruby-forum.com/t/developing-a-tutorial/136303 "2008-04-30T19:48:44Z")

</div>

Hello. I am relatively new to Rails. I have developed a tutorial on Rails at www.emast.in alpha version. Will be happy to have your feedback. Thanks and regards, AbbasKS

---

## [Remembering where you came from](https://www.ruby-forum.com/t/remembering-where-you-came-from/136301)

<div class="topic-metadata">

**Author:** [@TrevorD](https://www.ruby-forum.com/u/TrevorD)\
**Replies:** 2\
**Last updated:** [April 30, 2008, 7:48pm UTC](https://www.ruby-forum.com/t/remembering-where-you-came-from/136301 "2008-04-30T19:48:44Z")

</div>

I’ve done a little searching here and on google, but im not sure i even know what to search for. Im trying to figure out how to, after adding or editing a record, redirect back to the view i was on. So, for example, …

---

## [White\_list and advanced tag filtering](https://www.ruby-forum.com/t/white-list-and-advanced-tag-filtering/133880)

<div class="topic-metadata">

**Author:** [@armstheykill](https://www.ruby-forum.com/u/armstheykill)\
**Replies:** 5\
**Last updated:** [April 30, 2008, 7:46pm UTC](https://www.ruby-forum.com/t/white-list-and-advanced-tag-filtering/133880 "2008-04-30T19:46:23Z")

</div>

Hi all, I have a form that uses tinymce for users to be able to enter text. The rules are: Users should be able to use IMG SRC= tags to inline any graphic stored on the same webserver the site is hosted from Users m…

---

## [Gettext Validation/Error localization problems](https://www.ruby-forum.com/t/gettext-validation-error-localization-problems/136204)

<div class="topic-metadata">

**Author:** [@max-lapshin](https://www.ruby-forum.com/u/max-lapshin)\
**Replies:** 1\
**Last updated:** [April 30, 2008, 7:27pm UTC](https://www.ruby-forum.com/t/gettext-validation-error-localization-problems/136204 "2008-04-30T19:27:29Z")

</div>

Is there a way to turn off ruby-gettext’s feature that localizes the default validation/error messages in models? If I use gettext in my application, it breaks almost all of my unit tests. From http://www.yotabanana.…

---

## [Question on Model v Observer](https://www.ruby-forum.com/t/question-on-model-v-observer/136260)

<div class="topic-metadata">

**Author:** [@jufemaiz](https://www.ruby-forum.com/u/jufemaiz)\
**Replies:** 2\
**Last updated:** [April 30, 2008, 7:11pm UTC](https://www.ruby-forum.com/t/question-on-model-v-observer/136260 "2008-04-30T19:11:43Z")

</div>

I’ll throw this out to people and get your opinions. Should callbacks when used in the model be used for manipulating that model only and use observers to do external model manipulation or are the callbacks within the…

---

## [The "Cannot map ... to SOAP/OM" error](https://www.ruby-forum.com/t/the-cannot-map-to-soap-om-error/136306)

<div class="topic-metadata">

**Author:** [@amit\_vijayant](https://www.ruby-forum.com/u/amit_vijayant)\
**Replies:** 0\
**Last updated:** [April 30, 2008, 6:42pm UTC](https://www.ruby-forum.com/t/the-cannot-map-to-soap-om-error/136306 "2008-04-30T18:42:11Z")

</div>

Though the issue has been reported by several people in different cases, didnt find a satisfactory solution. Is this a bug that soap4r is going to resolve say in 1.5.9? I created client side objects via the ‘wsdl2ruby…

---

## [Beginner mysql problem](https://www.ruby-forum.com/t/beginner-mysql-problem/136274)

<div class="topic-metadata">

**Author:** [@donald](https://www.ruby-forum.com/u/donald)\
**Replies:** 4\
**Last updated:** [April 30, 2008, 5:15pm UTC](https://www.ruby-forum.com/t/beginner-mysql-problem/136274 "2008-04-30T17:15:36Z")

</div>

I am new to rails and have come across a problem with a sample application I was working on. When trying to use rake migrate I got the error listed below. my db file contains the following class ContactDb \< ActiveRec…

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

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