# Rails

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

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

---

## [Segmentation Fault on 64-bit](https://www.ruby-forum.com/t/segmentation-fault-on-64-bit/127572)

<div class="topic-metadata">

**Author:** [@pratik](https://www.ruby-forum.com/u/pratik)\
**Replies:** 1\
**Last updated:** [January 30, 2008, 4:47pm UTC](https://www.ruby-forum.com/t/segmentation-fault-on-64-bit/127572 "2008-01-30T16:47:36Z")

</div>

ruby (1.8.4) is crashing when it is compiled on 64-bit when caching is used while fetching data through oracle. the same works fine when ruby is compiled in 32-bit. The platform is Sun OS 64-bit SPARC. But it is also …

---

## [Histogram from model-data?](https://www.ruby-forum.com/t/histogram-from-model-data/127524)

<div class="topic-metadata">

**Author:** [@peter](https://www.ruby-forum.com/u/peter)\
**Replies:** 1\
**Last updated:** [January 30, 2008, 4:10pm UTC](https://www.ruby-forum.com/t/histogram-from-model-data/127524 "2008-01-30T16:10:19Z")

</div>

I’d like to display some kind of histogram from user-data, but i don’t really know the approach to do so. I have a model Vote, they belong to a User (user has\_many votes), and each User has a Profile, and in there i s…

---

## [Multi-user app](https://www.ruby-forum.com/t/multi-user-app/127526)

<div class="topic-metadata">

**Author:** [@alce](https://www.ruby-forum.com/u/alce)\
**Replies:** 4\
**Last updated:** [January 30, 2008, 3:45pm UTC](https://www.ruby-forum.com/t/multi-user-app/127526 "2008-01-30T15:45:28Z")

</div>

Hi All, Which is the best way to handle multi-user applications in Rails (think backpack)? Let me try to explain what I am trying to do: I wrote an application and sold it to different companies. For every company I…

---

## [Attachment\_fu & AWS S3 - EOFError](https://www.ruby-forum.com/t/attachment-fu-aws-s3-eoferror/123723)

<div class="topic-metadata">

**Author:** [@jko170](https://www.ruby-forum.com/u/jko170)\
**Replies:** 1\
**Last updated:** [January 30, 2008, 3:23pm UTC](https://www.ruby-forum.com/t/attachment-fu-aws-s3-eoferror/123723 "2008-01-30T15:23:32Z")

</div>

I get this error every once in a while while uploading a photo. A EOFError occurred in photos#update: end of file reached /usr/local/lib/ruby/1.8/net/protocol.rb:133:in \`sysread’ Anyone know why this happens intermit…

---

## [How to use select box relating with database(oracle) in ruby on rails](https://www.ruby-forum.com/t/how-to-use-select-box-relating-with-database-oracle-in-ruby-on-rails/127578)

<div class="topic-metadata">

**Author:** [@napster](https://www.ruby-forum.com/u/napster)\
**Replies:** 0\
**Last updated:** [January 30, 2008, 3:21pm UTC](https://www.ruby-forum.com/t/how-to-use-select-box-relating-with-database-oracle-in-ruby-on-rails/127578 "2008-01-30T15:21:04Z")

</div>

hi guys i am using ruby on rails since 2months and the version for rails is 2.0.2 and the editor using is APTANA IDE and the problem is i have to use selection box in a page so that when i click on any one of the i…

---

## [Iterating through hash to line up dates correctly in a table](https://www.ruby-forum.com/t/iterating-through-hash-to-line-up-dates-correctly-in-a-table/127574)

<div class="topic-metadata">

**Author:** [@matt](https://www.ruby-forum.com/u/matt)\
**Replies:** 0\
**Last updated:** [January 30, 2008, 2:29pm UTC](https://www.ruby-forum.com/t/iterating-through-hash-to-line-up-dates-correctly-in-a-table/127574 "2008-01-30T14:29:33Z")

</div>

I have a simple table right now: OBS Number \<% for week in @week\_endings%\> \<%=week.week\_ending%\> \<%end%\> \<%=result%\> \<% @results\[result\].each do |test| %\> Date: \<%= t…

---

## [Text datatype in ror](https://www.ruby-forum.com/t/text-datatype-in-ror/127537)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 2\
**Last updated:** [January 30, 2008, 2:11pm UTC](https://www.ruby-forum.com/t/text-datatype-in-ror/127537 "2008-01-30T14:11:06Z")

</div>

Hi Can anybody help me to check whether a text field is nil in ror. I have to check params\[:service\_desk\_attachment1\]\[:attachment\] is nil .But how.The attachment is a field in the postgres table.There after migratio…

---

## [Designing for Mass-Uploading](https://www.ruby-forum.com/t/designing-for-mass-uploading/127563)

<div class="topic-metadata">

**Author:** [@jazcyk](https://www.ruby-forum.com/u/jazcyk)\
**Replies:** 6\
**Last updated:** [January 30, 2008, 2:03pm UTC](https://www.ruby-forum.com/t/designing-for-mass-uploading/127563 "2008-01-30T14:03:41Z")

</div>

Hi, I am planning a project which is very heavily built on the premise of users being able to upload lots of data (maybe a bit like Flickr but not for photos). They may choose to upload quite a bit in one go - perhaps …

---

## [Source db/slideshow\_data.sql](https://www.ruby-forum.com/t/source-db-slideshow-data-sql/127560)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 1\
**Last updated:** [January 30, 2008, 1:09pm UTC](https://www.ruby-forum.com/t/source-db-slideshow-data-sql/127560 "2008-01-30T13:09:38Z")

</div>

From examples / Ruby on Rails Up and Running · GitLab I downloaded src-start- chapter-4.zip and extraced the following file, which fails to import correctly. Is this a syntax problem, a database password problem, or …

---

## [Stylesheets are not applying for Rails running in Tomcat](https://www.ruby-forum.com/t/stylesheets-are-not-applying-for-rails-running-in-tomcat/127566)

<div class="topic-metadata">

**Author:** [@bharathchunchu](https://www.ruby-forum.com/u/bharathchunchu)\
**Replies:** 0\
**Last updated:** [January 30, 2008, 12:52pm UTC](https://www.ruby-forum.com/t/stylesheets-are-not-applying-for-rails-running-in-tomcat/127566 "2008-01-30T12:52:59Z")

</div>

Hi, I running rails applciation in Tomcat. It is not applying the Stylesheets ,Images and Javascript. These are located under Public directory. It is applying fine when I am running the application WEBRick Server. …

---

## [How to achieve internationalization in ROR?](https://www.ruby-forum.com/t/how-to-achieve-internationalization-in-ror/127562)

<div class="topic-metadata">

**Author:** [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Replies:** 1\
**Last updated:** [January 30, 2008, 12:46pm UTC](https://www.ruby-forum.com/t/how-to-achieve-internationalization-in-ror/127562 "2008-01-30T12:46:31Z")

</div>

Anybody worked on internationalization in ROR project?

---

## [Urgent acts\_as\_tree attributes](https://www.ruby-forum.com/t/urgent-acts-as-tree-attributes/127558)

<div class="topic-metadata">

**Author:** [@andre.ambrosio](https://www.ruby-forum.com/u/andre.ambrosio)\
**Replies:** 0\
**Last updated:** [January 30, 2008, 12:19pm UTC](https://www.ruby-forum.com/t/urgent-acts-as-tree-attributes/127558 "2008-01-30T12:19:14Z")

</div>

Hello, I have a class “ve” which acts\_as\_tree and has an attribute “recommendations”, which is itself another model (referenced by a belongs\_to, has\_many relationship, a “ve” has many recommendations) I wish I could g…

---

## [The attributes returned by "form\_for" issue](https://www.ruby-forum.com/t/the-attributes-returned-by-form-for-issue/127552)

<div class="topic-metadata">

**Author:** [@myst\_tt](https://www.ruby-forum.com/u/myst_tt)\
**Replies:** 2\
**Last updated:** [January 30, 2008, 12:12pm UTC](https://www.ruby-forum.com/t/the-attributes-returned-by-form-for-issue/127552 "2008-01-30T12:12:45Z")

</div>

Hello, everybody: I have made a “form\_for” in a view returns the attributes value of a “user” model, such as user.login, user.email, user.name, ect. However, now I wanna add a new , e.g. “code”, into the form\_for ta…

---

## [Plugin belongs\_to Model Association Bug](https://www.ruby-forum.com/t/plugin-belongs-to-model-association-bug/127556)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [January 30, 2008, 12:05pm UTC](https://www.ruby-forum.com/t/plugin-belongs-to-model-association-bug/127556 "2008-01-30T12:05:41Z")

</div>

Hey all, I’m not positive if this is a Engines bug, but it seems very peculiar and a few hours of Googling haven’t given me any good leads yet, so I thought I’d see if it makes sense to any of you: I am writing a new…

---

## [Having problems with serialize :column\_name](https://www.ruby-forum.com/t/having-problems-with-serialize-column-name/127555)

<div class="topic-metadata">

**Author:** [@kennylovrin](https://www.ruby-forum.com/u/kennylovrin)\
**Replies:** 0\
**Last updated:** [January 30, 2008, 11:22am UTC](https://www.ruby-forum.com/t/having-problems-with-serialize-column-name/127555 "2008-01-30T11:22:30Z")

</div>

Hi guys I have asked this questions on the Rails Forum as well, but haven’t got any reply, so I will try here. The thing is this: I want to store “portlets” in a Portlet model in the db. I want to store them toghete…

---

## [Update params only on 1 field](https://www.ruby-forum.com/t/update-params-only-on-1-field/114569)

<div class="topic-metadata">

**Author:** [@dotty](https://www.ruby-forum.com/u/dotty)\
**Replies:** 7\
**Last updated:** [January 30, 2008, 9:59am UTC](https://www.ruby-forum.com/t/update-params-only-on-1-field/114569 "2008-01-30T09:59:18Z")

</div>

Hay all, im passing data from a form to a controller. Now, i’m passing 1 string of data. How can i get this data, and, in the controller update only 1 field? Thanks.

---

## [From\_xml rails 2.0 no worky!](https://www.ruby-forum.com/t/from-xml-rails-2-0-no-worky/127548)

<div class="topic-metadata">

**Author:** [@Corbin](https://www.ruby-forum.com/u/Corbin)\
**Replies:** 0\
**Last updated:** [January 30, 2008, 9:26am UTC](https://www.ruby-forum.com/t/from-xml-rails-2-0-no-worky/127548 "2008-01-30T09:26:13Z")

</div>

I’m trying to use my\_model.from\_xml() to rehydrate an ActiveRecord object with associations. When I do this I was getting either ActiveRecord::AssociationTypeMismatch: HouseOfQuality expected, got Hash or ActiveRec…

---

## [Undefined method 'link\_to\_funtion'](https://www.ruby-forum.com/t/undefined-method-link-to-funtion/127546)

<div class="topic-metadata">

**Author:** [@obenhauser](https://www.ruby-forum.com/u/obenhauser)\
**Replies:** 5\
**Last updated:** [January 30, 2008, 9:14am UTC](https://www.ruby-forum.com/t/undefined-method-link-to-funtion/127546 "2008-01-30T09:14:30Z")

</div>

I’ve been trying to follow the example in Railscast #74, #74 Complex Forms Part 2 - RailsCasts, but I get an undefined method ‘link\_to\_function’ error. I’m using ROR 2.0. Does anyone know if this function has been m…

---

## [Can before\_filter using Proc and specify block?](https://www.ruby-forum.com/t/can-before-filter-using-proc-and-specify-block/127539)

<div class="topic-metadata">

**Author:** [@patrick](https://www.ruby-forum.com/u/patrick)\
**Replies:** 1\
**Last updated:** [January 30, 2008, 8:54am UTC](https://www.ruby-forum.com/t/can-before-filter-using-proc-and-specify-block/127539 "2008-01-30T08:54:40Z")

</div>

Hi, I see from this post http://groups.google.com/group/rubyonrails-talk/browse\_thread/thread/97e333daab05b725/8252c90cb9c36f6d?lnk=gst&q=passing+parameter+before\_filter#8252c90cb9c36f6d it can specify the Proc in the…

---

## [Authentication for rals \< 2.0?](https://www.ruby-forum.com/t/authentication-for-rals-2-0/127543)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [January 30, 2008, 7:23am UTC](https://www.ruby-forum.com/t/authentication-for-rals-2-0/127543 "2008-01-30T07:23:27Z")

</div>

Hi, Can anyone recommend a good plug-in to aid in logging in and out users for Rails 1.2.3 and Ruby 1.8.6. This is wha tis provided to me by my hosting company. I’m to understand that restful\_authentication only wo…

---

## [Help debugging ActionMailer with restful\_authentication?](https://www.ruby-forum.com/t/help-debugging-actionmailer-with-restful-authentication/119905)

<div class="topic-metadata">

**Author:** [@chirag](https://www.ruby-forum.com/u/chirag)\
**Replies:** 1\
**Last updated:** [January 30, 2008, 7:18am UTC](https://www.ruby-forum.com/t/help-debugging-actionmailer-with-restful-authentication/119905 "2008-01-30T07:18:09Z")

</div>

In a nutshell, I’m using restful\_authentication that emails the user when they sign up for an account The development.log file shows the body of the e-mail message being prepped to send out, but doesn’t show confirmat…

---

## [Eager loading has\_many through](https://www.ruby-forum.com/t/eager-loading-has-many-through/127512)

<div class="topic-metadata">

**Author:** [@Tarscher](https://www.ruby-forum.com/u/Tarscher)\
**Replies:** 1\
**Last updated:** [January 30, 2008, 7:00am UTC](https://www.ruby-forum.com/t/eager-loading-has-many-through/127512 "2008-01-30T07:00:26Z")

</div>

hi all, My relationships: group habtm user and user has\_many events :through statistics. The statistics contains the id of user and is of event and additional data. How can I get all the users in a group with their…

---

## [Undefined method \`scaffold'](https://www.ruby-forum.com/t/undefined-method-scaffold/127544)

<div class="topic-metadata">

**Author:** [@isea](https://www.ruby-forum.com/u/isea)\
**Replies:** 1\
**Last updated:** [January 30, 2008, 6:47am UTC](https://www.ruby-forum.com/t/undefined-method-scaffold/127544 "2008-01-30T06:47:31Z")

</div>

Hello, I have been busy for a while and now I am back to messing with rails. Last time I tried to use scaffold i worked now I am getting this error. Not really sure since I am using version 1.2.5 still NoMethodError …

---

## [WEBrick won't start getting require\_frameworks runtime error](https://www.ruby-forum.com/t/webrick-wont-start-getting-require-frameworks-runtime-error/124305)

<div class="topic-metadata">

**Author:** [@tornado](https://www.ruby-forum.com/u/tornado)\
**Replies:** 2\
**Last updated:** [January 30, 2008, 6:15am UTC](https://www.ruby-forum.com/t/webrick-wont-start-getting-require-frameworks-runtime-error/124305 "2008-01-30T06:15:44Z")

</div>

Hi WEBrick won’t start and getting the following error- jruby-1.1b1/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb:159:in \`require\_frameworks’: Could not find RubyGem jruby-openssl (\>= 0.0.0) (RuntimeError) …

---

## [Handling Illegal Dates When User Enters Date](https://www.ruby-forum.com/t/handling-illegal-dates-when-user-enters-date/127529)

<div class="topic-metadata">

**Author:** [@johnk](https://www.ruby-forum.com/u/johnk)\
**Replies:** 4\
**Last updated:** [January 30, 2008, 6:12am UTC](https://www.ruby-forum.com/t/handling-illegal-dates-when-user-enters-date/127529 "2008-01-30T06:12:57Z")

</div>

For my website when a user creates an account they have to fill out their birthdate using pulldown menus. If a user enters an illegal date the system throws an error before I even get the opportunity to validate the…

---

## [Help with JSONified objects from ActiveRecord](https://www.ruby-forum.com/t/help-with-jsonified-objects-from-activerecord/127534)

<div class="topic-metadata">

**Author:** [@lobo](https://www.ruby-forum.com/u/lobo)\
**Replies:** 0\
**Last updated:** [January 30, 2008, 4:54am UTC](https://www.ruby-forum.com/t/help-with-jsonified-objects-from-activerecord/127534 "2008-01-30T04:54:59Z")

</div>

Hello guys, I’m trying to return a custom JSON response to a client frontend. The object I’m trying to return is a User, with some associated Locale data. So basically I need to put the User data and his Locale in a …

---

## [500.html pstore.rb File too large - session//ruby\_sess](https://www.ruby-forum.com/t/500-html-pstore-rb-file-too-large-session-ruby-sess/127531)

<div class="topic-metadata">

**Author:** [@slashdotted](https://www.ruby-forum.com/u/slashdotted)\
**Replies:** 0\
**Last updated:** [January 30, 2008, 3:47am UTC](https://www.ruby-forum.com/t/500-html-pstore-rb-file-too-large-session-ruby-sess/127531 "2008-01-30T03:47:20Z")

</div>

Hi, I get 500.html error, and have done everything: .htaccess, give all permissions, etc. It neither works on webrick (locally), nor on Apache (on http). (The public/index.html shows up, but if I go to any pages in …

---

## [Strange behavior with erb template and iteration](https://www.ruby-forum.com/t/strange-behavior-with-erb-template-and-iteration/127530)

<div class="topic-metadata">

**Author:** [@tom\_302](https://www.ruby-forum.com/u/tom_302)\
**Replies:** 1\
**Last updated:** [January 30, 2008, 2:52am UTC](https://www.ruby-forum.com/t/strange-behavior-with-erb-template-and-iteration/127530 "2008-01-30T02:52:27Z")

</div>

Hello, I’ve noticed a strange problem in my custom generator template. At the top of the template, I iterate through the attribute arguments to extract information and construct a Hash. Later in the template, I loo…

---

## [Restful\_authentication: redirecting if already logged in](https://www.ruby-forum.com/t/restful-authentication-redirecting-if-already-logged-in/127494)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [January 30, 2008, 12:44am UTC](https://www.ruby-forum.com/t/restful-authentication-redirecting-if-already-logged-in/127494 "2008-01-30T00:44:36Z")

</div>

Hi, If someone is already logged in, I would like to redirect them to a different page. I have that code in my app/controllers/ register\_controller.rb file: class RegisterController \< ApplicationController … def s…

---

## [Eager loading has\_many through](https://www.ruby-forum.com/t/eager-loading-has-many-through/196584)

<div class="topic-metadata">

**Author:** [@Tarscher](https://www.ruby-forum.com/u/Tarscher)\
**Replies:** 1\
**Last updated:** [January 30, 2008, 12:01am UTC](https://www.ruby-forum.com/t/eager-loading-has-many-through/196584 "2008-01-30T00:01:42Z")

</div>

hi all, My relationships: group habtm user and user has\_many events :through statistics. The statistics contains the id of user and is of event and additional data. How can I get all the users in a group with their…

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

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