# Rails

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

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

---

## [Accepts\_nested\_attributes\_for - objects are ignored:](https://www.ruby-forum.com/t/accepts-nested-attributes-for-objects-are-ignored/173784)

<div class="topic-metadata">

**Author:** [@Jan\_LSSS\_hr](https://www.ruby-forum.com/u/Jan_LSSS_hr)\
**Replies:** 1\
**Last updated:** [August 14, 2009, 11:39pm UTC](https://www.ruby-forum.com/t/accepts-nested-attributes-for-objects-are-ignored/173784 "2009-08-14T23:39:21Z")

</div>

Hello, I’ve encountered some annoying problem with accepts\_nested\_attributes\_for Model is: http://pastie.org/584213 Request is: http://pastie.org/584216 Controller is: http://pastie.org/584222 Record before request…

---

## [Correct regexp for Apache Expires headers](https://www.ruby-forum.com/t/correct-regexp-for-apache-expires-headers/171960)

<div class="topic-metadata">

**Author:** [@makire](https://www.ruby-forum.com/u/makire)\
**Replies:** 2\
**Last updated:** [August 14, 2009, 11:38pm UTC](https://www.ruby-forum.com/t/correct-regexp-for-apache-expires-headers/171960 "2009-08-14T23:38:46Z")

</div>

Hi I am trying to get my Apache/Passenger installation to cache all assets with a Rails style timestamp. My vhost file contains: \<VirtualHost \*:80\> ServerName www.blabla.se DocumentRoot /home/deployer/public/blabla/…

---

## [How to avoid special characters errors on uploading csv file](https://www.ruby-forum.com/t/how-to-avoid-special-characters-errors-on-uploading-csv-file/173759)

<div class="topic-metadata">

**Author:** [@karthikragu](https://www.ruby-forum.com/u/karthikragu)\
**Replies:** 1\
**Last updated:** [August 14, 2009, 11:38pm UTC](https://www.ruby-forum.com/t/how-to-avoid-special-characters-errors-on-uploading-csv-file/173759 "2009-08-14T23:38:11Z")

</div>

Hi, I wrote a funtion for uploading csv file using fastercsv. Often im getting special characters error on upload when the csv file uses “”,.:;!@#$%^&\* etc. Can anyone give me tips to avoid the special character erro…

---

## [Ec2 -\> ebs -\> s3?](https://www.ruby-forum.com/t/ec2-ebs-s3/173787)

<div class="topic-metadata">

**Author:** [@bill\_walton](https://www.ruby-forum.com/u/bill_walton)\
**Replies:** 3\
**Last updated:** [August 14, 2009, 9:32pm UTC](https://www.ruby-forum.com/t/ec2-ebs-s3/173787 "2009-08-14T21:32:55Z")

</div>

Greetings! I’d appreciate hearing from anybody who’s had experience with any of this. I’ve got a Rails app that currently deployed on EC2 with MySQL and am readying to move from a dev / prototype model to a full-scal…

---

## [Default Page](https://www.ruby-forum.com/t/default-page/173785)

<div class="topic-metadata">

**Author:** [@pmckinstry](https://www.ruby-forum.com/u/pmckinstry)\
**Replies:** 4\
**Last updated:** [August 14, 2009, 8:52pm UTC](https://www.ruby-forum.com/t/default-page/173785 "2009-08-14T20:52:25Z")

</div>

Hi there, I want to have a default index page which just uses the layout (from layout/application.html.erb) - however the default index page in public does not seem to use the layouts, it doesnt need to call any contr…

---

## [Chat application](https://www.ruby-forum.com/t/chat-application/173786)

<div class="topic-metadata">

**Author:** [@DanC](https://www.ruby-forum.com/u/DanC)\
**Replies:** 0\
**Last updated:** [August 14, 2009, 7:22pm UTC](https://www.ruby-forum.com/t/chat-application/173786 "2009-08-14T19:22:24Z")

</div>

Hi All, I’m building an app using restful\_authentication which I am familiar with. I would like to try a simple chat application so that logged in users can IM on the site. I have read little about using the Juggerna…

---

## [CSS and JS won't display](https://www.ruby-forum.com/t/css-and-js-wont-display/173710)

<div class="topic-metadata">

**Author:** [@calande](https://www.ruby-forum.com/u/calande)\
**Replies:** 1\
**Last updated:** [August 14, 2009, 6:08pm UTC](https://www.ruby-forum.com/t/css-and-js-wont-display/173710 "2009-08-14T18:08:03Z")

</div>

Just downloaded a barebones project using git and I’m charged with doing a design for it. First time using HAML and SASS. Looking forward to it. Booted up Webrick and went to load the page and none of the js or css …

---

## [Template is missing](https://www.ruby-forum.com/t/template-is-missing/173767)

<div class="topic-metadata">

**Author:** [@elioncho](https://www.ruby-forum.com/u/elioncho)\
**Replies:** 3\
**Last updated:** [August 14, 2009, 5:59pm UTC](https://www.ruby-forum.com/t/template-is-missing/173767 "2009-08-14T17:59:16Z")

</div>

Ok I’m getting this weird error whenever the update action fails to update. My code is below (its pretty straightforward). When the update is successful it works well, the problem is when it fails. I get a, Template i…

---

## [Validates\_associated](https://www.ruby-forum.com/t/validates-associated/173722)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 3\
**Last updated:** [August 14, 2009, 5:00pm UTC](https://www.ruby-forum.com/t/validates-associated/173722 "2009-08-14T17:00:43Z")

</div>

Is the any way to get more descriptive of the errors associated with the associated model? I have a site model that has: validates\_associated :Eqptattrs and below is the error generated from the associated model. Th…

---

## [I've decided to use Rails... (I hope I made the right decision)](https://www.ruby-forum.com/t/ive-decided-to-use-rails-i-hope-i-made-the-right-decision/173535)

<div class="topic-metadata">

**Author:** [@AlwaysCharging](https://www.ruby-forum.com/u/AlwaysCharging)\
**Replies:** 13\
**Last updated:** [August 14, 2009, 4:11pm UTC](https://www.ruby-forum.com/t/ive-decided-to-use-rails-i-hope-i-made-the-right-decision/173535 "2009-08-14T16:11:33Z")

</div>

I’ve read a ton of comparisons that compare one framework to another, and one language to another. There’s so much conflicting advice out there that it’s hard to know what is best. Did I make the right choice choosi…

---

## [Default value if textfield is empty](https://www.ruby-forum.com/t/default-value-if-textfield-is-empty/173721)

<div class="topic-metadata">

**Author:** [@pure](https://www.ruby-forum.com/u/pure)\
**Replies:** 10\
**Last updated:** [August 14, 2009, 3:54pm UTC](https://www.ruby-forum.com/t/default-value-if-textfield-is-empty/173721 "2009-08-14T15:54:49Z")

</div>

Hey all, im not sure where to set a default value if a textfield is empty? For now i do it in the controller, and check if the submitted parameter is blank. But this seems not to be the best solution… Thanks for you…

---

## [Jobs](https://www.ruby-forum.com/t/jobs/173732)

<div class="topic-metadata">

**Author:** [@getink](https://www.ruby-forum.com/u/getink)\
**Replies:** 1\
**Last updated:** [August 14, 2009, 3:47pm UTC](https://www.ruby-forum.com/t/jobs/173732 "2009-08-14T15:47:33Z")

</div>

We are almost finished with a premiere website and we are looking for somebody who can help us finish the project. If you are interested please contact me. Equity percentage is most desirable.

---

## [Search form: field list in a drop down](https://www.ruby-forum.com/t/search-form-field-list-in-a-drop-down/173754)

<div class="topic-metadata">

**Author:** [@railslist](https://www.ruby-forum.com/u/railslist)\
**Replies:** 2\
**Last updated:** [August 14, 2009, 2:57pm UTC](https://www.ruby-forum.com/t/search-form-field-list-in-a-drop-down/173754 "2009-08-14T14:57:11Z")

</div>

i am developing a search form where the user need to select the field to be searched from a drop down. could some one provide me pointers?.

---

## [Sessions between http and https](https://www.ruby-forum.com/t/sessions-between-http-and-https/173618)

<div class="topic-metadata">

**Author:** [@andy](https://www.ruby-forum.com/u/andy)\
**Replies:** 5\
**Last updated:** [August 14, 2009, 2:46pm UTC](https://www.ruby-forum.com/t/sessions-between-http-and-https/173618 "2009-08-14T14:46:41Z")

</div>

I have an online store I created and I’ve been saving a “shopping\_cart\_id” in the session which references a data object. I added “ssl\_requirement” to the site and I put the Order Summary, Checkout, and Confirm pages …

---

## [Mailer related query](https://www.ruby-forum.com/t/mailer-related-query/173769)

<div class="topic-metadata">

**Author:** [@hunt](https://www.ruby-forum.com/u/hunt)\
**Replies:** 3\
**Last updated:** [August 14, 2009, 2:24pm UTC](https://www.ruby-forum.com/t/mailer-related-query/173769 "2009-08-14T14:24:17Z")

</div>

I am putting this in my mailer view…which sends message to some id. suppose removed\_email\_address@domain.invalid Hi! You are having one email message from \<%= @email %\> with a title \<%= @title %\> and following is th…

---

## [Different titles](https://www.ruby-forum.com/t/different-titles/173640)

<div class="topic-metadata">

**Author:** [@webstic](https://www.ruby-forum.com/u/webstic)\
**Replies:** 5\
**Last updated:** [August 14, 2009, 1:39pm UTC](https://www.ruby-forum.com/t/different-titles/173640 "2009-08-14T13:39:57Z")

</div>

hi! I want to have different titles in my weblog. in my app/views/layout/post.html.erb i have this in head: \<%= controller.action\_name %\> :: webstic blog :slight\_smile: thats fine if im in page that listing my blog…

---

## [How to: Handle javascript\_include\_tag in production mode](https://www.ruby-forum.com/t/how-to-handle-javascript-include-tag-in-production-mode/173763)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 2\
**Last updated:** [August 14, 2009, 1:37pm UTC](https://www.ruby-forum.com/t/how-to-handle-javascript-include-tag-in-production-mode/173763 "2009-08-14T13:37:01Z")

</div>

Hi there, I have the following javascript\_include\_tags in my application.html.erb file: \<%= javascript\_include\_tag ‘jquery/jquery-1.3.2.min’, :cache =\> ‘jquery’ %\> \<%= javascript\_include\_tag ‘jrails’ %\> \<%= javascr…

---

## ["sudo gem install rails" not able to install thin dependency](https://www.ruby-forum.com/t/sudo-gem-install-rails-not-able-to-install-thin-dependency/173766)

<div class="topic-metadata">

**Author:** [@tmod](https://www.ruby-forum.com/u/tmod)\
**Replies:** 7\
**Last updated:** [August 14, 2009, 1:10pm UTC](https://www.ruby-forum.com/t/sudo-gem-install-rails-not-able-to-install-thin-dependency/173766 "2009-08-14T13:10:06Z")

</div>

Hi folks, I’m having trouble getting gems to install rails. It just keeps asking me which version of thin I want to install. Until I choose skip or cancel, in which case I’m told that something has gone wrong. Any ad…

---

## [How to ignore errors in migration - Suppose a column exist](https://www.ruby-forum.com/t/how-to-ignore-errors-in-migration-suppose-a-column-exist/173741)

<div class="topic-metadata">

**Author:** [@sagarwal1981](https://www.ruby-forum.com/u/sagarwal1981)\
**Replies:** 5\
**Last updated:** [August 14, 2009, 12:26pm UTC](https://www.ruby-forum.com/t/how-to-ignore-errors-in-migration-suppose-a-column-exist/173741 "2009-08-14T12:26:39Z")

</div>

Hi , I am creating a migration but due to some error after it is ignoring whole migration. I want that if a column or table is already present ignore it and ove ahead with migration execution. How can i ignore error…

---

## [HELP ...Is it Posible for partial file](https://www.ruby-forum.com/t/help-is-it-posible-for-partial-file/173753)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 1\
**Last updated:** [August 14, 2009, 12:23pm UTC](https://www.ruby-forum.com/t/help-is-it-posible-for-partial-file/173753 "2009-08-14T12:23:01Z")

</div>

how to update a div using ajax.updater() in rails… \<%= render :partial =\> "news" %\> every 10 seconds the above div has to be get refreshed… i m stumped with this problem… i dont know how to proceed it… pls help

---

## [Scalability of ruby on rails application](https://www.ruby-forum.com/t/scalability-of-ruby-on-rails-application/173755)

<div class="topic-metadata">

**Author:** [@karthikragu](https://www.ruby-forum.com/u/karthikragu)\
**Replies:** 2\
**Last updated:** [August 14, 2009, 11:37am UTC](https://www.ruby-forum.com/t/scalability-of-ruby-on-rails-application/173755 "2009-08-14T11:37:02Z")

</div>

Hi, I heared the scalability issues in ruby on rails application. When searching over it almost all denied the scalability issues in rails application but i was not able to understand the reason given. Can anyone tel…

---

## [:only option in route 2.2.2](https://www.ruby-forum.com/t/only-option-in-route-2-2-2/173752)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 1\
**Last updated:** [August 14, 2009, 9:09am UTC](https://www.ruby-forum.com/t/only-option-in-route-2-2-2/173752 "2009-08-14T09:09:27Z")

</div>

Hi I have my application rails version 2.2.2 And this thing map.resources :users, :only =\> \[:index\] do |u| u.resources :categories end when I tried this in 2.3.2 rails I get what I required Means it only cretes us…

---

## [Changing stylesheet by using a selection list](https://www.ruby-forum.com/t/changing-stylesheet-by-using-a-selection-list/173751)

<div class="topic-metadata">

**Author:** [@tdellaringa](https://www.ruby-forum.com/u/tdellaringa)\
**Replies:** 1\
**Last updated:** [August 14, 2009, 7:25am UTC](https://www.ruby-forum.com/t/changing-stylesheet-by-using-a-selection-list/173751 "2009-08-14T07:25:05Z")

</div>

Hey I can’t figure out how to change the stylesheet using a selection list. In my application I want to have an option for the user to change the look of the site by selecting a different layout from a list. All it …

---

## [Testing controller](https://www.ruby-forum.com/t/testing-controller/173684)

<div class="topic-metadata">

**Author:** [@jimb](https://www.ruby-forum.com/u/jimb)\
**Replies:** 4\
**Last updated:** [August 14, 2009, 7:24am UTC](https://www.ruby-forum.com/t/testing-controller/173684 "2009-08-14T07:24:11Z")

</div>

I wrote some tests for my controller which all worked as they should until I added http authentication using ‘before\_filter :authenticate’ This is the authenticate method: def authenticate authenticate\_or\_request\_wit…

---

## [How to disable select menu](https://www.ruby-forum.com/t/how-to-disable-select-menu/173747)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 1\
**Last updated:** [August 14, 2009, 7:17am UTC](https://www.ruby-forum.com/t/how-to-disable-select-menu/173747 "2009-08-14T07:17:45Z")

</div>

\<%=userinfo.select :profile,Profile.find(:all,:conditions =\> {:role\_type =\> “AC”}).collect {|c| \[ c.name, c.id \] },{},{:class =\> “companyselect”} %\> how to disable the above select menu … i can able to disable the te…

---

## [Any suggesstions on "user interface"](https://www.ruby-forum.com/t/any-suggesstions-on-user-interface/173746)

<div class="topic-metadata">

**Author:** [@risknet](https://www.ruby-forum.com/u/risknet)\
**Replies:** 1\
**Last updated:** [August 14, 2009, 5:59am UTC](https://www.ruby-forum.com/t/any-suggesstions-on-user-interface/173746 "2009-08-14T05:59:25Z")

</div>

Hello all, I am trying to build a web app using RoR and wonder if there is any “user interface theme” you can recommend. I found the following two themes from RailsInside forum web, but I like to hear your opinions …

---

## [Country select with i18n](https://www.ruby-forum.com/t/country-select-with-i18n/173744)

<div class="topic-metadata">

**Author:** [@elioncho](https://www.ruby-forum.com/u/elioncho)\
**Replies:** 0\
**Last updated:** [August 14, 2009, 4:08am UTC](https://www.ruby-forum.com/t/country-select-with-i18n/173744 "2009-08-14T04:08:06Z")

</div>

I am trying to manage the country names with i18n. I have a countries table with the countries extension codes (us., co., ve., .bo. etc…) and the yml files with their complete names: en: countries: ar: Argentina co…

---

## [Issues with ajax requests and user session](https://www.ruby-forum.com/t/issues-with-ajax-requests-and-user-session/173669)

<div class="topic-metadata">

**Author:** [@jsoho](https://www.ruby-forum.com/u/jsoho)\
**Replies:** 3\
**Last updated:** [August 14, 2009, 4:03am UTC](https://www.ruby-forum.com/t/issues-with-ajax-requests-and-user-session/173669 "2009-08-14T04:03:26Z")

</div>

I’m using an exception notification plugin which sends me an email whenever an exception is raised on the rails server. Regularly I’m getting exception reports due to raising a PermissionDenied exception when a user h…

---

## [Self.id returning an array in 2.3?](https://www.ruby-forum.com/t/self-id-returning-an-array-in-2-3/173733)

<div class="topic-metadata">

**Author:** [@mjijackson](https://www.ruby-forum.com/u/mjijackson)\
**Replies:** 2\
**Last updated:** [August 14, 2009, 3:41am UTC](https://www.ruby-forum.com/t/self-id-returning-an-array-in-2-3/173733 "2009-08-14T03:41:47Z")

</div>

I’m upgrading from 2.1 to 2.3 and having a small problem with my models. It appears that when I use self.id now (say, from inside an instance method) I’m getting an array back instead of a string. For example, where u…

---

## [Dynamic Fields (attributes)](https://www.ruby-forum.com/t/dynamic-fields-attributes/173560)

<div class="topic-metadata">

**Author:** [@insect](https://www.ruby-forum.com/u/insect)\
**Replies:** 7\
**Last updated:** [August 14, 2009, 2:52am UTC](https://www.ruby-forum.com/t/dynamic-fields-attributes/173560 "2009-08-14T02:52:02Z")

</div>

Hello! I am looking for a plugin or at least the way how to realize dynamic fields in a model. Why I need: I want to create a product catalog application, each type of product can have different set of fields (e.g. c…

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

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