# Rails

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

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

---

## [RoR server can't find a custom ruby module](https://www.ruby-forum.com/t/ror-server-cant-find-a-custom-ruby-module/162371)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [March 9, 2009, 11:29am UTC](https://www.ruby-forum.com/t/ror-server-cant-find-a-custom-ruby-module/162371 "2009-03-09T11:29:43Z")

</div>

Hello all! Apologies if the question is answered in some basic doc but I couldn’t find it. I have a ror app that runs in a mongrel server, everything integrated within radrails in windows. I have some custom ruby mod…

---

## [AWS signatures](https://www.ruby-forum.com/t/aws-signatures/105231)

<div class="topic-metadata">

**Author:** [@cwd](https://www.ruby-forum.com/u/cwd)\
**Replies:** 1\
**Last updated:** [March 9, 2009, 11:08am UTC](https://www.ruby-forum.com/t/aws-signatures/105231 "2009-03-09T11:08:38Z")

</div>

When you define a ‘signature’ in AWS it seems not to allow you to change the types in the return depending on the circumstances. On the other hand the xmlrpc spec seems specifically to disallow the return of both a re…

---

## [Help with this syntaxis](https://www.ruby-forum.com/t/help-with-this-syntaxis/162364)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 4\
**Last updated:** [March 9, 2009, 11:03am UTC](https://www.ruby-forum.com/t/help-with-this-syntaxis/162364 "2009-03-09T11:03:37Z")

</div>

I have some doubts when to use this syntaxis in models: First, width this code: def project\_attributes=(project\_attributes) … end And second width this code: def add\_to\_cart(msg = nil) … end I don’t know when sh…

---

## [Will\_paginate when used with ajax going on show method](https://www.ruby-forum.com/t/will-paginate-when-used-with-ajax-going-on-show-method/162238)

<div class="topic-metadata">

**Author:** [@neetal](https://www.ruby-forum.com/u/neetal)\
**Replies:** 1\
**Last updated:** [March 9, 2009, 10:46am UTC](https://www.ruby-forum.com/t/will-paginate-when-used-with-ajax-going-on-show-method/162238 "2009-03-09T10:46:15Z")

</div>

Hi I have a problem while implementing pagination. Am using will\_paginate for it. I have a index page where am dispalying a list of users with pagination. Also there is a search feature, when user searches the users …

---

## [View related question](https://www.ruby-forum.com/t/view-related-question/162372)

<div class="topic-metadata">

**Author:** [@sudhi](https://www.ruby-forum.com/u/sudhi)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 10:29am UTC](https://www.ruby-forum.com/t/view-related-question/162372 "2009-03-09T10:29:53Z")

</div>

Hi, I intend to have a view that has 3 boxes with the following features One selection change in 1st select box, the second select box has to get updated. On selection of 2nd select box, the 3rd select box has …

---

## [Dynamic html elements in erb file](https://www.ruby-forum.com/t/dynamic-html-elements-in-erb-file/162370)

<div class="topic-metadata">

**Author:** [@badari](https://www.ruby-forum.com/u/badari)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 10:22am UTC](https://www.ruby-forum.com/t/dynamic-html-elements-in-erb-file/162370 "2009-03-09T10:22:49Z")

</div>

Hi, I have a huge table in database and need to fill the values using web forms. Some fields are repeatable so my form can have a link to provide same form many times. I can acheive this by using java script but how…

---

## [Demo :expires\_in with :memory\_store](https://www.ruby-forum.com/t/demo-expires-in-with-memory-store/162368)

<div class="topic-metadata">

**Author:** [@axgle](https://www.ruby-forum.com/u/axgle)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 10:03am UTC](https://www.ruby-forum.com/t/demo-expires-in-with-memory-store/162368 "2009-03-09T10:03:46Z")

</div>

require ‘rubygems’ require ‘active\_support’ cache = ActiveSupport::Cache.lookup\_store(:memory\_store) #cache=Rails.cache def cache.fetch(key,options={}) second=options.delete(:expires\_in).to\_i raise “cache\_fetch met…

---

## [Importing application constants into models and backgroundrb workers - How To?](https://www.ruby-forum.com/t/importing-application-constants-into-models-and-backgroundrb-workers-how-to/162354)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [March 9, 2009, 9:24am UTC](https://www.ruby-forum.com/t/importing-application-constants-into-models-and-backgroundrb-workers-how-to/162354 "2009-03-09T09:24:07Z")

</div>

Hi, I have an app\_constants.rb file for defining my constants. I need the same constants for checking conditions with my models and backgroundrb workers. When i tried require “app\_constants” in my models files it doe…

---

## [Send a email with from like this "mysitename \<webmaster@mysite.com\>"](https://www.ruby-forum.com/t/send-a-email-with-from-like-this-mysitename-webmaster-mysite-com/162365)

<div class="topic-metadata">

**Author:** [@Kang\_P](https://www.ruby-forum.com/u/Kang_P)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 9:14am UTC](https://www.ruby-forum.com/t/send-a-email-with-from-like-this-mysitename-webmaster-mysite-com/162365 "2009-03-09T09:14:46Z")

</div>

hi, i am using rails to send emails, i want to each email’s ‘from’ address has a name of mysite, e.g. “mysitename removed\_email\_address@domain.invalid”, but it doesn’t work when set from value like this, in gmail mail…

---

## [Skip\_before\_filter :verify\_authenticity\_token make session data not accessible](https://www.ruby-forum.com/t/skip-before-filter-verify-authenticity-token-make-session-data-not-accessible/162357)

<div class="topic-metadata">

**Author:** [@Chuong\_Huynh](https://www.ruby-forum.com/u/Chuong_Huynh)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 7:55am UTC](https://www.ruby-forum.com/t/skip-before-filter-verify-authenticity-token-make-session-data-not-accessible/162357 "2009-03-09T07:55:36Z")

</div>

Hi all, I’m stucked in following situation: I implemented image upload feature using swfupload. The submission from swfupload cause exception ActionController::InvalidAuthenticityToken (rails 2.2) - understandable be…

---

## [Multiple foreign keys create / destroy](https://www.ruby-forum.com/t/multiple-foreign-keys-create-destroy/162316)

<div class="topic-metadata">

**Author:** [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Replies:** 3\
**Last updated:** [March 9, 2009, 6:35am UTC](https://www.ruby-forum.com/t/multiple-foreign-keys-create-destroy/162316 "2009-03-09T06:35:52Z")

</div>

I have 4 models : class Country \< ActiveRecord::Base has\_many :cities has\_many :streets has\_many :houses end class City \< ActiveRecord::Base belongs\_to :country has\_many :streets has\_many :houses end class Str…

---

## [Storing UTC time, displaying and editing in user time zone](https://www.ruby-forum.com/t/storing-utc-time-displaying-and-editing-in-user-time-zone/162239)

<div class="topic-metadata">

**Author:** [@jah4711](https://www.ruby-forum.com/u/jah4711)\
**Replies:** 4\
**Last updated:** [March 9, 2009, 6:30am UTC](https://www.ruby-forum.com/t/storing-utc-time-displaying-and-editing-in-user-time-zone/162239 "2009-03-09T06:30:36Z")

</div>

Hi, I know that there are already some discussions/posts about this issue, however, none of them helped me to solve my problem. Disclaimer first: The application has done it already correctly, but now the time conver…

---

## [RESTful design with multiple model types on one page](https://www.ruby-forum.com/t/restful-design-with-multiple-model-types-on-one-page/162306)

<div class="topic-metadata">

**Author:** [@colinloretz](https://www.ruby-forum.com/u/colinloretz)\
**Replies:** 1\
**Last updated:** [March 9, 2009, 6:23am UTC](https://www.ruby-forum.com/t/restful-design-with-multiple-model-types-on-one-page/162306 "2009-03-09T06:23:00Z")

</div>

I have a nice RESTful design with separate pages for viewing and modifying my models in the conventional RESTful way. I now wish to provide a web page with several panels where each panel is showing data for a differ…

---

## [Comprehension question about controllers](https://www.ruby-forum.com/t/comprehension-question-about-controllers/162067)

<div class="topic-metadata">

**Author:** [@cojones](https://www.ruby-forum.com/u/cojones)\
**Replies:** 5\
**Last updated:** [March 9, 2009, 6:14am UTC](https://www.ruby-forum.com/t/comprehension-question-about-controllers/162067 "2009-03-09T06:14:48Z")

</div>

Hello, I have around 7 controllers with each 6-12 actions. Some of these actions use about 3-5 actions only working with another model and they don’t have much to do with the controller they’re in but getting one sin…

---

## [Using record variable in routes](https://www.ruby-forum.com/t/using-record-variable-in-routes/162346)

<div class="topic-metadata">

**Author:** [@drlelon](https://www.ruby-forum.com/u/drlelon)\
**Replies:** 1\
**Last updated:** [March 9, 2009, 5:49am UTC](https://www.ruby-forum.com/t/using-record-variable-in-routes/162346 "2009-03-09T05:49:01Z")

</div>

I have two models in my application. One model is the project and it has many images. I’d like to configure my routes so the URLs show the names of the projects and images instead of the IDs. For example: /projects…

---

## [OT: What is the best DNS for wildcard subdomains?](https://www.ruby-forum.com/t/ot-what-is-the-best-dns-for-wildcard-subdomains/162322)

<div class="topic-metadata">

**Author:** [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Replies:** 5\
**Last updated:** [March 9, 2009, 3:37am UTC](https://www.ruby-forum.com/t/ot-what-is-the-best-dns-for-wildcard-subdomains/162322 "2009-03-09T03:37:04Z")

</div>

I am having issues with netfirms in that in the past and right now certain subdomains result in a failure to direct the request to my servers. I need to find somewhere that is reliable and that can handle wildcard su…

---

## [Disqus Gem; creating new threads](https://www.ruby-forum.com/t/disqus-gem-creating-new-threads/162251)

<div class="topic-metadata">

**Author:** [@ramontayag](https://www.ruby-forum.com/u/ramontayag)\
**Replies:** 2\
**Last updated:** [March 9, 2009, 3:07am UTC](https://www.ruby-forum.com/t/disqus-gem-creating-new-threads/162251 "2009-03-09T03:07:30Z")

</div>

Hey everyone, I need a bit of help with the Disqus gem. I can’t seem to create new threads. Just to test it out, I tried to create a thread in the console: Disqus::Api.thread\_by\_identifier(:forum\_api\_key =\> “the …

---

## [Tech Session: Ruby on Rails - sat, March 14 - Hyderabad@Free of charge](https://www.ruby-forum.com/t/tech-session-ruby-on-rails-sat-march-14-hyderabad-free-of-charge/162348)

<div class="topic-metadata">

**Author:** [@S\_Athreya](https://www.ruby-forum.com/u/S_Athreya)\
**Replies:** 0\
**Last updated:** [March 9, 2009, 3:04am UTC](https://www.ruby-forum.com/t/tech-session-ruby-on-rails-sat-march-14-hyderabad-free-of-charge/162348 "2009-03-09T03:04:00Z")

</div>

Hello Everybody. Here is your chance to attend the coolest ‘Ruby on Rails’ event of the year at Hyderabad organized by Twincling Technology Foundation. Mr. Robert Adkins, CTO of Technetra, a Silicon Valley based open …

---

## [2 Issues - On load component hiding ; Separate find methods](https://www.ruby-forum.com/t/2-issues-on-load-component-hiding-separate-find-methods/162296)

<div class="topic-metadata">

**Author:** [@vishy](https://www.ruby-forum.com/u/vishy)\
**Replies:** 1\
**Last updated:** [March 9, 2009, 2:31am UTC](https://www.ruby-forum.com/t/2-issues-on-load-component-hiding-separate-find-methods/162296 "2009-03-09T02:31:51Z")

</div>

I have been working on developing a blog site using rails. This is my first rails application, hence I am fairly new to rails development. Over the past week, I have encountered a few issues and hence I am putting the…

---

## [Set Default Radio Button Value (html)](https://www.ruby-forum.com/t/set-default-radio-button-value-html/162291)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 1\
**Last updated:** [March 8, 2009, 9:19pm UTC](https://www.ruby-forum.com/t/set-default-radio-button-value-html/162291 "2009-03-08T21:19:45Z")

</div>

Is there a way to set the default value of a radio button that is coded in html with the value from an object? I am trying to set up an edit view for this object and am using submit\_to\_remote, so I cannot use the rai…

---

## [Got Error while using open\_id\_authentication plugin](https://www.ruby-forum.com/t/got-error-while-using-open-id-authentication-plugin/129974)

<div class="topic-metadata">

**Author:** [@chirag\_shah](https://www.ruby-forum.com/u/chirag_shah)\
**Replies:** 2\
**Last updated:** [March 8, 2009, 8:41pm UTC](https://www.ruby-forum.com/t/got-error-while-using-open-id-authentication-plugin/129974 "2009-03-08T20:41:54Z")

</div>

Hi, Please help me. I have installed open\_id\_authentication plugin in my application. I got an error “undefined method \`authenticate\_with\_open\_id’ for #AccountController:0x2aab49c51c68” in open\_id\_authentication plug…

---

## [Restful paths for rails - when error occurs](https://www.ruby-forum.com/t/restful-paths-for-rails-when-error-occurs/162335)

<div class="topic-metadata">

**Author:** [@Dhana](https://www.ruby-forum.com/u/Dhana)\
**Replies:** 0\
**Last updated:** [March 8, 2009, 8:35pm UTC](https://www.ruby-forum.com/t/restful-paths-for-rails-when-error-occurs/162335 "2009-03-08T20:35:36Z")

</div>

I have a question specific question on rails when error happens. I have a SessionsController that takes care of the user logging in and logging out using the restful actions “new” and “destroy”. Since I want the pat…

---

## [Model.reload not working; preventing me from rescuing optimistic lock exception](https://www.ruby-forum.com/t/model-reload-not-working-preventing-me-from-rescuing-optimistic-lock-exception/162309)

<div class="topic-metadata">

**Author:** [@gaveeno](https://www.ruby-forum.com/u/gaveeno)\
**Replies:** 3\
**Last updated:** [March 8, 2009, 8:20pm UTC](https://www.ruby-forum.com/t/model-reload-not-working-preventing-me-from-rescuing-optimistic-lock-exception/162309 "2009-03-08T20:20:54Z")

</div>

This error’s driving me crazy… I’m trying to test the code that I wrote to rescue the ActiveRecord::StaleObjectError exception…this is the exception that can occur when a model with optimistic locking is updated by mu…

---

## [Premature end of script headers error using Rails 2.3.1 and Passenger 2.1.1](https://www.ruby-forum.com/t/premature-end-of-script-headers-error-using-rails-2-3-1-and-passenger-2-1-1/162330)

<div class="topic-metadata">

**Author:** [@liquideclm](https://www.ruby-forum.com/u/liquideclm)\
**Replies:** 2\
**Last updated:** [March 8, 2009, 7:46pm UTC](https://www.ruby-forum.com/t/premature-end-of-script-headers-error-using-rails-2-3-1-and-passenger-2-1-1/162330 "2009-03-08T19:46:47Z")

</div>

I’m getting an HTTP 500 Internal Server Error using the latest beta of Rails (2.3.1 aka 2.3 RC2) and Passenger (2.1.1) beta under Ubuntu Intrepid (8.1). I’ve put the Passenger configuration files into two separate fil…

---

## [Displaying content using AJAX](https://www.ruby-forum.com/t/displaying-content-using-ajax/162314)

<div class="topic-metadata">

**Author:** [@vishy](https://www.ruby-forum.com/u/vishy)\
**Replies:** 1\
**Last updated:** [March 8, 2009, 5:49pm UTC](https://www.ruby-forum.com/t/displaying-content-using-ajax/162314 "2009-03-08T17:49:20Z")

</div>

All, I am trying to implement some ajax functionality on my web site. I have a list of links and each link have many items associated with it. For example, “My Netflix queue” link is connected to 10 movies (items). …

---

## [Displaying content using rails](https://www.ruby-forum.com/t/displaying-content-using-rails/162295)

<div class="topic-metadata">

**Author:** [@vishy](https://www.ruby-forum.com/u/vishy)\
**Replies:** 1\
**Last updated:** [March 8, 2009, 5:49pm UTC](https://www.ruby-forum.com/t/displaying-content-using-rails/162295 "2009-03-08T17:49:19Z")

</div>

All, I am trying to implement some ajax functionality on my web site. I have a list of links and each link have many items associated with it. For example, “My Netflix queue” link is connected to 10 movies (items). N…

---

## [Database table row creation method](https://www.ruby-forum.com/t/database-table-row-creation-method/162305)

<div class="topic-metadata">

**Author:** [@renars1985](https://www.ruby-forum.com/u/renars1985)\
**Replies:** 1\
**Last updated:** [March 8, 2009, 3:11pm UTC](https://www.ruby-forum.com/t/database-table-row-creation-method/162305 "2009-03-08T15:11:29Z")

</div>

I have following view for user input: Post new thing \<%= form\_tag :action =\> 'create' %\> Title \<%= text\_field 'thing', 'title' %\> Description \<%= text\_area 'thing', 'description' %\> Email \<%= text\_field 'thing', 'e…

---

## [Return binary file?](https://www.ruby-forum.com/t/return-binary-file/162304)

<div class="topic-metadata">

**Author:** [@giga](https://www.ruby-forum.com/u/giga)\
**Replies:** 1\
**Last updated:** [March 8, 2009, 1:55pm UTC](https://www.ruby-forum.com/t/return-binary-file/162304 "2009-03-08T13:55:49Z")

</div>

I trying to get http://festivaltts4r.rubyforge.org/ to work. “Hello world!”.to\_mp3(“/tmp/xxx.mp3”) With this I can generate a mp3 file, but how can I return it to browser? So if I open URL XXX Sex - Free Porn Videos a…

---

## [Undefined variable or method in form\_tag url](https://www.ruby-forum.com/t/undefined-variable-or-method-in-form-tag-url/162300)

<div class="topic-metadata">

**Author:** [@neubyr](https://www.ruby-forum.com/u/neubyr)\
**Replies:** 0\
**Last updated:** [March 8, 2009, 9:27am UTC](https://www.ruby-forum.com/t/undefined-variable-or-method-in-form-tag-url/162300 "2009-03-08T09:27:07Z")

</div>

Hello list, In ref. to my previous post: RESTful nested resources and polymorphism? - Rails - Ruby-Forum I am getting “undefined local variable or method \`item\_path’ for #ActionView::Base:0xb7065650”, when I try to c…

---

## [Permalink\_fu step by step help](https://www.ruby-forum.com/t/permalink-fu-step-by-step-help/162293)

<div class="topic-metadata">

**Author:** [@railslist](https://www.ruby-forum.com/u/railslist)\
**Replies:** 0\
**Last updated:** [March 8, 2009, 6:50am UTC](https://www.ruby-forum.com/t/permalink-fu-step-by-step-help/162293 "2009-03-08T06:50:17Z")

</div>

Guys Has anyone used permalink\_fu before?. Could someone throw a brief step by step how to use. whatever I have found on the internet does not seem to work. thanks

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

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