# Rails

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

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

---

## [Locales](https://www.ruby-forum.com/t/locales/156365)

<div class="topic-metadata">

**Author:** [@giga](https://www.ruby-forum.com/u/giga)\
**Replies:** 1\
**Last updated:** [December 25, 2008, 9:05pm UTC](https://www.ruby-forum.com/t/locales/156365 "2008-12-25T21:05:33Z")

</div>

Is there any gem to install those locales: http://github.com/svenfuchs/rails-i18n/tree/master/rails/locale ? If not, where to I must to copy them?

---

## [I'm interested in writing test for the windows copy of assets bug](https://www.ruby-forum.com/t/im-interested-in-writing-test-for-the-windows-copy-of-assets-bug/143528)

<div class="topic-metadata">

**Author:** [@Miles\_G](https://www.ruby-forum.com/u/Miles_G)\
**Replies:** 3\
**Last updated:** [December 25, 2008, 8:54pm UTC](https://www.ruby-forum.com/t/im-interested-in-writing-test-for-the-windows-copy-of-assets-bug/143528 "2008-12-25T20:54:31Z")

</div>

Hi, I was interested in writing a test for this bug (the fix is trivial) but didn’t want to bother if it’s already been done by somebody or if somebody is in the middle of doing it.

---

## [A question about select\_tag](https://www.ruby-forum.com/t/a-question-about-select-tag/156350)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 2\
**Last updated:** [December 25, 2008, 7:34pm UTC](https://www.ruby-forum.com/t/a-question-about-select-tag/156350 "2008-12-25T19:34:12Z")

</div>

I use select\_tag to create a dropdown selection box: select\_tag “people”, “DavidMike” but I want the option value is from a variable in a controller. How can I do this?

---

## ["Data RecordType could not be instantiated!: undefined"](https://www.ruby-forum.com/t/data-recordtype-could-not-be-instantiated-undefined/156358)

<div class="topic-metadata">

**Author:** [@geneeyuss](https://www.ruby-forum.com/u/geneeyuss)\
**Replies:** 0\
**Last updated:** [December 25, 2008, 5:10pm UTC](https://www.ruby-forum.com/t/data-recordtype-could-not-be-instantiated-undefined/156358 "2008-12-25T17:10:47Z")

</div>

I am trying to persist the data from sproutcore application to MYSQL using rails. I see that the post is happening on the rails with 200 as the response code but, i get an error “Data RecordType could not be instantia…

---

## [Switching to active\_record\_store session management errors out](https://www.ruby-forum.com/t/switching-to-active-record-store-session-management-errors-out/156346)

<div class="topic-metadata">

**Author:** [@pepe](https://www.ruby-forum.com/u/pepe)\
**Replies:** 2\
**Last updated:** [December 25, 2008, 4:18pm UTC](https://www.ruby-forum.com/t/switching-to-active-record-store-session-management-errors-out/156346 "2008-12-25T16:18:04Z")

</div>

Hello, Running Ruby 1.8.6 and Rails 2.2.2 against an Oracle XE database (sigh). I just upgraded Rails from 1.2.3 to 2.2.2, which made my cookie based system for storing session information to error out due to the 4Kb …

---

## [Problem with find(:all) with conditions](https://www.ruby-forum.com/t/problem-with-find-all-with-conditions/156359)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [December 25, 2008, 3:55pm UTC](https://www.ruby-forum.com/t/problem-with-find-all-with-conditions/156359 "2008-12-25T15:55:50Z")

</div>

Hi all… Merry Christmas having a strange prob. @clas=ClassClassteacher.find(:all,:conditions=\>"user\_id='# {session\[:user\_id\]}’") if @clas.nil? flash\[:notice\] = 'You are not enrolled in any class' render …

---

## [How do I bind a form to filter a table?](https://www.ruby-forum.com/t/how-do-i-bind-a-form-to-filter-a-table/156360)

<div class="topic-metadata">

**Author:** [@sa125](https://www.ruby-forum.com/u/sa125)\
**Replies:** 0\
**Last updated:** [December 25, 2008, 3:19pm UTC](https://www.ruby-forum.com/t/how-do-i-bind-a-form-to-filter-a-table/156360 "2008-12-25T15:19:46Z")

</div>

Hi - I’m trying to enable dynamic filtering of a table in my app, using selection lists and a search box. Here’s the basic layout of the table: ------------------- in app/views/products/index.html.erb \<%= select :…

---

## [How to upload multiple files using paperclip](https://www.ruby-forum.com/t/how-to-upload-multiple-files-using-paperclip/156357)

<div class="topic-metadata">

**Author:** [@railslist](https://www.ruby-forum.com/u/railslist)\
**Replies:** 0\
**Last updated:** [December 25, 2008, 3:00pm UTC](https://www.ruby-forum.com/t/how-to-upload-multiple-files-using-paperclip/156357 "2008-12-25T15:00:19Z")

</div>

Has any one used paperclip to upload multiple files?. How do we do that?. I am totally clueless. any help is highly appreciated. thanks in advance.

---

## [Creating instance of an object without knowing it's name](https://www.ruby-forum.com/t/creating-instance-of-an-object-without-knowing-its-name/156355)

<div class="topic-metadata">

**Author:** [@astropanic](https://www.ruby-forum.com/u/astropanic)\
**Replies:** 1\
**Last updated:** [December 25, 2008, 2:06pm UTC](https://www.ruby-forum.com/t/creating-instance-of-an-object-without-knowing-its-name/156355 "2008-12-25T14:06:21Z")

</div>

Hi, I have a variable @foo that holds the name of an object. How I can create a instance of that object. An example: I need to create a instance of an “Elephant” object @object\_name = “Elephant” @object\_name.new # …

---

## [Rails project](https://www.ruby-forum.com/t/rails-project/156351)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [December 25, 2008, 11:45am UTC](https://www.ruby-forum.com/t/rails-project/156351 "2008-12-25T11:45:21Z")

</div>

Any rails - ExtJS project which is running in live?? Thanks, Ramu.

---

## [Link\_to\_unless\_current & I18n.t](https://www.ruby-forum.com/t/link-to-unless-current-i18n-t/156352)

<div class="topic-metadata">

**Author:** [@giga](https://www.ruby-forum.com/u/giga)\
**Replies:** 0\
**Last updated:** [December 25, 2008, 10:51am UTC](https://www.ruby-forum.com/t/link-to-unless-current-i18n-t/156352 "2008-12-25T10:51:55Z")

</div>

How can I use link\_to\_unless\_current with I18n.t localization?

---

## [Routing Subdirectory](https://www.ruby-forum.com/t/routing-subdirectory/130354)

<div class="topic-metadata">

**Author:** [@msojka](https://www.ruby-forum.com/u/msojka)\
**Replies:** 1\
**Last updated:** [December 25, 2008, 7:58am UTC](https://www.ruby-forum.com/t/routing-subdirectory/130354 "2008-12-25T07:58:25Z")

</div>

Hi, first of all: I’m a noob. I use RoR 2.0. Now the question :wink: Let’s say I want to create a frontend and a backend for my website. My URL could be: www.myurl.com Frontend should be available here: www.myurl.co…

---

## [Will\_paginate with group\_by](https://www.ruby-forum.com/t/will-paginate-with-group-by/156337)

<div class="topic-metadata">

**Author:** [@railslist](https://www.ruby-forum.com/u/railslist)\
**Replies:** 1\
**Last updated:** [December 25, 2008, 7:26am UTC](https://www.ruby-forum.com/t/will-paginate-with-group-by/156337 "2008-12-25T07:26:42Z")

</div>

I am trying to use will\_paginate with group\_by but i keep getting “undefined method \`total\_pages’ for”. –Controller– @records = Record.paginate( :conditions =\> \[‘this\_id = ? and that\_id = ?’,session\[:this\_id\],session…

---

## [jQuery with Rails](https://www.ruby-forum.com/t/jquery-with-rails/156298)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 2\
**Last updated:** [December 25, 2008, 7:18am UTC](https://www.ruby-forum.com/t/jquery-with-rails/156298 "2008-12-25T07:18:16Z")

</div>

In a nutshell, my jQuery code in a rails form works in Firefox, but not in Internet Explorer 7. Here is the form code with unnecessary details stripped out: New Discount Order \<%= error\_messages\_for :discount\_order …

---

## [Help me, I want modify hyperlink of will\_paginate](https://www.ruby-forum.com/t/help-me-i-want-modify-hyperlink-of-will-paginate/156348)

<div class="topic-metadata">

**Author:** [@rubygalaxy](https://www.ruby-forum.com/u/rubygalaxy)\
**Replies:** 0\
**Last updated:** [December 25, 2008, 6:59am UTC](https://www.ruby-forum.com/t/help-me-i-want-modify-hyperlink-of-will-paginate/156348 "2008-12-25T06:59:25Z")

</div>

I installed will\_paginate plugins. but, I have a question. for exmaple. if my page is http://localhost:3000/posts will\_paginate made paging code, prev, 1,2, next If I click number two, my page move to http://loc…

---

## [Facebook-style news feed?](https://www.ruby-forum.com/t/facebook-style-news-feed/156327)

<div class="topic-metadata">

**Author:** [@daveamos](https://www.ruby-forum.com/u/daveamos)\
**Replies:** 13\
**Last updated:** [December 25, 2008, 3:10am UTC](https://www.ruby-forum.com/t/facebook-style-news-feed/156327 "2008-12-25T03:10:38Z")

</div>

I’ve tried googling for more information on this, but I’ve come up empty. Has anyone implemented a facebook-style news feed on their rails app? Here’s my situation. I have a recipe-sharing site, and I’d like to have …

---

## [Resize photo attachment\_fu](https://www.ruby-forum.com/t/resize-photo-attachment-fu/156343)

<div class="topic-metadata">

**Author:** [@anton\_effendi](https://www.ruby-forum.com/u/anton_effendi)\
**Replies:** 0\
**Last updated:** [December 25, 2008, 2:46am UTC](https://www.ruby-forum.com/t/resize-photo-attachment-fu/156343 "2008-12-25T02:46:19Z")

</div>

Any body can help me??? How to resize photo in attachment\_fu plugin… but size of photo has logic… the logic is If the image is wider than tall: thumbnail: width = 110px height = proportional standard: width = 520p…

---

## [Save / update related object](https://www.ruby-forum.com/t/save-update-related-object/156344)

<div class="topic-metadata">

**Author:** [@pauloee](https://www.ruby-forum.com/u/pauloee)\
**Replies:** 1\
**Last updated:** [December 25, 2008, 2:12am UTC](https://www.ruby-forum.com/t/save-update-related-object/156344 "2008-12-25T02:12:25Z")

</div>

Imagine that I have the following objects: class Person \< ActiveRecord::Base has\_one :nose end class Nose \< ActiveRecord::Base end p = Person.new p.name = “Mary” p.nose = Nose.new p.save p.nose.colour = “white” …

---

## [Help me](https://www.ruby-forum.com/t/help-me/156342)

<div class="topic-metadata">

**Author:** [@carlitos\_kyo](https://www.ruby-forum.com/u/carlitos_kyo)\
**Replies:** 0\
**Last updated:** [December 25, 2008, 1:34am UTC](https://www.ruby-forum.com/t/help-me/156342 "2008-12-25T01:34:58Z")

</div>

I have installed the LoginEngine and Engine but give me the following error: undefined method \`config’ for LoginEngine:Module Can you help me?

---

## [Rails and MySQL boolean types](https://www.ruby-forum.com/t/rails-and-mysql-boolean-types/156325)

<div class="topic-metadata">

**Author:** [@sa125](https://www.ruby-forum.com/u/sa125)\
**Replies:** 3\
**Last updated:** [December 25, 2008, 1:34am UTC](https://www.ruby-forum.com/t/rails-and-mysql-boolean-types/156325 "2008-12-25T01:34:58Z")

</div>

I’m trying to create a model that uses a boolean type, supported by mysql engine. My generate is like so: ./script/generate model Product name:string vendor\_id:integer in\_stock:boolean However, when I try to play wit…

---

## [Error with fields\_from](https://www.ruby-forum.com/t/error-with-fields-from/156340)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 0\
**Last updated:** [December 25, 2008, 12:31am UTC](https://www.ruby-forum.com/t/error-with-fields-from/156340 "2008-12-25T00:31:13Z")

</div>

Heya guys and gals. I was following ryan bates complex forms #73 + #74 and have come across a problem which i’m having trouble solving. my \_test.erb partial looks like \<% fields\_for “story\[acceptence\_test\]\[\]” do |tes…

---

## [I18n plugin for merb](https://www.ruby-forum.com/t/i18n-plugin-for-merb/156339)

<div class="topic-metadata">

**Author:** [@madiba](https://www.ruby-forum.com/u/madiba)\
**Replies:** 0\
**Last updated:** [December 25, 2008, 12:08am UTC](https://www.ruby-forum.com/t/i18n-plugin-for-merb/156339 "2008-12-25T00:08:24Z")

</div>

Hello. I have been writing a i18n/l10n plugin for merb. Today I get knew about the merging betwean the merb and rails. I’m not entiry sure but while I looked through rails api it seems that I have more richer API then…

---

## [Sassy released - a Rails SaaS and SSO solution](https://www.ruby-forum.com/t/sassy-released-a-rails-saas-and-sso-solution/156291)

<div class="topic-metadata">

**Author:** [@alexmic](https://www.ruby-forum.com/u/alexmic)\
**Replies:** 1\
**Last updated:** [December 24, 2008, 6:49pm UTC](https://www.ruby-forum.com/t/sassy-released-a-rails-saas-and-sso-solution/156291 "2008-12-24T18:49:03Z")

</div>

Thought people might be interested in something I’ve just released, Sassy, a Rails app deals with subscriptions and authentication. It’s similar to the SaaS RailsKit except it’s open source (sorry Ben). Overview S…

---

## [Help with nested models and fields\_for](https://www.ruby-forum.com/t/help-with-nested-models-and-fields-for/156076)

<div class="topic-metadata">

**Author:** [@marnen](https://www.ruby-forum.com/u/marnen)\
**Replies:** 9\
**Last updated:** [December 24, 2008, 6:32pm UTC](https://www.ruby-forum.com/t/help-with-nested-models-and-fields-for/156076 "2008-12-24T18:32:40Z")

</div>

Hi folks. I’m trying to do stuff with models nested one layer deeper than I’ve done in the past…and it’s just not working properly. Here’s the situation: I have three models involved here: Recipe, IngredientLine, a…

---

## [About yahoo UI 2.6 data source](https://www.ruby-forum.com/t/about-yahoo-ui-2-6-data-source/156333)

<div class="topic-metadata">

**Author:** [@tuhin\_cse99](https://www.ruby-forum.com/u/tuhin_cse99)\
**Replies:** 0\
**Last updated:** [December 24, 2008, 5:37pm UTC](https://www.ruby-forum.com/t/about-yahoo-ui-2-6-data-source/156333 "2008-12-24T17:37:23Z")

</div>

hi, I am using yahoo UI autocomplete in my rails application. I want to use XML data format. I have a tag\_list field in view file. this is my code in controller def filter\_tag @tags= Tags.find(:all) end I can …

---

## [Selection Lists and sorting data grids](https://www.ruby-forum.com/t/selection-lists-and-sorting-data-grids/156332)

<div class="topic-metadata">

**Author:** [@sa125](https://www.ruby-forum.com/u/sa125)\
**Replies:** 1\
**Last updated:** [December 24, 2008, 5:28pm UTC](https://www.ruby-forum.com/t/selection-lists-and-sorting-data-grids/156332 "2008-12-24T17:28:14Z")

</div>

Hello - In my app I’m displaying many data grids, and I’m trying to add multiple selection lists and a search box to each grid to allow filtering the rows. Since I’m very new to this, I’m trying to understand how to d…

---

## [Need help : Rails app unable to connect to Solr server](https://www.ruby-forum.com/t/need-help-rails-app-unable-to-connect-to-solr-server/196866)

<div class="topic-metadata">

**Author:** [@manisha](https://www.ruby-forum.com/u/manisha)\
**Replies:** 1\
**Last updated:** [December 24, 2008, 5:06pm UTC](https://www.ruby-forum.com/t/need-help-rails-app-unable-to-connect-to-solr-server/196866 "2008-12-24T17:06:38Z")

</div>

Hi, I am trying to integrate solr in ruby on rails application.For that i am using the plugin acts\_as\_solr and gem solr-ruby. My solr server starts successfully with command $ rake solr:start But when I try to add d…

---

## [Need help : Rails app unable to connect to Solr server Opti](https://www.ruby-forum.com/t/need-help-rails-app-unable-to-connect-to-solr-server-opti/156328)

<div class="topic-metadata">

**Author:** [@manisha](https://www.ruby-forum.com/u/manisha)\
**Replies:** 0\
**Last updated:** [December 24, 2008, 4:50pm UTC](https://www.ruby-forum.com/t/need-help-rails-app-unable-to-connect-to-solr-server-opti/156328 "2008-12-24T16:50:10Z")

</div>

Hi, I am trying to integrate solr in ruby on rails application.For that i am using the plugin acts\_as\_solr and gem solr-ruby. My solr server starts successfully with command $ rake solr:start But when I try to add d…

---

## [Adding to select list](https://www.ruby-forum.com/t/adding-to-select-list/156251)

<div class="topic-metadata">

**Author:** [@parki](https://www.ruby-forum.com/u/parki)\
**Replies:** 1\
**Last updated:** [December 24, 2008, 4:11pm UTC](https://www.ruby-forum.com/t/adding-to-select-list/156251 "2008-12-24T16:11:35Z")

</div>

I have several select lists on a form generated via collection\_select pulling values from the database. What I would like to do is, if new components need to be added to a select list (new options), I am providing a …

---

## [What's the advantage of using build and \<\<?](https://www.ruby-forum.com/t/whats-the-advantage-of-using-build-and/156302)

<div class="topic-metadata">

**Author:** [@rubyernewbie](https://www.ruby-forum.com/u/rubyernewbie)\
**Replies:** 4\
**Last updated:** [December 24, 2008, 3:29pm UTC](https://www.ruby-forum.com/t/whats-the-advantage-of-using-build-and/156302 "2008-12-24T15:29:38Z")

</div>

Rails give us two ways to create a asociation object: @article = Article.new(params\[:article\]) @article.comments \<\< Comment.new(params\[:comment\]) @article.save! or @article = Article.new(params\[:article\]) @comment …

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

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