# Rails

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

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

---

## [Site map](https://www.ruby-forum.com/t/site-map/177207)

<div class="topic-metadata">

**Author:** [@smit\_shah](https://www.ruby-forum.com/u/smit_shah)\
**Replies:** 3\
**Last updated:** [October 14, 2009, 4:49pm UTC](https://www.ruby-forum.com/t/site-map/177207 "2009-10-14T16:49:50Z")

</div>

Hi All… I am using generate\_sitemap plugin to generate sitemap. It goes very well and creates sitemap as well. My problem is I want some links that are coming from vender/plugins. Can any one tell me how to get those …

---

## [Render partials with nested attributes in another model](https://www.ruby-forum.com/t/render-partials-with-nested-attributes-in-another-model/177294)

<div class="topic-metadata">

**Author:** [@Ryan\_Tinsley](https://www.ruby-forum.com/u/Ryan_Tinsley)\
**Replies:** 0\
**Last updated:** [October 14, 2009, 4:33pm UTC](https://www.ruby-forum.com/t/render-partials-with-nested-attributes-in-another-model/177294 "2009-10-14T16:33:26Z")

</div>

Hi everyone, My previous question was posted herehttp://groups.google.com/group/rubyonrails-talk/browse\_thread/thread/dddaeb075789d4b5. I’m starting a new topic as the problems have shifted. I have a rails applicatio…

---

## [Problem with onload](https://www.ruby-forum.com/t/problem-with-onload/177282)

<div class="topic-metadata">

**Author:** [@rafaelrosafu](https://www.ruby-forum.com/u/rafaelrosafu)\
**Replies:** 2\
**Last updated:** [October 14, 2009, 4:33pm UTC](https://www.ruby-forum.com/t/problem-with-onload/177282 "2009-10-14T16:33:25Z")

</div>

Hi all, Does someone know why the following code doesnÂ´t work if it is embedded in a partial?in a regular .rhtml file works well.

---

## [Searching a model based on a filter on its association](https://www.ruby-forum.com/t/searching-a-model-based-on-a-filter-on-its-association/177258)

<div class="topic-metadata">

**Author:** [@Sahil\_D](https://www.ruby-forum.com/u/Sahil_D)\
**Replies:** 1\
**Last updated:** [October 14, 2009, 2:59pm UTC](https://www.ruby-forum.com/t/searching-a-model-based-on-a-filter-on-its-association/177258 "2009-10-14T14:59:19Z")

</div>

Hi all, I got association like the following in my rails app. Class User \< ActiveRecord::Base has\_one :profile end Class Profile \< ActiveRecord::Base establish\_connection :some\_other\_db belongs\_to :user end I ne…

---

## [Nobel jury speaks out in defense of Obama prize](https://www.ruby-forum.com/t/nobel-jury-speaks-out-in-defense-of-obama-prize/177284)

<div class="topic-metadata">

**Author:** [@stimpy](https://www.ruby-forum.com/u/stimpy)\
**Replies:** 0\
**Last updated:** [October 14, 2009, 2:56pm UTC](https://www.ruby-forum.com/t/nobel-jury-speaks-out-in-defense-of-obama-prize/177284 "2009-10-14T14:56:50Z")

</div>

Nobel jury speaks out in defense of Obama prize http://bit.ly/2dWFN5 http://bit.ly/2dWFN5 Nobel jury speaks out in defense of Obama prize --~--~---------~--~----~------------~-------~--~----~ You received this …

---

## [How to implement get and post method in Ruby on Rails](https://www.ruby-forum.com/t/how-to-implement-get-and-post-method-in-ruby-on-rails/177273)

<div class="topic-metadata">

**Author:** [@yousef\_1987](https://www.ruby-forum.com/u/yousef_1987)\
**Replies:** 2\
**Last updated:** [October 14, 2009, 2:19pm UTC](https://www.ruby-forum.com/t/how-to-implement-get-and-post-method-in-ruby-on-rails/177273 "2009-10-14T14:19:21Z")

</div>

hi everybody I am trying to develop a simple Ruby on Rails application . what I want to know , how I can implement get and post method in Ruby on Rails thanks in Advance

---

## [Sophisticated routes recognition (with regexp, for instance). Is there any way?](https://www.ruby-forum.com/t/sophisticated-routes-recognition-with-regexp-for-instance-is-there-any-way/177278)

<div class="topic-metadata">

**Author:** [@daniel304](https://www.ruby-forum.com/u/daniel304)\
**Replies:** 0\
**Last updated:** [October 14, 2009, 1:52pm UTC](https://www.ruby-forum.com/t/sophisticated-routes-recognition-with-regexp-for-instance-is-there-any-way/177278 "2009-10-14T13:52:25Z")

</div>

Hi! Let’s imagine we need to deal with such non-RESTful routes: /!some\_value # note the ‘!’ in the beginning /resource(value) == The first obvious way to do it in Rails is: map.first\_example ‘/…

---

## [Reg: deployment](https://www.ruby-forum.com/t/reg-deployment/197103)

<div class="topic-metadata">

**Author:** [@pradheep](https://www.ruby-forum.com/u/pradheep)\
**Replies:** 1\
**Last updated:** [October 14, 2009, 1:19pm UTC](https://www.ruby-forum.com/t/reg-deployment/197103 "2009-10-14T13:19:02Z")

</div>

Hi, I am very new to deploy process… i have an ror application and i am using netbeansIDE6.5. i dont know how to deploy and move the application to production mode . Please explain me how to deploy in step by step

---

## [Nokogiri: to\_s WITHOUT html surrounding's tags?](https://www.ruby-forum.com/t/nokogiri-to-s-without-html-surroundings-tags/177241)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 9\
**Last updated:** [October 14, 2009, 10:42am UTC](https://www.ruby-forum.com/t/nokogiri-to-s-without-html-surroundings-tags/177241 "2009-10-14T10:42:08Z")

</div>

Hi all n = Nokogiri::HTML(“ H1”) n.to\_s =\> \<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd\\"\>\\n H1 Is there a method that only outputs the stuff I’ve read, an…

---

## [Maximum for has\_many relationship?](https://www.ruby-forum.com/t/maximum-for-has-many-relationship/177261)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 1\
**Last updated:** [October 14, 2009, 10:28am UTC](https://www.ruby-forum.com/t/maximum-for-has-many-relationship/177261 "2009-10-14T10:28:03Z")

</div>

Im wondering, is there a way to set a limit/maximum for the number of objects saved in a has\_many relationship? For example, I have Users that have a has\_many relationship with the model BaseballCards. Is there a bu…

---

## [Select statements do not work on MySQL](https://www.ruby-forum.com/t/select-statements-do-not-work-on-mysql/177260)

<div class="topic-metadata">

**Author:** [@adammontgomery](https://www.ruby-forum.com/u/adammontgomery)\
**Replies:** 6\
**Last updated:** [October 14, 2009, 10:23am UTC](https://www.ruby-forum.com/t/select-statements-do-not-work-on-mysql/177260 "2009-10-14T10:23:55Z")

</div>

Hi everyone, I run into a problem after deploying my app to prod env on a Apache server with Passenger and MySQL5. The application works nearly fine, the only problem is that any select statements do not work on the …

---

## [Why need before\_validation etc methods be public?](https://www.ruby-forum.com/t/why-need-before-validation-etc-methods-be-public/177085)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 6\
**Last updated:** [October 14, 2009, 10:22am UTC](https://www.ruby-forum.com/t/why-need-before-validation-etc-methods-be-public/177085 "2009-10-14T10:22:05Z")

</div>

Hi all I just wondered why a private before\_validation method is not called when an ActiveRecord object is saved? When it’s public, then it works… Why is that? In my opinion, the before\_validation method should intui…

---

## [Problem with backgroundrb!](https://www.ruby-forum.com/t/problem-with-backgroundrb/161787)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [October 14, 2009, 8:41am UTC](https://www.ruby-forum.com/t/problem-with-backgroundrb/161787 "2009-10-14T08:41:27Z")

</div>

Hi, I installed backgroundrb. I have done everything documented (in http://backgroundrb.rubyforge.org/) but, i am still unable to figure out, the kind of error i get while trying to start the backgroundrb server …

---

## [Render partials with nested attributes from another model](https://www.ruby-forum.com/t/render-partials-with-nested-attributes-from-another-model/177257)

<div class="topic-metadata">

**Author:** [@Ryan\_Tinsley](https://www.ruby-forum.com/u/Ryan_Tinsley)\
**Replies:** 0\
**Last updated:** [October 14, 2009, 7:50am UTC](https://www.ruby-forum.com/t/render-partials-with-nested-attributes-from-another-model/177257 "2009-10-14T07:50:34Z")

</div>

Hi everyone, My previous question was posted herehttp://groups.google.com/group/rubyonrails-talk/browse\_thread/thread/dddaeb075789d4b5. I’m starting a new topic as the problems have shifted. I have a rails applicatio…

---

## [How to time out a query](https://www.ruby-forum.com/t/how-to-time-out-a-query/176167)

<div class="topic-metadata">

**Author:** [@skar](https://www.ruby-forum.com/u/skar)\
**Replies:** 2\
**Last updated:** [October 14, 2009, 7:34am UTC](https://www.ruby-forum.com/t/how-to-time-out-a-query/176167 "2009-10-14T07:34:11Z")

</div>

Hi, I’ve got an activerecord query which takes longer than 100 seconds. I’m using rails 2.2 with postgresql 8.3. mentions an option called “statement\_timeout” which when set aborts a query which takes longer than x …

---

## [Ruby/C question](https://www.ruby-forum.com/t/ruby-c-question/177252)

<div class="topic-metadata">

**Author:** [@Jeffrey\_LSTaylor](https://www.ruby-forum.com/u/Jeffrey_LSTaylor)\
**Replies:** 0\
**Last updated:** [October 14, 2009, 7:20am UTC](https://www.ruby-forum.com/t/ruby-c-question/177252 "2009-10-14T07:20:08Z")

</div>

I am working with libxml-ruby, the Ruby wrapper for the C libxml. I don’t understand one section (rxml\_reader\_io). The line below (‘result’ is the Ruby VALUE for the object): rb\_ivar\_set(result, IO\_ATTR, io); whe…

---

## [Render partials with nested attributes from another model](https://www.ruby-forum.com/t/render-partials-with-nested-attributes-from-another-model/177251)

<div class="topic-metadata">

**Author:** [@Ryan\_Tinsley](https://www.ruby-forum.com/u/Ryan_Tinsley)\
**Replies:** 0\
**Last updated:** [October 14, 2009, 7:12am UTC](https://www.ruby-forum.com/t/render-partials-with-nested-attributes-from-another-model/177251 "2009-10-14T07:12:31Z")

</div>

Hi everyone, My previous question was posted herehttp://groups.google.com/group/rubyonrails-talk/browse\_thread/thread/dddaeb075789d4b5. I’m starting a new topic as the problems have shifted. I have a rails applicatio…

---

## [I'd like to use the mail\_to method in a model](https://www.ruby-forum.com/t/id-like-to-use-the-mail-to-method-in-a-model/177236)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 3\
**Last updated:** [October 14, 2009, 2:17am UTC](https://www.ruby-forum.com/t/id-like-to-use-the-mail-to-method-in-a-model/177236 "2009-10-14T02:17:30Z")

</div>

Hi all I’d like to use the mail\_to method from the views within a model: How can I include this module into my model? Thanks Josh

---

## [Obama: Afghanistan decision in 'coming weeks'](https://www.ruby-forum.com/t/obama-afghanistan-decision-in-coming-weeks/177246)

<div class="topic-metadata">

**Author:** [@stimpy](https://www.ruby-forum.com/u/stimpy)\
**Replies:** 0\
**Last updated:** [October 14, 2009, 2:16am UTC](https://www.ruby-forum.com/t/obama-afghanistan-decision-in-coming-weeks/177246 "2009-10-14T02:16:55Z")

</div>

Obama: Afghanistan decision in 'coming weeks' http://bit.ly/2dWFN5 http://bit.ly/2dWFN5 http://bit.ly/2dWFN5 Obama: Afghanistan decision in 'coming weeks' --~--~---------~--~----~------------~-------~--~----~ …

---

## [Auto-logout after 15 minutes](https://www.ruby-forum.com/t/auto-logout-after-15-minutes/177237)

<div class="topic-metadata">

**Author:** [@RubyonRails\_newbie](https://www.ruby-forum.com/u/RubyonRails_newbie)\
**Replies:** 1\
**Last updated:** [October 13, 2009, 11:38pm UTC](https://www.ruby-forum.com/t/auto-logout-after-15-minutes/177237 "2009-10-13T23:38:14Z")

</div>

Hi There, Im going through the ruby on rails tutorial ‘Railsspace’ at the moment. There is a :remember\_me function that allows a cookie to be set at login to remember the user. See below: if @user.remember\_me == “1” …

---

## [Job Post - ROR Jr Programmer - Austin, TX](https://www.ruby-forum.com/t/job-post-ror-jr-programmer-austin-tx/177238)

<div class="topic-metadata">

**Author:** [@amwfllc](https://www.ruby-forum.com/u/amwfllc)\
**Replies:** 0\
**Last updated:** [October 13, 2009, 11:35pm UTC](https://www.ruby-forum.com/t/job-post-ror-jr-programmer-austin-tx/177238 "2009-10-13T23:35:19Z")

</div>

Ruby on Rails Programmer - Junior Our client, based in Austin, TX, is looking for a Ruby on Rails Programmer to join their dynamic team of experienced programmers. As a Ruby on Rails Programmer, you will perform a cri…

---

## [Re: Test rails model with Cucumber?](https://www.ruby-forum.com/t/re-test-rails-model-with-cucumber/177240)

<div class="topic-metadata">

**Author:** [@builtbysimple](https://www.ruby-forum.com/u/builtbysimple)\
**Replies:** 0\
**Last updated:** [October 13, 2009, 11:28pm UTC](https://www.ruby-forum.com/t/re-test-rails-model-with-cucumber/177240 "2009-10-13T23:28:52Z")

</div>

Hi Marnen, On Oct 14, 12:55 am, Marnen Laibow-Koser removed\_email\_address@domain.invalid wrote: best for testing user interface. Thank you very much for the insight. Now I know that I shouldn’t waste time trying to…

---

## [Named scope for 'all without conditional associations'](https://www.ruby-forum.com/t/named-scope-for-all-without-conditional-associations/177151)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 8\
**Last updated:** [October 13, 2009, 10:54pm UTC](https://www.ruby-forum.com/t/named-scope-for-all-without-conditional-associations/177151 "2009-10-13T22:54:15Z")

</div>

That title doesn’t explain it very well… Basically a User has many sign\_ins, and sign\_ins have a created\_at field. I want to do a named scope on User which returns all users who have no sign\_ins in the last two month…

---

## [Error Handling in Scaffolds](https://www.ruby-forum.com/t/error-handling-in-scaffolds/177230)

<div class="topic-metadata">

**Author:** [@Phoenix\_R](https://www.ruby-forum.com/u/Phoenix_R)\
**Replies:** 4\
**Last updated:** [October 13, 2009, 10:49pm UTC](https://www.ruby-forum.com/t/error-handling-in-scaffolds/177230 "2009-10-13T22:49:38Z")

</div>

Howdy all, I’ve never been one to use scaffolds in my Rails projects, but I’m looking at it right now as a possible time saver. I spend a ridiculous amount of time building the forms, and slightly less (but more tha…

---

## [RSpec, flash messages and redirection](https://www.ruby-forum.com/t/rspec-flash-messages-and-redirection/177233)

<div class="topic-metadata">

**Author:** [@leo72](https://www.ruby-forum.com/u/leo72)\
**Replies:** 0\
**Last updated:** [October 13, 2009, 10:20pm UTC](https://www.ruby-forum.com/t/rspec-flash-messages-and-redirection/177233 "2009-10-13T22:20:57Z")

</div>

Hello everybody I’m having some problems with RSpec. When using something like “I should see ‘some text’” that text is set on a flash message in the controller and displayed by = flash\[:notice\] in the layout view, s…

---

## [Need a clear view on this](https://www.ruby-forum.com/t/need-a-clear-view-on-this/177229)

<div class="topic-metadata">

**Author:** [@jhaagmans](https://www.ruby-forum.com/u/jhaagmans)\
**Replies:** 3\
**Last updated:** [October 13, 2009, 10:14pm UTC](https://www.ruby-forum.com/t/need-a-clear-view-on-this/177229 "2009-10-13T22:14:30Z")

</div>

Hi, I would like to store possible values in a database, to make them available in a select list. The possible values consist of one ore more of the values between 1 and 100. So if I would put an example in an array,…

---

## [Attr\_accessible :field - obj.field="xxx" still possible?!](https://www.ruby-forum.com/t/attr-accessible-field-obj-field-xxx-still-possible/177223)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 4\
**Last updated:** [October 13, 2009, 9:03pm UTC](https://www.ruby-forum.com/t/attr-accessible-field-obj-field-xxx-still-possible/177223 "2009-10-13T21:03:42Z")

</div>

Hi all MyClass \< ActiveRecord::Base attr\_protected :field end In script/console: x = MyClass.find 1 =\> field = “original” x.field=“blah” =\> “blah” x.save =\> … x = MyClass.find 1 =\> field = “original” Why is ther…

---

## [Migrating Rails App to New Host/IP with No Downtime?](https://www.ruby-forum.com/t/migrating-rails-app-to-new-host-ip-with-no-downtime/177166)

<div class="topic-metadata">

**Author:** [@JimCifarelli](https://www.ruby-forum.com/u/JimCifarelli)\
**Replies:** 10\
**Last updated:** [October 13, 2009, 8:44pm UTC](https://www.ruby-forum.com/t/migrating-rails-app-to-new-host-ip-with-no-downtime/177166 "2009-10-13T20:44:21Z")

</div>

Hello Rails Community, In the spirit of being agile with your Rails deployment and scaling, can you recommend a process for moving your application to another hosting provider where a new IP address will be assigned? …

---

## [Using a method from another class](https://www.ruby-forum.com/t/using-a-method-from-another-class/177224)

<div class="topic-metadata">

**Author:** [@BLoudermilk](https://www.ruby-forum.com/u/BLoudermilk)\
**Replies:** 0\
**Last updated:** [October 13, 2009, 7:56pm UTC](https://www.ruby-forum.com/t/using-a-method-from-another-class/177224 "2009-10-13T19:56:21Z")

</div>

I’m writing a unit test that inherits from ActionController::TestCase, but I need to access a method in ActiveResource::Connection. Is this possible? How can I do it?

---

## [Config.action\_controller.session\[:secret\] vs protect\_from\_forgery :secret](https://www.ruby-forum.com/t/config-action-controller-session-secret-vs-protect-from-forgery-secret/177221)

<div class="topic-metadata">

**Author:** [@mhfs](https://www.ruby-forum.com/u/mhfs)\
**Replies:** 1\
**Last updated:** [October 13, 2009, 7:33pm UTC](https://www.ruby-forum.com/t/config-action-controller-session-secret-vs-protect-from-forgery-secret/177221 "2009-10-13T19:33:31Z")

</div>

What I want to do is share the same session across many Rails applications. All of them are using Rails 2.2.2. I know that, to share the session, it’s (supposedly) just a matter of sharing the same key and secret amo…

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

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