# Rails

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

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

---

## [Attachment\_fu giving problem on production](https://www.ruby-forum.com/t/attachment-fu-giving-problem-on-production/166095)

<div class="topic-metadata">

**Author:** [@Abhishek\_shukla](https://www.ruby-forum.com/u/Abhishek_shukla)\
**Replies:** 3\
**Last updated:** [April 22, 2009, 3:24am UTC](https://www.ruby-forum.com/t/attachment-fu-giving-problem-on-production/166095 "2009-04-22T03:24:24Z")

</div>

Hello friends, I have configured attachment\_f. It’s working fine on Local(development) system but giving problem on production. Basically on production the attachment\_fu is not able to generate thumbnail image it savi…

---

## [Still cannot install rails on windows](https://www.ruby-forum.com/t/still-cannot-install-rails-on-windows/166084)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 12\
**Last updated:** [April 22, 2009, 1:39am UTC](https://www.ruby-forum.com/t/still-cannot-install-rails-on-windows/166084 "2009-04-22T01:39:55Z")

</div>

if i follow the instructions on: http://agilo.us/2009/03/15/rails-on-windows/ the command gem install sqlite3-ruby will give Building native extensions. This could take a while… ERROR: Error installing sqlite3-r…

---

## [Problem with sqlite3](https://www.ruby-forum.com/t/problem-with-sqlite3/166107)

<div class="topic-metadata">

**Author:** [@bhargavi](https://www.ruby-forum.com/u/bhargavi)\
**Replies:** 2\
**Last updated:** [April 22, 2009, 1:22am UTC](https://www.ruby-forum.com/t/problem-with-sqlite3/166107 "2009-04-22T01:22:20Z")

</div>

Hi all, I am relatively new to ruby and RoR. I created a simple rails proj named foo by giving command -\> rails foo --database=sqlite3 It created a new rails proj… So in that I created a simple db class named user b…

---

## [Acts\_as\_state\_machine: bug?! obj.save doesn't work](https://www.ruby-forum.com/t/acts-as-state-machine-bug-obj-save-doesnt-work/166002)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 7\
**Last updated:** [April 22, 2009, 1:09am UTC](https://www.ruby-forum.com/t/acts-as-state-machine-bug-obj-save-doesnt-work/166002 "2009-04-22T01:09:18Z")

</div>

Hi all I’m trying to understand, what acts\_as\_state\_machine really does (I use it because restful\_authentication uses it). restful\_authentication defines the following stuff: acts\_as\_state\_machine :initial =\> :pendin…

---

## [Validate order lines on order creation (ActiveResource)](https://www.ruby-forum.com/t/validate-order-lines-on-order-creation-activeresource/166110)

<div class="topic-metadata">

**Author:** [@linus](https://www.ruby-forum.com/u/linus)\
**Replies:** 0\
**Last updated:** [April 22, 2009, 12:08am UTC](https://www.ruby-forum.com/t/validate-order-lines-on-order-creation-activeresource/166110 "2009-04-22T00:08:05Z")

</div>

Hello, I have order model that has many lines. I would like to create order only when all order lines will be created: require ‘rubygems’ require ‘activeresource’ class PurchaseOrder \< ActiveResource::Base self.sit…

---

## [Render :partial in /app/views/layouts](https://www.ruby-forum.com/t/render-partial-in-app-views-layouts/166098)

<div class="topic-metadata">

**Author:** [@Trevor\_Menagh](https://www.ruby-forum.com/u/Trevor_Menagh)\
**Replies:** 2\
**Last updated:** [April 21, 2009, 10:13pm UTC](https://www.ruby-forum.com/t/render-partial-in-app-views-layouts/166098 "2009-04-21T22:13:30Z")

</div>

Hi all, I have many layouts that apply to parts of my Rails site. Some of the elements of each of the layouts are the same. I would like to create something like a partial to use within layouts. For example, I might …

---

## [Sorting entries by clicking a table heading](https://www.ruby-forum.com/t/sorting-entries-by-clicking-a-table-heading/166103)

<div class="topic-metadata">

**Author:** [@shanerosenthal](https://www.ruby-forum.com/u/shanerosenthal)\
**Replies:** 2\
**Last updated:** [April 21, 2009, 9:44pm UTC](https://www.ruby-forum.com/t/sorting-entries-by-clicking-a-table-heading/166103 "2009-04-21T21:44:40Z")

</div>

Hey, everybody. I’ve just started learning Rails this week, and am trying to reinforce what I’ve learned so far by writing a simple listing site. I’ve got all of the basics working, but thought it would be nice to add…

---

## [My flash is not accessible anymore!](https://www.ruby-forum.com/t/my-flash-is-not-accessible-anymore/166090)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 4\
**Last updated:** [April 21, 2009, 9:23pm UTC](https://www.ruby-forum.com/t/my-flash-is-not-accessible-anymore/166090 "2009-04-21T21:23:27Z")

</div>

Hi all For some reason I can’t access my flash object anymore! When putting \<%= flash\[:notice\] %\> in my view, I get the following error: You have a nil object when you didn’t expect it! You might have expected an in…

---

## [Number\_to\_currency doesn't work](https://www.ruby-forum.com/t/number-to-currency-doesnt-work/165918)

<div class="topic-metadata">

**Author:** [@cojones](https://www.ruby-forum.com/u/cojones)\
**Replies:** 6\
**Last updated:** [April 21, 2009, 9:16pm UTC](https://www.ruby-forum.com/t/number-to-currency-doesnt-work/165918 "2009-04-21T21:16:12Z")

</div>

Hey, I have no idea but for some reason number\_to\_currency doesn’t work in my application. \<%= number\_to\_currency(50, :unit =\> “£”, :separator =\> “,”, :delimiter =\> “”, :format =\> “%n %u”) %\> returns 50 Does anyon…

---

## [Sessions not working for active\_record\_store](https://www.ruby-forum.com/t/sessions-not-working-for-active-record-store/166037)

<div class="topic-metadata">

**Author:** [@rajatgarg](https://www.ruby-forum.com/u/rajatgarg)\
**Replies:** 2\
**Last updated:** [April 21, 2009, 8:53pm UTC](https://www.ruby-forum.com/t/sessions-not-working-for-active-record-store/166037 "2009-04-21T20:53:28Z")

</div>

I just upgraded to rails 2.3.2 from rails 1.2.x and one of the issue was that I was getting an error of CookieOverflow. Setup is Apache+Phusion+Rails 2.3.2+Mysql So, I switched to active\_record\_store by uncommenting t…

---

## [Upgrading rails to 2.3.2 - CookieOverflow issue](https://www.ruby-forum.com/t/upgrading-rails-to-2-3-2-cookieoverflow-issue/166007)

<div class="topic-metadata">

**Author:** [@rajatgarg](https://www.ruby-forum.com/u/rajatgarg)\
**Replies:** 2\
**Last updated:** [April 21, 2009, 8:15pm UTC](https://www.ruby-forum.com/t/upgrading-rails-to-2-3-2-cookieoverflow-issue/166007 "2009-04-21T20:15:15Z")

</div>

Folks, I am trying to upgrade system from rails 1.3.x to 2.3.2 and getting this error - Status: 500 Internal Server Error ActionController::Session::CookieStore::CookieOverflow /usr/lib/ruby/gems/1.8/gems/actionpack…

---

## [Problems about radio buttons](https://www.ruby-forum.com/t/problems-about-radio-buttons/166093)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 21, 2009, 8:13pm UTC](https://www.ruby-forum.com/t/problems-about-radio-buttons/166093 "2009-04-21T20:13:30Z")

</div>

i want to set a few radio buttons and if i submit the form , i want to change the value of the attribute from model what should i do? my codes are: in view : \<% form\_for :dre, :id =\> @dre , :url =\> { :action =\> ‘sta…

---

## [Can i update rails to the latest version using Instant Rails](https://www.ruby-forum.com/t/can-i-update-rails-to-the-latest-version-using-instant-rails/166089)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 0\
**Last updated:** [April 21, 2009, 7:57pm UTC](https://www.ruby-forum.com/t/can-i-update-rails-to-the-latest-version-using-instant-rails/166089 "2009-04-21T19:57:14Z")

</div>

If using Instant Rails, is it possible to update everything to the latest version by bringing up a Ruby Console from Instant Rails and do a gem install rails ? also, Install Rails kept on complaining that an app is a…

---

## [Apache2 + mod\_rails](https://www.ruby-forum.com/t/apache2-mod-rails/166073)

<div class="topic-metadata">

**Author:** [@Misantropo](https://www.ruby-forum.com/u/Misantropo)\
**Replies:** 1\
**Last updated:** [April 21, 2009, 7:42pm UTC](https://www.ruby-forum.com/t/apache2-mod-rails/166073 "2009-04-21T19:42:22Z")

</div>

I followed all instructions in a website for getting mod\_rails running. Everything seemed fine but when i try to access my rails app keep getting this error message everytime: We’re sorry, but something went wrong. W…

---

## [Polymorphic problema](https://www.ruby-forum.com/t/polymorphic-problema/165889)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 9\
**Last updated:** [April 21, 2009, 7:08pm UTC](https://www.ruby-forum.com/t/polymorphic-problema/165889 "2009-04-21T19:08:19Z")

</div>

It appears that I have the models and migrations set up correctly. In case anyone is wondering why i set it up like this I had it working with just a contact model and this will save a bunch of coding changes to my al…

---

## [Nested forms without looping through fields\_for collection](https://www.ruby-forum.com/t/nested-forms-without-looping-through-fields-for-collection/166075)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 21, 2009, 6:22pm UTC](https://www.ruby-forum.com/t/nested-forms-without-looping-through-fields-for-collection/166075 "2009-04-21T18:22:00Z")

</div>

Hi, I have a fairly complex form and I am wondering if it is even possible to do what I am attempting. I have multiple models included in the form. A small example would be the following: Company has many Locations …

---

## [Baffled with form\_for](https://www.ruby-forum.com/t/baffled-with-form-for/165999)

<div class="topic-metadata">

**Author:** [@harm](https://www.ruby-forum.com/u/harm)\
**Replies:** 7\
**Last updated:** [April 21, 2009, 4:46pm UTC](https://www.ruby-forum.com/t/baffled-with-form-for/165999 "2009-04-21T16:46:23Z")

</div>

I have a simple User form with a simple Usercontroller. The ‘edit’ action looks like: def edit @user = current\_user end In the view: \<% form\_for(@user) do |f| %\> blah blah \<% end %\> What it generates is: …

---

## [Date\_select and tabindex](https://www.ruby-forum.com/t/date-select-and-tabindex/165848)

<div class="topic-metadata">

**Author:** [@indu](https://www.ruby-forum.com/u/indu)\
**Replies:** 1\
**Last updated:** [April 21, 2009, 4:15pm UTC](https://www.ruby-forum.com/t/date-select-and-tabindex/165848 "2009-04-21T16:15:52Z")

</div>

Hello everyone, I want to set tabindex for date\_select helper. I tried many times, but not working. \<%= date\_select “user”, “dob”,:start\_year=\>1960 ,:tabindex=\>“4” %\> pls help. Thanks in advance

---

## [RESTful Routing: Getting names of resources out of paths](https://www.ruby-forum.com/t/restful-routing-getting-names-of-resources-out-of-paths/165877)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 1\
**Last updated:** [April 21, 2009, 4:00pm UTC](https://www.ruby-forum.com/t/restful-routing-getting-names-of-resources-out-of-paths/165877 "2009-04-21T16:00:35Z")

</div>

Hello - I’m trying to remain RESTful in a new application that I’m building, but I’m not sure how to get the routes that I want. I’m trying to avoid having resource names like “posts” and “comments” cluttering things …

---

## [Does respond\_to play nicely with render :update?](https://www.ruby-forum.com/t/does-respond-to-play-nicely-with-render-update/165890)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 4\
**Last updated:** [April 21, 2009, 3:48pm UTC](https://www.ruby-forum.com/t/does-respond-to-play-nicely-with-render-update/165890 "2009-04-21T15:48:00Z")

</div>

I have a custom format that I’m using called ‘desktop’. I have an action which is called via AJAX, and I’d like to update a div in my page with a partial. The request comes in with params\[:format\] == ‘desktop’, and my…

---

## [Overriding html generated for submit\_tag and selected links](https://www.ruby-forum.com/t/overriding-html-generated-for-submit-tag-and-selected-links/165903)

<div class="topic-metadata">

**Author:** [@steve](https://www.ruby-forum.com/u/steve)\
**Replies:** 1\
**Last updated:** [April 21, 2009, 3:07pm UTC](https://www.ruby-forum.com/t/overriding-html-generated-for-submit-tag-and-selected-links/165903 "2009-04-21T15:07:12Z")

</div>

Hi, Probably something simple, but I’m trying to change my submit\_tag and other buttons to CSS based buttons based on the article at http://www.oscaralexander.com/tutorials/how-to-make-sexy-buttons-with-css.html Basi…

---

## [Form - Tick boxes in related table](https://www.ruby-forum.com/t/form-tick-boxes-in-related-table/166062)

<div class="topic-metadata">

**Author:** [@mikej](https://www.ruby-forum.com/u/mikej)\
**Replies:** 1\
**Last updated:** [April 21, 2009, 2:53pm UTC](https://www.ruby-forum.com/t/form-tick-boxes-in-related-table/166062 "2009-04-21T14:53:06Z")

</div>

Sure this one is solved somewhere, but couldn’t find it. I have a table which has a related table (has many through). I wish to choose 1 or more items in the related table with a check box. For example, if I had a t…

---

## [Problem updating data](https://www.ruby-forum.com/t/problem-updating-data/226039)

<div class="topic-metadata">

**Author:** [@ps\_gem](https://www.ruby-forum.com/u/ps_gem)\
**Replies:** 1\
**Last updated:** [April 21, 2009, 2:48pm UTC](https://www.ruby-forum.com/t/problem-updating-data/226039 "2009-04-21T14:48:58Z")

</div>

It may be my stupid mistake; when I try to update users profile data it doesn’t update or give any error. Any help would be greatly appreciated. Thanks my users\_controller.rb file: def edit\_userprofile @olduserprofile…

---

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

<div class="topic-metadata">

**Author:** [@nitr0z](https://www.ruby-forum.com/u/nitr0z)\
**Replies:** 2\
**Last updated:** [April 21, 2009, 12:01pm UTC](https://www.ruby-forum.com/t/rails-plugins/165966 "2009-04-21T12:01:44Z")

</div>

One of the handy things missing from Rails, that the engines plugin tries to provide but which isn’t really core to its functionality, is a way of inspecting the set of loaded plugins while the application is running. …

---

## [\[Job\] Expert Rails and MySQL Developer --telecommute](https://www.ruby-forum.com/t/job-expert-rails-and-mysql-developer-telecommute/166055)

<div class="topic-metadata">

**Author:** [@assembla](https://www.ruby-forum.com/u/assembla)\
**Replies:** 0\
**Last updated:** [April 21, 2009, 11:55am UTC](https://www.ruby-forum.com/t/job-expert-rails-and-mysql-developer-telecommute/166055 "2009-04-21T11:55:02Z")

</div>

We are seeking an experienced Ruby on Rails developer. You will have a leading role in developing key website features, in db preparation and in db performance optimization as we move from an alpha site to a live site…

---

## [Help on Stack Trace](https://www.ruby-forum.com/t/help-on-stack-trace/166051)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 1\
**Last updated:** [April 21, 2009, 11:54am UTC](https://www.ruby-forum.com/t/help-on-stack-trace/166051 "2009-04-21T11:54:49Z")

</div>

Hi… I m extending ruby with C… when i call Client.rb it gets segmentation fault error … how can i get stack trace … pls kindly help me out… Thanks

---

## [Optimistic locking with session store?](https://www.ruby-forum.com/t/optimistic-locking-with-session-store/166004)

<div class="topic-metadata">

**Author:** [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Replies:** 1\
**Last updated:** [April 21, 2009, 9:20am UTC](https://www.ruby-forum.com/t/optimistic-locking-with-session-store/166004 "2009-04-21T09:20:21Z")

</div>

Okay, continuing in my project of abusing Rails horribly. It looks to me like even standard Rails sessions are subject to a race condition if the same session is accessed concurrently. Request1 checks out a session. R…

---

## [Looking for a Visual Guide to Rails](https://www.ruby-forum.com/t/looking-for-a-visual-guide-to-rails/166041)

<div class="topic-metadata">

**Author:** [@adonleys](https://www.ruby-forum.com/u/adonleys)\
**Replies:** 0\
**Last updated:** [April 21, 2009, 9:10am UTC](https://www.ruby-forum.com/t/looking-for-a-visual-guide-to-rails/166041 "2009-04-21T09:10:59Z")

</div>

I was listening to an older episode of the Ruby on Rails podcast hosted by Geoffrey Grosenbach and heard an interview with Amy Hoy. She was talking about an upcoming book she was writing for PragProg that would show r…

---

## [Open flash chart and ajax](https://www.ruby-forum.com/t/open-flash-chart-and-ajax/166042)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 0\
**Last updated:** [April 21, 2009, 9:07am UTC](https://www.ruby-forum.com/t/open-flash-chart-and-ajax/166042 "2009-04-21T09:07:54Z")

</div>

Hi I want to refresh a graph For that what should I do.The following is an example from the site My controller code like def dashboard @graph = open\_flash\_chart\_object(600,300,"#{request\_summary\_graph\_path}", true) …

---

## [Authentication for uploaded files](https://www.ruby-forum.com/t/authentication-for-uploaded-files/166032)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 1\
**Last updated:** [April 21, 2009, 7:20am UTC](https://www.ruby-forum.com/t/authentication-for-uploaded-files/166032 "2009-04-21T07:20:41Z")

</div>

how to set authentication for uploaded files ? i am using paperclip plugin to upload files it using “public/system” folder to store files the web server serving file from “public/system” folder directly but i want t…

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

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