# Rails

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

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

---

## [How to show price on store list?](https://www.ruby-forum.com/t/how-to-show-price-on-store-list/172733)

<div class="topic-metadata">

**Author:** [@Mike75](https://www.ruby-forum.com/u/Mike75)\
**Replies:** 1\
**Last updated:** [July 27, 2009, 8:09am UTC](https://www.ruby-forum.com/t/how-to-show-price-on-store-list/172733 "2009-07-27T08:09:42Z")

</div>

hi… I have separated a product table and a price table, because One product can have many prices. Users choose a bag\_size from the drop down box. ex) a prodct “a” has 2 bag size(1,2) a price of 1 is $4.99 a price …

---

## [Override a private method on an ActiveRecord submodule](https://www.ruby-forum.com/t/override-a-private-method-on-an-activerecord-submodule/172729)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [July 27, 2009, 6:33am UTC](https://www.ruby-forum.com/t/override-a-private-method-on-an-activerecord-submodule/172729 "2009-07-27T06:33:07Z")

</div>

Hi. I’m currently writing a plugin, which “could” be a patch in that it must override a private method of ActiveRecord API, in ActiveRecord::Dirty, to work smoothly. To make a long story short, this plugin aims at en…

---

## [Non-association and pulling data from many models](https://www.ruby-forum.com/t/non-association-and-pulling-data-from-many-models/172719)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 8\
**Last updated:** [July 27, 2009, 6:26am UTC](https://www.ruby-forum.com/t/non-association-and-pulling-data-from-many-models/172719 "2009-07-27T06:26:33Z")

</div>

Here is my current model with the issue: class Virtual \< ActiveRecord::Base belongs\_to :team named\_scope :compiled\_this\_week, lambda { { :conditions =\> \[‘created\_at \> ? and created\_at \< ?’, Time.now.beginning\_of\_wee…

---

## [Won't display characters following '\\267'](https://www.ruby-forum.com/t/wont-display-characters-following-267/170876)

<div class="topic-metadata">

**Author:** [@nik](https://www.ruby-forum.com/u/nik)\
**Replies:** 10\
**Last updated:** [July 27, 2009, 4:40am UTC](https://www.ruby-forum.com/t/wont-display-characters-following-267/170876 "2009-07-27T04:40:07Z")

</div>

Hello! I use MySQL and making sure it is UTF-8 and in my view the character set is also UTF-8. But when I display the text whose input came from either an antiword.exe or WIN32OLE output of a MS Word document in a te…

---

## [Best Books and Tutorials on Rails?](https://www.ruby-forum.com/t/best-books-and-tutorials-on-rails/172287)

<div class="topic-metadata">

**Author:** [@shusseina](https://www.ruby-forum.com/u/shusseina)\
**Replies:** 2\
**Last updated:** [July 27, 2009, 3:43am UTC](https://www.ruby-forum.com/t/best-books-and-tutorials-on-rails/172287 "2009-07-27T03:43:56Z")

</div>

I am a Ruby/Rails newby, currently reading “Simply Rails 2” by Patrick Lenz. While I am finding it worthwhile I was hoping others could recommend other good books and online tutorials for learning Rails. I have read …

---

## [Nested form is giving me the wrong params](https://www.ruby-forum.com/t/nested-form-is-giving-me-the-wrong-params/172721)

<div class="topic-metadata">

**Author:** [@mwalsh](https://www.ruby-forum.com/u/mwalsh)\
**Replies:** 5\
**Last updated:** [July 27, 2009, 3:17am UTC](https://www.ruby-forum.com/t/nested-form-is-giving-me-the-wrong-params/172721 "2009-07-27T03:17:36Z")

</div>

I am working on an invoice tracking system for my business and have gotten so close to getting this portion to work! I have an Invoice model with many InvoiceItems. I am following this example (which is based off of r…

---

## [How to pass the value from radio button to controller?](https://www.ruby-forum.com/t/how-to-pass-the-value-from-radio-button-to-controller/172717)

<div class="topic-metadata">

**Author:** [@serenobs](https://www.ruby-forum.com/u/serenobs)\
**Replies:** 5\
**Last updated:** [July 26, 2009, 11:06pm UTC](https://www.ruby-forum.com/t/how-to-pass-the-value-from-radio-button-to-controller/172717 "2009-07-26T23:06:32Z")

</div>

Hi. I used radio\_button\_tag. and I want to pass the value of selected radio button to controller. \<%= radio\_button\_tag ‘exp’, 1 %\> \<%= radio\_button\_tag ‘exp’, 2 %\> \<%= link\_to :action=\>“do” %\> can i pass the radio …

---

## [\[ANN\] Lone Star Ruby Conference 2009 - Early Registration Ending Soon](https://www.ruby-forum.com/t/ann-lone-star-ruby-conference-2009-early-registration-ending-soon/196985)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [July 26, 2009, 10:51pm UTC](https://www.ruby-forum.com/t/ann-lone-star-ruby-conference-2009-early-registration-ending-soon/196985 "2009-07-26T22:51:19Z")

</div>

Greetings from Austin - Home of the Lone Star Ruby Conference. While you’re enjoying your summer, I hope you haven’t forgot to register for the Lone Star Ruby Conference. This year will be bigger and better than ever.…

---

## [Rails 2.3.3 script/server problem](https://www.ruby-forum.com/t/rails-2-3-3-script-server-problem/172694)

<div class="topic-metadata">

**Author:** [@walt](https://www.ruby-forum.com/u/walt)\
**Replies:** 2\
**Last updated:** [July 26, 2009, 9:14pm UTC](https://www.ruby-forum.com/t/rails-2-3-3-script-server-problem/172694 "2009-07-26T21:14:10Z")

</div>

Hi Guys I installed ruby 2.3.3 a few days ago & I’m struggling to start the servers. I’m using windows XP professional. If I run run script/server, I get the following error: =\> Booting WEBrick =\> Rails 2.3.3 applic…

---

## [Multiple collection selects of same data types in view?](https://www.ruby-forum.com/t/multiple-collection-selects-of-same-data-types-in-view/172715)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 3\
**Last updated:** [July 26, 2009, 7:30pm UTC](https://www.ruby-forum.com/t/multiple-collection-selects-of-same-data-types-in-view/172715 "2009-07-26T19:30:51Z")

</div>

Summary of what I’d like to accomplish: I’m performing a side-by-side comparison of two table objects and their data housed in multiple tables. The model associations are as sumarized: Team (has\_many (of all other d…

---

## [Render html to pic](https://www.ruby-forum.com/t/render-html-to-pic/172713)

<div class="topic-metadata">

**Author:** [@blueomega](https://www.ruby-forum.com/u/blueomega)\
**Replies:** 2\
**Last updated:** [July 26, 2009, 7:25pm UTC](https://www.ruby-forum.com/t/render-html-to-pic/172713 "2009-07-26T19:25:18Z")

</div>

So a need to do a complete print to an image of a website, server side, and doesn’t really matters the price (ok it matters, if its not to high :P). Runs a nix machine So i found a a couple of options: Convert HTML T…

---

## [Google Calendar](https://www.ruby-forum.com/t/google-calendar/172710)

<div class="topic-metadata">

**Author:** [@Abhishek\_shukla](https://www.ruby-forum.com/u/Abhishek_shukla)\
**Replies:** 1\
**Last updated:** [July 26, 2009, 7:24pm UTC](https://www.ruby-forum.com/t/google-calendar/172710 "2009-07-26T19:24:07Z")

</div>

Hello Friends, I am looking out for the same functionality like Google calendar like by selecting the start date and end date by dragging a mouse. Can anyone help me out with the example or sample code. Regards Abh…

---

## [Problem understanding scaffolds](https://www.ruby-forum.com/t/problem-understanding-scaffolds/172691)

<div class="topic-metadata">

**Author:** [@iggybaseball](https://www.ruby-forum.com/u/iggybaseball)\
**Replies:** 5\
**Last updated:** [July 26, 2009, 6:43pm UTC](https://www.ruby-forum.com/t/problem-understanding-scaffolds/172691 "2009-07-26T18:43:44Z")

</div>

Hey everyone, I am new to ROR. I have been reading “Begininng Ruby on Rails” by Steven Holznewr and “Ruby on Rails for Dummies” by Barry B… I have been going through this a lot slower than I would like, because many o…

---

## [Simple Captcha - Update attributes?](https://www.ruby-forum.com/t/simple-captcha-update-attributes/172704)

<div class="topic-metadata">

**Author:** [@railslist](https://www.ruby-forum.com/u/railslist)\
**Replies:** 1\
**Last updated:** [July 26, 2009, 5:05pm UTC](https://www.ruby-forum.com/t/simple-captcha-update-attributes/172704 "2009-07-26T17:05:24Z")

</div>

I am using the great simple captcha plugin for saving records like this if @xxx.save\_with\_captcha do something else do something end How do I use it when updating records? if @xxx.update\_attributes(params\[:blah\]) …

---

## [How knows my paths in link\_to? If I do not defined](https://www.ruby-forum.com/t/how-knows-my-paths-in-link-to-if-i-do-not-defined/172702)

<div class="topic-metadata">

**Author:** [@ruhtra01](https://www.ruby-forum.com/u/ruhtra01)\
**Replies:** 2\
**Last updated:** [July 26, 2009, 5:16am UTC](https://www.ruby-forum.com/t/how-knows-my-paths-in-link-to-if-i-do-not-defined/172702 "2009-07-26T05:16:35Z")

</div>

Hello, ItÂ´s my first post here. :slight\_smile: IÂ´l following the guide of Ruby, but I need to know how the Ruby knows my path to other pages if I did not define anything, like this: app/views/posts/index.html.erb: …

---

## [3 column :hbtm?](https://www.ruby-forum.com/t/3-column-hbtm/172693)

<div class="topic-metadata">

**Author:** [@glex](https://www.ruby-forum.com/u/glex)\
**Replies:** 5\
**Last updated:** [July 26, 2009, 4:15am UTC](https://www.ruby-forum.com/t/3-column-hbtm/172693 "2009-07-26T04:15:49Z")

</div>

A Song :has and belongs to many Playlists. I want to store additional information about a song in a given playlist, i.e. the number of request of this song in a playlist. Here is an example Playlist a: |Song A|5 req…

---

## [Consensus on SSL - what's everyone using?](https://www.ruby-forum.com/t/consensus-on-ssl-whats-everyone-using/172688)

<div class="topic-metadata">

**Author:** [@northband](https://www.ruby-forum.com/u/northband)\
**Replies:** 2\
**Last updated:** [July 26, 2009, 1:33am UTC](https://www.ruby-forum.com/t/consensus-on-ssl-whats-everyone-using/172688 "2009-07-26T01:33:42Z")

</div>

Hi - I need to use SSL in certain areas of my app. I have read about ssl\_required via the ‘book’ and online: It looks like what I need and want. However, I read that it may have issues with Nginx and that it may …

---

## [Routing issue](https://www.ruby-forum.com/t/routing-issue/172697)

<div class="topic-metadata">

**Author:** [@roa](https://www.ruby-forum.com/u/roa)\
**Replies:** 0\
**Last updated:** [July 25, 2009, 11:49pm UTC](https://www.ruby-forum.com/t/routing-issue/172697 "2009-07-25T23:49:32Z")

</div>

Hi all I’m having finding it difficult finding the proper way to route some pages in my application. The application follows the rest architecture and is closed for non authorized persons. But their are some publicly…

---

## [Model with two Value Object associations](https://www.ruby-forum.com/t/model-with-two-value-object-associations/172675)

<div class="topic-metadata">

**Author:** [@Emma](https://www.ruby-forum.com/u/Emma)\
**Replies:** 9\
**Last updated:** [July 25, 2009, 11:40pm UTC](https://www.ruby-forum.com/t/model-with-two-value-object-associations/172675 "2009-07-25T23:40:11Z")

</div>

I’m having trouble with this model: class Person \< AR::B belongs\_to :shipping\_address, :class\_name =\> ‘Address’ belongs\_to :billing\_address, :class\_name =\> ‘Address’ end class Address \< AR::B end The problem is th…

---

## [Using multiple SMTP servers with Rails - avoiding blacklisting](https://www.ruby-forum.com/t/using-multiple-smtp-servers-with-rails-avoiding-blacklisting/172188)

<div class="topic-metadata">

**Author:** [@trevor](https://www.ruby-forum.com/u/trevor)\
**Replies:** 2\
**Last updated:** [July 25, 2009, 11:30pm UTC](https://www.ruby-forum.com/t/using-multiple-smtp-servers-with-rails-avoiding-blacklisting/172188 "2009-07-25T23:30:14Z")

</div>

Our application sends out a few hundred non-spam, opt-in only emails per day. Essentially they are order receipts, account activation notices, and other instructions that the customers expect to receive when they use …

---

## [Got the books. Built some examples. Now, how to get "certified"?](https://www.ruby-forum.com/t/got-the-books-built-some-examples-now-how-to-get-certified/172662)

<div class="topic-metadata">

**Author:** [@parki](https://www.ruby-forum.com/u/parki)\
**Replies:** 3\
**Last updated:** [July 25, 2009, 9:22pm UTC](https://www.ruby-forum.com/t/got-the-books-built-some-examples-now-how-to-get-certified/172662 "2009-07-25T21:22:37Z")

</div>

I’ve been playing with RoR for about 2 years. Bought all the books, built prototypes for at least a dozen apps, follow the online discussions, and have a good basic understanding of things. The challenge is that SW de…

---

## [Haml rendering problem](https://www.ruby-forum.com/t/haml-rendering-problem/172686)

<div class="topic-metadata">

**Author:** [@vikas](https://www.ruby-forum.com/u/vikas)\
**Replies:** 1\
**Last updated:** [July 25, 2009, 7:04pm UTC](https://www.ruby-forum.com/t/haml-rendering-problem/172686 "2009-07-25T19:04:29Z")

</div>

Hi all, I have problem about HAML rendring I have following small test for haml rendering a = Coupon.first =\> #\<Coupon id: 16, template\_id: 1, business\_id: 2, tag\_line: “Tagline”, expirat ion\_date: “2009-07-21”, …

---

## [Client-side javascript question](https://www.ruby-forum.com/t/client-side-javascript-question/172660)

<div class="topic-metadata">

**Author:** [@muckypup](https://www.ruby-forum.com/u/muckypup)\
**Replies:** 3\
**Last updated:** [July 25, 2009, 7:03pm UTC](https://www.ruby-forum.com/t/client-side-javascript-question/172660 "2009-07-25T19:03:54Z")

</div>

Hey I’m new to Rails, and I was wondering if there was a way to include custom javascript libraries in the HTML views? I’ve been searching for a while and can’t seem to find any way to do this. For example, I want to…

---

## [Creating a View(database) with Migration](https://www.ruby-forum.com/t/creating-a-view-database-with-migration/172664)

<div class="topic-metadata">

**Author:** [@khagimoto](https://www.ruby-forum.com/u/khagimoto)\
**Replies:** 5\
**Last updated:** [July 25, 2009, 3:39pm UTC](https://www.ruby-forum.com/t/creating-a-view-database-with-migration/172664 "2009-07-25T15:39:37Z")

</div>

Hi, Is there a way to create a view using ruby migration? I could run a quick sql script to create a view, but I wanted to do this with migration to make it easier during deployment. Thanks, Kumi

---

## [Rails Authorization and Security question](https://www.ruby-forum.com/t/rails-authorization-and-security-question/172673)

<div class="topic-metadata">

**Author:** [@rilindo](https://www.ruby-forum.com/u/rilindo)\
**Replies:** 3\
**Last updated:** [July 25, 2009, 7:50am UTC](https://www.ruby-forum.com/t/rails-authorization-and-security-question/172673 "2009-07-25T07:50:16Z")

</div>

Working through the Users and Authentication of Learning Rails book (great book, code needs to be proof-read in a few cases, though), I came across this: There’s still one leftover that may be worth addressing, depend…

---

## [How to show Category with n childrens in a form](https://www.ruby-forum.com/t/how-to-show-category-with-n-childrens-in-a-form/172674)

<div class="topic-metadata">

**Author:** [@salil](https://www.ruby-forum.com/u/salil)\
**Replies:** 1\
**Last updated:** [July 25, 2009, 7:43am UTC](https://www.ruby-forum.com/t/how-to-show-category-with-n-childrens-in-a-form/172674 "2009-07-25T07:43:14Z")

</div>

Hi All, I want to show the categories in a form which has n no. of childrens with n no. of chain. for ex. category1 —category2 —category3 —category4 —category5 —category6 —category7 —category8 … and so on… wh…

---

## [Problem with named\_scope](https://www.ruby-forum.com/t/problem-with-named-scope/172572)

<div class="topic-metadata">

**Author:** [@yankees26](https://www.ruby-forum.com/u/yankees26)\
**Replies:** 11\
**Last updated:** [July 25, 2009, 7:09am UTC](https://www.ruby-forum.com/t/problem-with-named-scope/172572 "2009-07-25T07:09:52Z")

</div>

Here are my scopes: default\_scope :order =\> ‘posted\_on DESC’, :conditions =\> { :status =\> ‘visible’ } named\_scope :positive, :conditions =\> { :rating =\> ‘positive’, :status =\> ‘visible’ } named\_scope :neutral, :cond…

---

## [Number of scaffolds (Controllers)](https://www.ruby-forum.com/t/number-of-scaffolds-controllers/172639)

<div class="topic-metadata">

**Author:** [@melomane](https://www.ruby-forum.com/u/melomane)\
**Replies:** 2\
**Last updated:** [July 25, 2009, 6:36am UTC](https://www.ruby-forum.com/t/number-of-scaffolds-controllers/172639 "2009-07-25T06:36:35Z")

</div>

Hi Is it a problem in rails application development to have many scaffolds ( Specially because of its controllers) ? I know the word “many” depends on the project, but it can be meaningful in general speaking. This p…

---

## [Offeride :limit named\_scope default\_scope](https://www.ruby-forum.com/t/offeride-limit-named-scope-default-scope/171931)

<div class="topic-metadata">

**Author:** [@benol](https://www.ruby-forum.com/u/benol)\
**Replies:** 2\
**Last updated:** [July 25, 2009, 5:13am UTC](https://www.ruby-forum.com/t/offeride-limit-named-scope-default-scope/171931 "2009-07-25T05:13:24Z")

</div>

Hi, Rails 2.3.2 class TestD \< ActiveRecord::Base default\_scope :limit =\> 12 named\_scope :limit, lambda { |num| { :limit =\> num} } end ruby script/console TestD.all TestD Load (0.7ms) SELECT \* FROM “test\_ds” L…

---

## [Modifying ActiveResource classes](https://www.ruby-forum.com/t/modifying-activeresource-classes/172635)

<div class="topic-metadata">

**Author:** [@bencahen](https://www.ruby-forum.com/u/bencahen)\
**Replies:** 1\
**Last updated:** [July 25, 2009, 12:49am UTC](https://www.ruby-forum.com/t/modifying-activeresource-classes/172635 "2009-07-25T00:49:31Z")

</div>

I’ve been struggling with an issue with ActiveResource for a bit now: when a hostname resolves for an ActiveResource request, but there’s no server on the other end to return information, ActiveResource’s timeout valu…

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

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