# Rails

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

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

---

## [Are objects stored in session updated automatically?](https://www.ruby-forum.com/t/are-objects-stored-in-session-updated-automatically/127732)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [January 31, 2008, 9:04pm UTC](https://www.ruby-forum.com/t/are-objects-stored-in-session-updated-automatically/127732 "2008-01-31T21:04:27Z")

</div>

If I lookup a user, and store that object in my session @user = User.find(:id) session\[:user\] = @user then the user record changes in the database in some way, then I try and reaccess that object @user = sessio…

---

## [String comparisons with variable cases](https://www.ruby-forum.com/t/string-comparisons-with-variable-cases/127727)

<div class="topic-metadata">

**Author:** [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Replies:** 0\
**Last updated:** [January 31, 2008, 8:01pm UTC](https://www.ruby-forum.com/t/string-comparisons-with-variable-cases/127727 "2008-01-31T20:01:19Z")

</div>

How do you guys get around having to downcase both sides of a string comparison when one of the string comes from the database. I think if you put it as a condition on the sql, then the case is ignored by MySQL. How …

---

## [What's your favorite RoR editor/IDE?](https://www.ruby-forum.com/t/whats-your-favorite-ror-editor-ide/121904)

<div class="topic-metadata">

**Author:** [@tdellaringa](https://www.ruby-forum.com/u/tdellaringa)\
**Replies:** 39\
**Last updated:** [January 31, 2008, 7:59pm UTC](https://www.ruby-forum.com/t/whats-your-favorite-ror-editor-ide/121904 "2008-01-31T19:59:06Z")

</div>

I’m a quarter of the way through Agile, and so far I’ve tried a few editors. NetBeans 6 seems fully featured, but I’m finding it clunky for me. InType is light and clean but doesn’t have any code completion or advance…

---

## [Ruport Book pre-orders shipped](https://www.ruby-forum.com/t/ruport-book-pre-orders-shipped/127724)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [January 31, 2008, 7:38pm UTC](https://www.ruby-forum.com/t/ruport-book-pre-orders-shipped/127724 "2008-01-31T19:38:26Z")

</div>

Hi folks, Sorry for the noise if this doesn’t apply to you, but I want to make sure I reach the folks that need to see this. I’ve shipped out all the pre-orders of the Ruport Book\[0\] that I knew I was supposed to shi…

---

## [Creating a temporary User](https://www.ruby-forum.com/t/creating-a-temporary-user/127647)

<div class="topic-metadata">

**Author:** [@yaphi](https://www.ruby-forum.com/u/yaphi)\
**Replies:** 1\
**Last updated:** [January 31, 2008, 7:30pm UTC](https://www.ruby-forum.com/t/creating-a-temporary-user/127647 "2008-01-31T19:30:09Z")

</div>

I am confused as to how to create a temporary User to retrieve / set tasks to. I am fairly certain this is the direction I am supposed to be moving in, but can’t figure out what I am doing wrong. Can anyone point me i…

---

## [Need a good RoR developer](https://www.ruby-forum.com/t/need-a-good-ror-developer/126421)

<div class="topic-metadata">

**Author:** [@RubyJob](https://www.ruby-forum.com/u/RubyJob)\
**Replies:** 14\
**Last updated:** [January 31, 2008, 7:16pm UTC](https://www.ruby-forum.com/t/need-a-good-ror-developer/126421 "2008-01-31T19:16:34Z")

</div>

I’m is looking for qualified Ruby on Rails developers to work on a client web portal project in Midtown Manhattan for a large financial research company. I’m the hiring manager, not a recruiter. Requirement Overview: …

---

## [\[ANN\] Cross Site Sniper 0.2 (stable)](https://www.ruby-forum.com/t/ann-cross-site-sniper-0-2-stable/127720)

<div class="topic-metadata">

**Author:** [@jonlog](https://www.ruby-forum.com/u/jonlog)\
**Replies:** 0\
**Last updated:** [January 31, 2008, 7:11pm UTC](https://www.ruby-forum.com/t/ann-cross-site-sniper-0-2-stable/127720 "2008-01-31T19:11:11Z")

</div>

I’m pleased to announce the release of Cross Site Sniper 0.2. Cross Site Sniper is one more addition to the ever growing list of tools that attempt to provide a convenient and DRY method to protect Rails sites from Cr…

---

## [Attr\_accessor puzzle?](https://www.ruby-forum.com/t/attr-accessor-puzzle/127502)

<div class="topic-metadata">

**Author:** [@myst\_tt](https://www.ruby-forum.com/u/myst_tt)\
**Replies:** 5\
**Last updated:** [January 31, 2008, 6:54pm UTC](https://www.ruby-forum.com/t/attr-accessor-puzzle/127502 "2008-01-31T18:54:04Z")

</div>

Hi, I have a “user” model, which has present “attr\_accessor :password” in the beginning, by which I wish only the password attribute could be read and written from outside of this class. However, by retrieving a user…

---

## [Subscriptions with paypal...how?](https://www.ruby-forum.com/t/subscriptions-with-paypal-how/127706)

<div class="topic-metadata">

**Author:** [@mix](https://www.ruby-forum.com/u/mix)\
**Replies:** 4\
**Last updated:** [January 31, 2008, 6:48pm UTC](https://www.ruby-forum.com/t/subscriptions-with-paypal-how/127706 "2008-01-31T18:48:45Z")

</div>

Hi, i’ve to do a little site which need the paypal’s subscription feature. How can implement it with rails? is there any plugin to do this? I need that every month the payment has been taken, tell the system that has …

---

## [4 day RoR course in Boca Raton](https://www.ruby-forum.com/t/4-day-ror-course-in-boca-raton/127711)

<div class="topic-metadata">

**Author:** [@rubycourses](https://www.ruby-forum.com/u/rubycourses)\
**Replies:** 0\
**Last updated:** [January 31, 2008, 5:25pm UTC](https://www.ruby-forum.com/t/4-day-ror-course-in-boca-raton/127711 "2008-01-31T17:25:05Z")

</div>

If anyone is interested: Instructor-led 4 day Ruby on Rails course scheduled in Boca Raton, FL here is the outline: http://www.inferdata.com/training/misc/rails.html Registration link: http://www.inferdata.com/cours…

---

## [OT: recommended source for logo design?](https://www.ruby-forum.com/t/ot-recommended-source-for-logo-design/127650)

<div class="topic-metadata">

**Author:** [@Jake\_C](https://www.ruby-forum.com/u/Jake_C)\
**Replies:** 5\
**Last updated:** [January 31, 2008, 5:13pm UTC](https://www.ruby-forum.com/t/ot-recommended-source-for-logo-design/127650 "2008-01-31T17:13:55Z")

</div>

Guys, I have a small startup in search of a good logo…I’ve looked at services like LogoWorks (though have seen reports of them ripping other folks off), LogoLoft.com, and LogoBee.com, but I’m was hoping to gain some …

---

## [Multiple relationships between two models](https://www.ruby-forum.com/t/multiple-relationships-between-two-models/127704)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 4\
**Last updated:** [January 31, 2008, 4:49pm UTC](https://www.ruby-forum.com/t/multiple-relationships-between-two-models/127704 "2008-01-31T16:49:06Z")

</div>

Hello all. I’m having trouble understanding how to set up multiple relationships between two models. I have a database for an art gallery. It will be used to track people (artists, buyers, donors, press contacts, et…

---

## [Array of session variables possible?](https://www.ruby-forum.com/t/array-of-session-variables-possible/127667)

<div class="topic-metadata">

**Author:** [@richbl](https://www.ruby-forum.com/u/richbl)\
**Replies:** 3\
**Last updated:** [January 31, 2008, 3:56pm UTC](https://www.ruby-forum.com/t/array-of-session-variables-possible/127667 "2008-01-31T15:56:40Z")

</div>

Hello all, Is it possible to create an array of session\[:values\]? Or a hash of session\[:values\]? I have a web application where I manage session variables for saving various control states (within the session; not pe…

---

## [How to resolve a string in a variable?](https://www.ruby-forum.com/t/how-to-resolve-a-string-in-a-variable/127683)

<div class="topic-metadata">

**Author:** [@mohit\_ranka](https://www.ruby-forum.com/u/mohit_ranka)\
**Replies:** 1\
**Last updated:** [January 31, 2008, 3:27pm UTC](https://www.ruby-forum.com/t/how-to-resolve-a-string-in-a-variable/127683 "2008-01-31T15:27:04Z")

</div>

Hi All, I have a string (which contains variable) in a variable variable\_name = “sample variable” initial\_string = “#{variable\_name} and the text goes on” (The string is being retrieved from Database (as string), so …

---

## [Using the RoR ORM technique, I am not able to create a new row for some tables](https://www.ruby-forum.com/t/using-the-ror-orm-technique-i-am-not-able-to-create-a-new-row-for-some-tables/127684)

<div class="topic-metadata">

**Author:** [@Usha\_Murali](https://www.ruby-forum.com/u/Usha_Murali)\
**Replies:** 1\
**Last updated:** [January 31, 2008, 2:43pm UTC](https://www.ruby-forum.com/t/using-the-ror-orm-technique-i-am-not-able-to-create-a-new-row-for-some-tables/127684 "2008-01-31T14:43:16Z")

</div>

Hi all, Using the RoR ORM technique, I am not able to create a new row for some tables (ie Mytable.new or Mytable.create mwthods does not work), while at the same time i can do the same for some other tables. Please …

---

## [Cache\_fu and sweepers](https://www.ruby-forum.com/t/cache-fu-and-sweepers/127690)

<div class="topic-metadata">

**Author:** [@Nicholas\_W](https://www.ruby-forum.com/u/Nicholas_W)\
**Replies:** 0\
**Last updated:** [January 31, 2008, 12:59pm UTC](https://www.ruby-forum.com/t/cache-fu-and-sweepers/127690 "2008-01-31T12:59:55Z")

</div>

If I have something like Foo.cached( :bar ) where in Foo.bar I run a very expensive finder, how can I use a sweeper to expire my cache ? I’m trying to use reset\_cache but probably I didn’t get how it works … Someone …

---

## [Problem in retrieving data from MYSQL](https://www.ruby-forum.com/t/problem-in-retrieving-data-from-mysql/127665)

<div class="topic-metadata">

**Author:** [@mohit\_ranka](https://www.ruby-forum.com/u/mohit_ranka)\
**Replies:** 5\
**Last updated:** [January 31, 2008, 11:32am UTC](https://www.ruby-forum.com/t/problem-in-retrieving-data-from-mysql/127665 "2008-01-31T11:32:14Z")

</div>

Hi All, I am writing a find\_by\_sql, as EmailTemplate.find\_by\_sql(“SELECT subject FROM email\_templates WHERE email\_key=’#{template\_key}’”) The query is returning ‘— \\n- !ruby/object:EmailTemplate \\n attributes: \\n …

---

## [Using UTSOURCE](https://www.ruby-forum.com/t/using-utsource/127679)

<div class="topic-metadata">

**Author:** [@derek122](https://www.ruby-forum.com/u/derek122)\
**Replies:** 0\
**Last updated:** [January 31, 2008, 11:11am UTC](https://www.ruby-forum.com/t/using-utsource/127679 "2008-01-31T11:11:02Z")

</div>

Using UTSOURCE to find the electronic components is so easy . you just need to input the partsâ€™ types, UTSOURCE must give you the partsâ€™ informations. UTSOURCE include the CMOS electronic components,the types have …

---

## [Sharing Sessions between Rails & Php](https://www.ruby-forum.com/t/sharing-sessions-between-rails-php/127644)

<div class="topic-metadata">

**Author:** [@sideshow](https://www.ruby-forum.com/u/sideshow)\
**Replies:** 3\
**Last updated:** [January 31, 2008, 10:47am UTC](https://www.ruby-forum.com/t/sharing-sessions-between-rails-php/127644 "2008-01-31T10:47:49Z")

</div>

Hey there everyone Does anyone have any experience on this and if so could you please guide me in the right direction? I have a rails app which is password protected using acts as authenticated I want to use php for…

---

## [Request Controller Name in View?](https://www.ruby-forum.com/t/request-controller-name-in-view/127669)

<div class="topic-metadata">

**Author:** [@mgiorno](https://www.ruby-forum.com/u/mgiorno)\
**Replies:** 7\
**Last updated:** [January 31, 2008, 10:41am UTC](https://www.ruby-forum.com/t/request-controller-name-in-view/127669 "2008-01-31T10:41:54Z")

</div>

Hi, I was wondering if there were anyway to return the controller name in my view. Any help would be appreciated. Thanks! -Mario

---

## [Oreilly photos](https://www.ruby-forum.com/t/oreilly-photos/127673)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 0\
**Last updated:** [January 31, 2008, 10:31am UTC](https://www.ruby-forum.com/t/oreilly-photos/127673 "2008-01-31T10:31:51Z")

</div>

I’m looking at p81 of Ruby on Rails: Up and Running \[Book\] : “assign a category to a photo” where they describe using partials to assign a category to photo. Is there an easier way? thanks, Thufir http://code.goog…

---

## [Sending file from mobile phone to Rails app](https://www.ruby-forum.com/t/sending-file-from-mobile-phone-to-rails-app/127489)

<div class="topic-metadata">

**Author:** [@a2ahmad](https://www.ruby-forum.com/u/a2ahmad)\
**Replies:** 9\
**Last updated:** [January 31, 2008, 9:56am UTC](https://www.ruby-forum.com/t/sending-file-from-mobile-phone-to-rails-app/127489 "2008-01-31T09:56:32Z")

</div>

Hi guys, So I’m trying to add the ability to send files (pictures) from mobile phones to my Rails app using an SMS number, NOT an email address. Can anyone share how this is done? Thanks, Adeel

---

## [The Rails Way ebook?](https://www.ruby-forum.com/t/the-rails-way-ebook/126133)

<div class="topic-metadata">

**Author:** [@fredistic](https://www.ruby-forum.com/u/fredistic)\
**Replies:** 16\
**Last updated:** [January 31, 2008, 6:18am UTC](https://www.ruby-forum.com/t/the-rails-way-ebook/126133 "2008-01-31T06:18:39Z")

</div>

A couple of sites are advertising PDF versions of this book. But I suspect they are not PDF’s but DRM versions that require the Adobe ‘Digital Editions’ reader. For example, this site: Or this Russian site, which s…

---

## [Check for Errors](https://www.ruby-forum.com/t/check-for-errors/127655)

<div class="topic-metadata">

**Author:** [@tim](https://www.ruby-forum.com/u/tim)\
**Replies:** 1\
**Last updated:** [January 31, 2008, 6:02am UTC](https://www.ruby-forum.com/t/check-for-errors/127655 "2008-01-31T06:02:15Z")

</div>

in the application.rhtml I am trying to check and see if any of the models associated with this controller have errors (i.e. - model.errors.count \> 0). Does anyone know how to do that using reflection or something …

---

## [Relating models question](https://www.ruby-forum.com/t/relating-models-question/127662)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [January 31, 2008, 5:44am UTC](https://www.ruby-forum.com/t/relating-models-question/127662 "2008-01-31T05:44:41Z")

</div>

Hello All, Basically I’m trying to create a model relationship that is used to link (I’m hoping to call it Follows) one model to another. I was hoping to use a polymorphic relationship so I don’t have lots of tables.…

---

## [Is there money in Rails consulting in NYC](https://www.ruby-forum.com/t/is-there-money-in-rails-consulting-in-nyc/127657)

<div class="topic-metadata">

**Author:** [@padboo](https://www.ruby-forum.com/u/padboo)\
**Replies:** 0\
**Last updated:** [January 31, 2008, 3:45am UTC](https://www.ruby-forum.com/t/is-there-money-in-rails-consulting-in-nyc/127657 "2008-01-31T03:45:39Z")

</div>

Hello, I am new to Rails consulting scene and am wondering if I am late to the game. Is there still money to be made in Rails consulting in NYC area? What are the going rates? Thanks, Leo

---

## [Understanding Polymorphicness](https://www.ruby-forum.com/t/understanding-polymorphicness/127399)

<div class="topic-metadata">

**Author:** [@kopf1988](https://www.ruby-forum.com/u/kopf1988)\
**Replies:** 5\
**Last updated:** [January 31, 2008, 3:02am UTC](https://www.ruby-forum.com/t/understanding-polymorphicness/127399 "2008-01-31T03:02:14Z")

</div>

Rating Model - belongs\_to :ratable, :polymorphic =\> true User Model & Comment Model & Picture Model - has\_one :rating, :as =\> :ratable Okay, so now my “Ratings” table should have these columns: ups = 5 downs = 2 ra…

---

## [Rake Bug? db:create:all directs db:migrate to the test db](https://www.ruby-forum.com/t/rake-bug-dball-directs-db-migrate-to-the-test-db/127649)

<div class="topic-metadata">

**Author:** [@akira](https://www.ruby-forum.com/u/akira)\
**Replies:** 0\
**Last updated:** [January 31, 2008, 2:37am UTC](https://www.ruby-forum.com/t/rake-bug-dball-directs-db-migrate-to-the-test-db/127649 "2008-01-31T02:37:03Z")

</div>

Dear all, task ‘test’ do Rake::Task\[‘db:create:all’\].invoke Rake::Task\[‘db:migrate’\].invoke end Did I miss something or what? Turns out that this simple task would have migration done in the test db. I’ve tried to…

---

## [Ruby on Rails Quick Reference Guide](https://www.ruby-forum.com/t/ruby-on-rails-quick-reference-guide/127582)

<div class="topic-metadata">

**Author:** [@mcmohd](https://www.ruby-forum.com/u/mcmohd)\
**Replies:** 3\
**Last updated:** [January 31, 2008, 1:47am UTC](https://www.ruby-forum.com/t/ruby-on-rails-quick-reference-guide/127582 "2008-01-31T01:47:08Z")

</div>

Hi! Got one quick reference for Ruby on Rails developers. If you can tell me how to make its PDF then I will put all these URLS in PDF and will share with the community. But it should not be a big work. Thanks Moh…

---

## [Using select to set a relationship class](https://www.ruby-forum.com/t/using-select-to-set-a-relationship-class/127538)

<div class="topic-metadata">

**Author:** [@apswartz](https://www.ruby-forum.com/u/apswartz)\
**Replies:** 2\
**Last updated:** [January 31, 2008, 1:34am UTC](https://www.ruby-forum.com/t/using-select-to-set-a-relationship-class/127538 "2008-01-31T01:34:48Z")

</div>

I have two models:Task and Context Task belongs\_to Context Context has\_many Tasks In my form partial for editing a task, I want to have a drop down with all of the contexts where you can select one for the task. I …

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

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