# Rails

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

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

---

## [Render partial as full template](https://www.ruby-forum.com/t/render-partial-as-full-template/133811)

<div class="topic-metadata">

**Author:** [@johnlester](https://www.ruby-forum.com/u/johnlester)\
**Replies:** 4\
**Last updated:** [April 4, 2008, 8:23am UTC](https://www.ruby-forum.com/t/render-partial-as-full-template/133811 "2008-04-04T08:23:02Z")

</div>

I would like to render a partial template as a full template. The reason is that the partial contains content normally displayed via xhr and I want to display it also if my app degrades. The way I do this now is to ha…

---

## [Wowzza just launched...breaking news 20,000 members already](https://www.ruby-forum.com/t/wowzza-just-launched-breaking-news-20-000-members-already/133717)

<div class="topic-metadata">

**Author:** [@nc3bj6yp](https://www.ruby-forum.com/u/nc3bj6yp)\
**Replies:** 3\
**Last updated:** [April 4, 2008, 8:14am UTC](https://www.ruby-forum.com/t/wowzza-just-launched-breaking-news-20-000-members-already/133717 "2008-04-04T08:14:12Z")

</div>

hey this social networking site is going crazy, it just launched yesterday and it has over 20,000 members within their first 24 hours! This thing is crazy! It’s paying members to use their services! Wow! It’s like net…

---

## [Urgent help -----onchange is not working](https://www.ruby-forum.com/t/urgent-help-onchange-is-not-working/133787)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 3\
**Last updated:** [April 4, 2008, 7:54am UTC](https://www.ruby-forum.com/t/urgent-help-onchange-is-not-working/133787 "2008-04-04T07:54:09Z")

</div>

i am using firefox 2.0.0.6 the above html will open a a text box and button step 1: enter into box ‘aaa’ & press button ‘Click Me’ step 2: enter into box ‘aab’ & press button ‘Click Me’ step 3: now if you enter ‘a’ i…

---

## [Dynamic changing forms](https://www.ruby-forum.com/t/dynamic-changing-forms/133655)

<div class="topic-metadata">

**Author:** [@chiemik](https://www.ruby-forum.com/u/chiemik)\
**Replies:** 2\
**Last updated:** [April 4, 2008, 7:36am UTC](https://www.ruby-forum.com/t/dynamic-changing-forms/133655 "2008-04-04T07:36:31Z")

</div>

I would like to create in rails a form which is looking like text but on click its changing to standard fields form. sth like at google calendar during editing event. how to do this any hints ?

---

## [Best practices?](https://www.ruby-forum.com/t/best-practices/133739)

<div class="topic-metadata">

**Author:** [@Dion\_H](https://www.ruby-forum.com/u/Dion_H)\
**Replies:** 3\
**Last updated:** [April 4, 2008, 5:45am UTC](https://www.ruby-forum.com/t/best-practices/133739 "2008-04-04T05:45:03Z")

</div>

is there a good rails site/blog that covers the best practices for how to do rails stuff

---

## [SQL Server on Linux (Rails 2.0.2)](https://www.ruby-forum.com/t/sql-server-on-linux-rails-2-0-2/133834)

<div class="topic-metadata">

**Author:** [@sweet61](https://www.ruby-forum.com/u/sweet61)\
**Replies:** 0\
**Last updated:** [April 4, 2008, 5:15am UTC](https://www.ruby-forum.com/t/sql-server-on-linux-rails-2-0-2/133834 "2008-04-04T05:15:08Z")

</div>

I am experiencing inconsistencies within ActiveRecord when retrieving from a SQL Server table using the FreeTDS driver. The following dump from an interactive console session shows the issue. $ script/console Loadin…

---

## [Help running new application, Webrick not starting properly](https://www.ruby-forum.com/t/help-running-new-application-webrick-not-starting-properly/133612)

<div class="topic-metadata">

**Author:** [@shadowdev](https://www.ruby-forum.com/u/shadowdev)\
**Replies:** 5\
**Last updated:** [April 4, 2008, 4:39am UTC](https://www.ruby-forum.com/t/help-running-new-application-webrick-not-starting-properly/133612 "2008-04-04T04:39:58Z")

</div>

Hello All, I’ve installed ruby 1.8.6, Gems 1.1.0, Rails 2.0.2. I’ve installed sqlite3 dll, reg, & exe in the ruby/bin directory and all “seems” installed properly. So the problem is this; I run ‘rails appname’ and it …

---

## [\[ANN\] Branchable migrations -- A plugin to let you organize your migrations](https://www.ruby-forum.com/t/ann-branchable-migrations-a-plugin-to-let-you-organize-your-migrations/133740)

<div class="topic-metadata">

**Author:** [@Jeremy\_McAnally](https://www.ruby-forum.com/u/Jeremy_McAnally)\
**Replies:** 3\
**Last updated:** [April 4, 2008, 3:25am UTC](https://www.ruby-forum.com/t/ann-branchable-migrations-a-plugin-to-let-you-organize-your-migrations/133740 "2008-04-04T03:25:56Z")

</div>

I just put a new plugin named branchable\_migrations on Github. Branchable migrations lets you separate your migrations into “branches” (i.e., a director under db/migrate) that each have their own version. Using the f…

---

## [Win32/service error](https://www.ruby-forum.com/t/win32-service-error/133829)

<div class="topic-metadata">

**Author:** [@brianspaid](https://www.ruby-forum.com/u/brianspaid)\
**Replies:** 0\
**Last updated:** [April 4, 2008, 3:11am UTC](https://www.ruby-forum.com/t/win32-service-error/133829 "2008-04-04T03:11:18Z")

</div>

Hello, I’m trying to add a application as a service in Windows XP Pro I’m using the following code grabbed from KirbyBase: svc = Service.new(“localhost”) svc.create\_service do |s| s.service\_name = “TBWin32ReportingA…

---

## [How do I do this for models?](https://www.ruby-forum.com/t/how-do-i-do-this-for-models/133827)

<div class="topic-metadata">

**Author:** [@glasswing28](https://www.ruby-forum.com/u/glasswing28)\
**Replies:** 1\
**Last updated:** [April 4, 2008, 1:50am UTC](https://www.ruby-forum.com/t/how-do-i-do-this-for-models/133827 "2008-04-04T01:50:24Z")

</div>

I want to create underscored method alias names for a legacy table … Whats the best way to do this … ? column\_names.each do |name| define\_method(name.underscore) {self.send(name)} define\_method(name.underscore+’=’) {…

---

## [Email Providers](https://www.ruby-forum.com/t/email-providers/133823)

<div class="topic-metadata">

**Author:** [@jmckible](https://www.ruby-forum.com/u/jmckible)\
**Replies:** 3\
**Last updated:** [April 4, 2008, 1:35am UTC](https://www.ruby-forum.com/t/email-providers/133823 "2008-04-04T01:35:08Z")

</div>

I’m curious if anyone has any recommendation for email service providers. I’m currently using AuthSMTP and it’s working out okay. I’m looking for a little more flexibility in which headers are available to set, and …

---

## [Selected Value Not Persisting](https://www.ruby-forum.com/t/selected-value-not-persisting/133478)

<div class="topic-metadata">

**Author:** [@sjglazer](https://www.ruby-forum.com/u/sjglazer)\
**Replies:** 5\
**Last updated:** [April 4, 2008, 1:19am UTC](https://www.ruby-forum.com/t/selected-value-not-persisting/133478 "2008-04-04T01:19:20Z")

</div>

Hello again, Ok this is really starting to drive my nuts now so I was hoping someone could give me a hand. I have a restaurant search form that allows people to search out restaurants. I have a drop down that allows p…

---

## [Naive question](https://www.ruby-forum.com/t/naive-question/133797)

<div class="topic-metadata">

**Author:** [@Stever](https://www.ruby-forum.com/u/Stever)\
**Replies:** 3\
**Last updated:** [April 4, 2008, 1:09am UTC](https://www.ruby-forum.com/t/naive-question/133797 "2008-04-04T01:09:58Z")

</div>

Got a naive question, and I don’t know what keywords to search for on google. I have a webform that needs to query a database in realtime with javascript. So if I press a button, it will query a database and return t…

---

## [404 only when link\_to\_remote but not when using link\_to](https://www.ruby-forum.com/t/404-only-when-link-to-remote-but-not-when-using-link-to/133720)

<div class="topic-metadata">

**Author:** [@chengas123](https://www.ruby-forum.com/u/chengas123)\
**Replies:** 3\
**Last updated:** [April 4, 2008, 1:07am UTC](https://www.ruby-forum.com/t/404-only-when-link-to-remote-but-not-when-using-link-to/133720 "2008-04-04T01:07:37Z")

</div>

I started using Ruby on Rails today and love it. The one thing I haven’t been able to answer by myself is why the first link below works and the second doesn’t: \<%= link\_to “Test Regular”, { :action =\> “show”, :id =\> …

---

## [Newbie struggling with associations and url passing](https://www.ruby-forum.com/t/newbie-struggling-with-associations-and-url-passing/133803)

<div class="topic-metadata">

**Author:** [@bskaggs](https://www.ruby-forum.com/u/bskaggs)\
**Replies:** 2\
**Last updated:** [April 4, 2008, 1:02am UTC](https://www.ruby-forum.com/t/newbie-struggling-with-associations-and-url-passing/133803 "2008-04-04T01:02:55Z")

</div>

hi i am stuck! i have a products controller, model and list view. model states: has\_many :versions db table: id, title i have a versions controller, model and list view. model states: belongs\_to :products db table…

---

## [Spree - Full commerce solution for Ruby on Rails](https://www.ruby-forum.com/t/spree-full-commerce-solution-for-ruby-on-rails/133824)

<div class="topic-metadata">

**Author:** [@schof](https://www.ruby-forum.com/u/schof)\
**Replies:** 0\
**Last updated:** [April 4, 2008, 12:59am UTC](https://www.ruby-forum.com/t/spree-full-commerce-solution-for-ruby-on-rails/133824 "2008-04-04T00:59:59Z")

</div>

Just wanted to quickly plug our Spree project (http://spreehq.org) Sorry no porn or get rich schemes on this site. Just a comprehensive commerce platform built with Ruby on Rails. :wink: We’re also looking for volun…

---

## [Problem with UUID generated in partial not being unique](https://www.ruby-forum.com/t/problem-with-uuid-generated-in-partial-not-being-unique/133821)

<div class="topic-metadata">

**Author:** [@Philip\_N](https://www.ruby-forum.com/u/Philip_N)\
**Replies:** 1\
**Last updated:** [April 4, 2008, 12:52am UTC](https://www.ruby-forum.com/t/problem-with-uuid-generated-in-partial-not-being-unique/133821 "2008-04-04T00:52:21Z")

</div>

Folks, I’m using the “uuidtools” package to generate (hopefully) unique values for IDs within a partial (for products being added to an order form, where nothing is saved to the DB until the end). Unfortunately when…

---

## [Draggable\_element Messing up CSS for IE7](https://www.ruby-forum.com/t/draggable-element-messing-up-css-for-ie7/133820)

<div class="topic-metadata">

**Author:** [@gdevore](https://www.ruby-forum.com/u/gdevore)\
**Replies:** 0\
**Last updated:** [April 3, 2008, 11:44pm UTC](https://www.ruby-forum.com/t/draggable-element-messing-up-css-for-ie7/133820 "2008-04-03T23:44:12Z")

</div>

I am having trouble with draggable\_element and come IE7 css. I have a list where I want the items in the list to be draggable. I need the list to have a fixed height so I would like a scrollbar. I use overflow:auto…

---

## [Invoking Javascript function in views](https://www.ruby-forum.com/t/invoking-javascript-function-in-views/133758)

<div class="topic-metadata">

**Author:** [@sgudibanda](https://www.ruby-forum.com/u/sgudibanda)\
**Replies:** 4\
**Last updated:** [April 3, 2008, 10:18pm UTC](https://www.ruby-forum.com/t/invoking-javascript-function-in-views/133758 "2008-04-03T22:18:28Z")

</div>

Hi, I need to pass in an array to JS function, which initializes its local variables. I have always called JS functions on events like onclick and such. How do i invoke JS function directly without such events? Rega…

---

## [Form.select undefined method](https://www.ruby-forum.com/t/form-select-undefined-method/133774)

<div class="topic-metadata">

**Author:** [@mckracken](https://www.ruby-forum.com/u/mckracken)\
**Replies:** 4\
**Last updated:** [April 3, 2008, 9:06pm UTC](https://www.ruby-forum.com/t/form-select-undefined-method/133774 "2008-04-03T21:06:49Z")

</div>

Hello to all! I’m new on this forum, and i’m getting started in Ruby on Rails 2.0. I’m following the tutorial on AWDWR, and i found this error i can’t solve: I’ve this code for a type=“select” field in a form wrapped …

---

## [How did you integrate RJB and 3rd party java files into your rails app?](https://www.ruby-forum.com/t/how-did-you-integrate-rjb-and-3rd-party-java-files-into-your-rails-app/133805)

<div class="topic-metadata">

**Author:** [@scootiepuff](https://www.ruby-forum.com/u/scootiepuff)\
**Replies:** 0\
**Last updated:** [April 3, 2008, 8:58pm UTC](https://www.ruby-forum.com/t/how-did-you-integrate-rjb-and-3rd-party-java-files-into-your-rails-app/133805 "2008-04-03T20:58:00Z")

</div>

hello, if you have used rjb successfully with your rails app, would you be able to kindly post: -a sample of how you might have included (your choice of syntax for) the rjb loading of multiple .jar files in your rail…

---

## [Google substruct + copying plugin\_assets from vendor to public](https://www.ruby-forum.com/t/google-substruct-copying-plugin-assets-from-vendor-to-public/133804)

<div class="topic-metadata">

**Author:** [@elel](https://www.ruby-forum.com/u/elel)\
**Replies:** 0\
**Last updated:** [April 3, 2008, 8:23pm UTC](https://www.ruby-forum.com/t/google-substruct-copying-plugin-assets-from-vendor-to-public/133804 "2008-04-03T20:23:34Z")

</div>

Hi, I am attempting to install Google substruct - a ruby on rails application. I get to the last step in install - ruby script/server The launch gets hung up here: Attempting to copy plugin assets from ‘/home/lynn/s…

---

## [Looking for something similar to in\_groups\_of but not really](https://www.ruby-forum.com/t/looking-for-something-similar-to-in-groups-of-but-not-really/133700)

<div class="topic-metadata">

**Author:** [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Replies:** 7\
**Last updated:** [April 3, 2008, 6:39pm UTC](https://www.ruby-forum.com/t/looking-for-something-similar-to-in-groups-of-but-not-really/133700 "2008-04-03T18:39:29Z")

</div>

i’m trying to figure out an elegant way of taking an array or enumerable object and dividing it as even as possible into sub arrays. in\_groups\_of works fine if i’m trying to define the number of objects inside each su…

---

## [Validation problem! please help!](https://www.ruby-forum.com/t/validation-problem-please-help/133796)

<div class="topic-metadata">

**Author:** [@qwerty73](https://www.ruby-forum.com/u/qwerty73)\
**Replies:** 3\
**Last updated:** [April 3, 2008, 6:38pm UTC](https://www.ruby-forum.com/t/validation-problem-please-help/133796 "2008-04-03T18:38:18Z")

</div>

Hi to all, i’ve the following validation in my model: class User \< ActiveRecord::Base acts\_as\_mappable :default\_units =\> :kms, :default\_formula =\> :flat, :lat\_column\_name =\> :latitudine, :lng\_column\_name =\> :longit…

---

## [Is there a rails Gimp plugin?](https://www.ruby-forum.com/t/is-there-a-rails-gimp-plugin/133757)

<div class="topic-metadata">

**Author:** [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Replies:** 5\
**Last updated:** [April 3, 2008, 6:11pm UTC](https://www.ruby-forum.com/t/is-there-a-rails-gimp-plugin/133757 "2008-04-03T18:11:08Z")

</div>

Hi, In my app pictures can be uploaded. I want to do two things to the pictures: 1- Add a watermark 2- Add an effect to the picture (colorize) I can do that manually with Gimp and then upload. But how could I make …

---

## [Rails plugin for inviting people in your GMail, Yahoo, ... address book?](https://www.ruby-forum.com/t/rails-plugin-for-inviting-people-in-your-gmail-yahoo-address-book/133730)

<div class="topic-metadata">

**Author:** [@Henry\_W](https://www.ruby-forum.com/u/Henry_W)\
**Replies:** 3\
**Last updated:** [April 3, 2008, 6:04pm UTC](https://www.ruby-forum.com/t/rails-plugin-for-inviting-people-in-your-gmail-yahoo-address-book/133730 "2008-04-03T18:04:04Z")

</div>

Hi, Is there a plugin available that offers integration with your GMail, Yahoo, etc. address books, so a user can easily select e-mail addresses? I’ve seen similar functionality on Facebook and Twitter and hoping so…

---

## [Hmmmm..sounds so simple but](https://www.ruby-forum.com/t/hmmmm-sounds-so-simple-but/133789)

<div class="topic-metadata">

**Author:** [@teenage](https://www.ruby-forum.com/u/teenage)\
**Replies:** 3\
**Last updated:** [April 3, 2008, 5:19pm UTC](https://www.ruby-forum.com/t/hmmmm-sounds-so-simple-but/133789 "2008-04-03T17:19:57Z")

</div>

Hey, I’m having a little problem… I’m trying to display a list of say “entries” Each entry has\_many images but in the main listing I want to only display 1 image against each post… how do I do that!!! Sounds so simpl…

---

## [Mapping a model to a table to some records of the table](https://www.ruby-forum.com/t/mapping-a-model-to-a-table-to-some-records-of-the-table/133761)

<div class="topic-metadata">

**Author:** [@pankaj](https://www.ruby-forum.com/u/pankaj)\
**Replies:** 2\
**Last updated:** [April 3, 2008, 4:40pm UTC](https://www.ruby-forum.com/t/mapping-a-model-to-a-table-to-some-records-of-the-table/133761 "2008-04-03T16:40:59Z")

</div>

I have a users table and a Users model there Employee model which derives from the User model. Employee model should only work on the records in user table which have role\_id =1. What is the solution. Regards, Pank…

---

## [Change the value stored in inheritance\_column](https://www.ruby-forum.com/t/change-the-value-stored-in-inheritance-column/133775)

<div class="topic-metadata">

**Author:** [@chirag](https://www.ruby-forum.com/u/chirag)\
**Replies:** 2\
**Last updated:** [April 3, 2008, 4:03pm UTC](https://www.ruby-forum.com/t/change-the-value-stored-in-inheritance-column/133775 "2008-04-03T16:03:55Z")

</div>

I have been struggling for quite sometime with this. Is there any way to configure the Model to store user defined value in the inheritance\_column instead of the default value (which is class\_name) The problem I have…

---

## [Link via image map](https://www.ruby-forum.com/t/link-via-image-map/133543)

<div class="topic-metadata">

**Author:** [@reggieb](https://www.ruby-forum.com/u/reggieb)\
**Replies:** 1\
**Last updated:** [April 3, 2008, 2:47pm UTC](https://www.ruby-forum.com/t/link-via-image-map/133543 "2008-04-03T14:47:30Z")

</div>

I’m looking to create a small icon to use in table headings, that users can use to sort by that table heading. Click on the top half and sort ascending, and click on the bottom half to sort desc. Is there a way to nea…

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

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