# Rails

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

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

---

## [Rails Open Source Project](https://www.ruby-forum.com/t/rails-open-source-project/138508)

<div class="topic-metadata">

**Author:** [@railskid](https://www.ruby-forum.com/u/railskid)\
**Replies:** 2\
**Last updated:** [May 23, 2008, 9:18pm UTC](https://www.ruby-forum.com/t/rails-open-source-project/138508 "2008-05-23T21:18:49Z")

</div>

I’ve been learning Ruby and Rails in the last year or so. I am thinking about joining an open source project and start contributing. Which project would you recommend? Why? Any help is appreciated.

---

## [Software developer opening](https://www.ruby-forum.com/t/software-developer-opening/138504)

<div class="topic-metadata">

**Author:** [@ButlerS\_Debbie\_L](https://www.ruby-forum.com/u/ButlerS_Debbie_L)\
**Replies:** 2\
**Last updated:** [May 23, 2008, 9:00pm UTC](https://www.ruby-forum.com/t/software-developer-opening/138504 "2008-05-23T21:00:33Z")

</div>

Hi everyone, I am looking for a couple of software developers with ruby on rails experience. Can anyone help me? I would really appreciate it. I have one opening in Walla Walla Washington and one in Bend Oregon. T…

---

## [Static scaffolding and transactions](https://www.ruby-forum.com/t/static-scaffolding-and-transactions/138444)

<div class="topic-metadata">

**Author:** [@Alan\_Wong](https://www.ruby-forum.com/u/Alan_Wong)\
**Replies:** 2\
**Last updated:** [May 23, 2008, 8:29pm UTC](https://www.ruby-forum.com/t/static-scaffolding-and-transactions/138444 "2008-05-23T20:29:25Z")

</div>

Hi, I’m a Java/J2EE developer that is new to Rails. I’ve read through most of AWD with Rails so that I have a basic understanding of what Active Record can do. I’ve also done a bit of reading up on the switch to REST…

---

## [Any rake task to add licences on top of files?](https://www.ruby-forum.com/t/any-rake-task-to-add-licences-on-top-of-files/138489)

<div class="topic-metadata">

**Author:** [@MohsinHijazee](https://www.ruby-forum.com/u/MohsinHijazee)\
**Replies:** 2\
**Last updated:** [May 23, 2008, 7:12pm UTC](https://www.ruby-forum.com/t/any-rake-task-to-add-licences-on-top-of-files/138489 "2008-05-23T19:12:02Z")

</div>

Hi! I need to release my code under some open source license (yet to be decided) so is there any rake task available that can automatically add license headers to all my models, controllers, tests, fixtures and plugi…

---

## [Pre-generate assets in Rails 2.0](https://www.ruby-forum.com/t/pre-generate-assets-in-rails-2-0/138416)

<div class="topic-metadata">

**Author:** [@Fredrik](https://www.ruby-forum.com/u/Fredrik)\
**Replies:** 1\
**Last updated:** [May 23, 2008, 5:01pm UTC](https://www.ruby-forum.com/t/pre-generate-assets-in-rails-2-0/138416 "2008-05-23T17:01:25Z")

</div>

Is there any way to pre-generate the assets in Rails 2.0 instead of having them generated on the first request? (I’m referring to this behavior: \<%=stylesheet\_include\_tag, ‘test’, :cache =\> true %\>) Thanks, -Fredrik

---

## [Session madness \*argh\*](https://www.ruby-forum.com/t/session-madness-argh/138486)

<div class="topic-metadata">

**Author:** [@michael\_teter](https://www.ruby-forum.com/u/michael_teter)\
**Replies:** 3\
**Last updated:** [May 23, 2008, 4:54pm UTC](https://www.ruby-forum.com/t/session-madness-argh/138486 "2008-05-23T16:54:16Z")

</div>

Environment: Rails 2.0.2; cookie-based sessions (as far as I know… I added the two appropriate lines to environment.rb) Problem: I’m getting inconsistent results storing things in the session. For example, I create a…

---

## [Gem fetching error](https://www.ruby-forum.com/t/gem-fetching-error/135950)

<div class="topic-metadata">

**Author:** [@zenny](https://www.ruby-forum.com/u/zenny)\
**Replies:** 1\
**Last updated:** [May 23, 2008, 4:14pm UTC](https://www.ruby-forum.com/t/gem-fetching-error/135950 "2008-05-23T16:14:57Z")

</div>

I am trying to install some application using gem, but I keep on getting the error. I tried with ‘gem clean’ and ‘gem update’. The latter gives the following error (the same error is replicable when I try any ruby app…

---

## [Issue with validates\_uniqueness\_of](https://www.ruby-forum.com/t/issue-with-validates-uniqueness-of/138440)

<div class="topic-metadata">

**Author:** [@skirkpatrick](https://www.ruby-forum.com/u/skirkpatrick)\
**Replies:** 1\
**Last updated:** [May 23, 2008, 3:40pm UTC](https://www.ruby-forum.com/t/issue-with-validates-uniqueness-of/138440 "2008-05-23T15:40:21Z")

</div>

so heres some of my code: class Item \< ActiveRecord::Base belongs\_to :item\_type validates\_uniqueness\_of :name … the issue i think i’m having is that I have another table which also has a column ‘name’ which i am u…

---

## [Validate on create but I don't save to DB](https://www.ruby-forum.com/t/validate-on-create-but-i-dont-save-to-db/138479)

<div class="topic-metadata">

**Author:** [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Replies:** 4\
**Last updated:** [May 23, 2008, 3:40pm UTC](https://www.ruby-forum.com/t/validate-on-create-but-i-dont-save-to-db/138479 "2008-05-23T15:40:11Z")

</div>

Hi, I want to do a simple thing: Validate a form so it raises an error when a field is empty. The thing is that I don’t save the contents of that form into DB. What I’ve done is: 1- Add model like this: class Passw…

---

## [How to save data in database](https://www.ruby-forum.com/t/how-to-save-data-in-database/135880)

<div class="topic-metadata">

**Author:** [@manish](https://www.ruby-forum.com/u/manish)\
**Replies:** 7\
**Last updated:** [May 23, 2008, 3:21pm UTC](https://www.ruby-forum.com/t/how-to-save-data-in-database/135880 "2008-05-23T15:21:52Z")

</div>

hi i m new to ROR…I want to save my data in my table… i created form like this… \<% form\_tag :action =\> “create” do %\> User Name : \<%= text\_field 'user', 'name' %\> Password : \<%= password\_field 'user', 'password' %\> \<…

---

## [NameError in UsersController#new](https://www.ruby-forum.com/t/nameerror-in-userscontroller-new/138481)

<div class="topic-metadata">

**Author:** [@bartee](https://www.ruby-forum.com/u/bartee)\
**Replies:** 1\
**Last updated:** [May 23, 2008, 3:15pm UTC](https://www.ruby-forum.com/t/nameerror-in-userscontroller-new/138481 "2008-05-23T15:15:58Z")

</div>

I am getting this error on new generated scaffold. Rails 2.0.2 single db table. Any Idea’s

---

## [Activerecord's virtual attribute in find's array](https://www.ruby-forum.com/t/activerecords-virtual-attribute-in-finds-array/138482)

<div class="topic-metadata">

**Author:** [@jags](https://www.ruby-forum.com/u/jags)\
**Replies:** 1\
**Last updated:** [May 23, 2008, 3:11pm UTC](https://www.ruby-forum.com/t/activerecords-virtual-attribute-in-finds-array/138482 "2008-05-23T15:11:15Z")

</div>

hi guys i have a product model with many columns like cat1,cat2,cat3,name,desc,price,qty etc. along with that i have a virtual attribute call full\_name in model attr\_accessor :full\_name def full\_name cat1+cat2+cat3…

---

## [Counter cache](https://www.ruby-forum.com/t/counter-cache/138483)

<div class="topic-metadata">

**Author:** [@Dmitrij\_S](https://www.ruby-forum.com/u/Dmitrij_S)\
**Replies:** 0\
**Last updated:** [May 23, 2008, 3:02pm UTC](https://www.ruby-forum.com/t/counter-cache/138483 "2008-05-23T15:02:22Z")

</div>

class Category has\_many :clips end class Clip belongs\_to :category, :counter\_cache = \> true named\_scope :converted, :conditions =\> {:converted =\> true} end How to update counters if clip changes its category\_id ? …

---

## [Date Field Validation](https://www.ruby-forum.com/t/date-field-validation/138394)

<div class="topic-metadata">

**Author:** [@mrbless](https://www.ruby-forum.com/u/mrbless)\
**Replies:** 2\
**Last updated:** [May 23, 2008, 2:48pm UTC](https://www.ruby-forum.com/t/date-field-validation/138394 "2008-05-23T14:48:12Z")

</div>

I have to fields in database start\_date and end\_date. What I want to validate is that start\_date must be less than end\_date. I want the model level validation . Please help me.

---

## [Tricky data pivot problem](https://www.ruby-forum.com/t/tricky-data-pivot-problem/138454)

<div class="topic-metadata">

**Author:** [@steveoco](https://www.ruby-forum.com/u/steveoco)\
**Replies:** 2\
**Last updated:** [May 23, 2008, 1:46pm UTC](https://www.ruby-forum.com/t/tricky-data-pivot-problem/138454 "2008-05-23T13:46:52Z")

</div>

So I’ve come at this a couple of ways, but all of my solutions look awful, and I’m betting there’s a (more) elegant way to do this. I’m sure there’s an array jocky who knows how to do this elegantly. Notice that there…

---

## [Gem update --system](https://www.ruby-forum.com/t/gem-update-system/138449)

<div class="topic-metadata">

**Author:** [@giorgio](https://www.ruby-forum.com/u/giorgio)\
**Replies:** 3\
**Last updated:** [May 23, 2008, 12:37pm UTC](https://www.ruby-forum.com/t/gem-update-system/138449 "2008-05-23T12:37:21Z")

</div>

I just installed the RMagick gem. The instructions said do a “gem update --system” first so I did. I rebooted afterwards. Now I cant even run mongrel This is on windows. the errors are: …/InstantRails\_1\_7\_Dev/ruby/l…

---

## [Prevent deleting foreign key](https://www.ruby-forum.com/t/prevent-deleting-foreign-key/138468)

<div class="topic-metadata">

**Author:** [@sschunselaar](https://www.ruby-forum.com/u/sschunselaar)\
**Replies:** 3\
**Last updated:** [May 23, 2008, 11:58am UTC](https://www.ruby-forum.com/t/prevent-deleting-foreign-key/138468 "2008-05-23T11:58:29Z")

</div>

I’ve a Report and ReportType. The Report has one ReportType. Now I want prevent deleting of used ReportTypes. This is my ReportType class: class ReportType \< ActiveRecord::Base validates\_presence\_of(:name); has\_many…

---

## [Increment field within scope](https://www.ruby-forum.com/t/increment-field-within-scope/138473)

<div class="topic-metadata">

**Author:** [@apie](https://www.ruby-forum.com/u/apie)\
**Replies:** 0\
**Last updated:** [May 23, 2008, 11:41am UTC](https://www.ruby-forum.com/t/increment-field-within-scope/138473 "2008-05-23T11:41:25Z")

</div>

Hi I have the following scenario: A company has an account. Each account has many users. Users can make posts. Posts will obviously have an .id field that autoincrements. However, I want a field, say post\_number, …

---

## [Backgroundrb problems?](https://www.ruby-forum.com/t/backgroundrb-problems/196691)

<div class="topic-metadata">

**Author:** [@varunkumargoel](https://www.ruby-forum.com/u/varunkumargoel)\
**Replies:** 0\
**Last updated:** [May 23, 2008, 11:25am UTC](https://www.ruby-forum.com/t/backgroundrb-problems/196691 "2008-05-23T11:25:03Z")

</div>

Hi All, I wanna use backgroundrb for running my scheduler task but the newer version is not working on windows.Then i am using version from svn://rubyforge.org//var/svn/backgroundrb Please help me and tell can i use …

---

## [How to get the checkbox value](https://www.ruby-forum.com/t/how-to-get-the-checkbox-value/138238)

<div class="topic-metadata">

**Author:** [@gaurav\_dua123](https://www.ruby-forum.com/u/gaurav_dua123)\
**Replies:** 4\
**Last updated:** [May 23, 2008, 11:24am UTC](https://www.ruby-forum.com/t/how-to-get-the-checkbox-value/138238 "2008-05-23T11:24:44Z")

</div>

Hi i am trying to made a grossery application… here in this application i am using checkbox for the items. suppose there are 5 items in the page for example… in the first checkbox let’s say tea, 2 checkbox Coffee… 3…

---

## [N00b question on passing parameters to a webservice](https://www.ruby-forum.com/t/n00b-question-on-passing-parameters-to-a-webservice/138369)

<div class="topic-metadata">

**Author:** [@Rey9999](https://www.ruby-forum.com/u/Rey9999)\
**Replies:** 4\
**Last updated:** [May 23, 2008, 10:36am UTC](https://www.ruby-forum.com/t/n00b-question-on-passing-parameters-to-a-webservice/138369 "2008-05-23T10:36:09Z")

</div>

Let us say I have a webservice method: api\_method :login, :expects =\> \[:name=\>:string, :password=\>:string\], :returns =\> \[:int\] defined as: def login(name, password) #do something here and returns an int end how d…

---

## [Getting ServerIP Dynamically](https://www.ruby-forum.com/t/getting-serverip-dynamically/138344)

<div class="topic-metadata">

**Author:** [@MrSBless](https://www.ruby-forum.com/u/MrSBless)\
**Replies:** 8\
**Last updated:** [May 23, 2008, 10:32am UTC](https://www.ruby-forum.com/t/getting-serverip-dynamically/138344 "2008-05-23T10:32:36Z")

</div>

How to get the server Ip address dynamically.

---

## [Http 405 method not allowed error calling a webservice](https://www.ruby-forum.com/t/http-405-method-not-allowed-error-calling-a-webservice/138393)

<div class="topic-metadata">

**Author:** [@Rey9999](https://www.ruby-forum.com/u/Rey9999)\
**Replies:** 1\
**Last updated:** [May 23, 2008, 10:30am UTC](https://www.ruby-forum.com/t/http-405-method-not-allowed-error-calling-a-webservice/138393 "2008-05-23T10:30:14Z")

</div>

Hello everyone, I am experiencing some difficulties with a web service I’m creating. This webservice has a login method which checks some credentials against an user database. Everything works beautifully so far. Now…

---

## [Wanna send a picture in a mail using ROR](https://www.ruby-forum.com/t/wanna-send-a-picture-in-a-mail-using-ror/138365)

<div class="topic-metadata">

**Author:** [@stone](https://www.ruby-forum.com/u/stone)\
**Replies:** 2\
**Last updated:** [May 23, 2008, 10:26am UTC](https://www.ruby-forum.com/t/wanna-send-a-picture-in-a-mail-using-ror/138365 "2008-05-23T10:26:43Z")

</div>

Hello , I got trouble here and need assist here ! All I wanna do is to send a \[text/html\] content-typed mail I want to use the \[send\_data\] method to send the pic(id = 1 , name =‘aa’ , data, type= ‘jpeg’) from my datab…

---

## [Rails Conf 2008](https://www.ruby-forum.com/t/rails-conf-2008/138462)

<div class="topic-metadata">

**Author:** [@Macel](https://www.ruby-forum.com/u/Macel)\
**Replies:** 0\
**Last updated:** [May 23, 2008, 9:46am UTC](https://www.ruby-forum.com/t/rails-conf-2008/138462 "2008-05-23T09:46:08Z")

</div>

Happening next week! See you guys there.

---

## [Acts\_as\_ferret with Drb :](https://www.ruby-forum.com/t/acts-as-ferret-with-drb/138414)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [May 23, 2008, 8:39am UTC](https://www.ruby-forum.com/t/acts-as-ferret-with-drb/138414 "2008-05-23T08:39:38Z")

</div>

Hi, I try to deploy an application using ferret and acts\_as\_ferret. It’s ok in devevelpment (Win) and production (Ubuntu) mode without Drb. But when I enable Drb, acts\_as\_ferret create troubles. I get a message : fe…

---

## [Paginating 3 arrays of 3 differnet model](https://www.ruby-forum.com/t/paginating-3-arrays-of-3-differnet-model/138455)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 1\
**Last updated:** [May 23, 2008, 8:19am UTC](https://www.ruby-forum.com/t/paginating-3-arrays-of-3-differnet-model/138455 "2008-05-23T08:19:55Z")

</div>

Hi I have there arrays i get like below in controller @hardware\_cis=HardwareCi.find\_where(:all) @software\_cis=SoftwareCi.find\_where(:all) @document\_cis= documentCi.find\_where(:all) The above I have to rearrange to g…

---

## [Paginate trouble](https://www.ruby-forum.com/t/paginate-trouble/138420)

<div class="topic-metadata">

**Author:** [@df-sean](https://www.ruby-forum.com/u/df-sean)\
**Replies:** 8\
**Last updated:** [May 23, 2008, 7:33am UTC](https://www.ruby-forum.com/t/paginate-trouble/138420 "2008-05-23T07:33:07Z")

</div>

Well, I added will\_paginate to my application. Though when I attempt to use I get an action controller error. here is the app/controller/community\_controller file I created: class CommunityController \< ApplicationCon…

---

## [How to package a plugin and publish it](https://www.ruby-forum.com/t/how-to-package-a-plugin-and-publish-it/138437)

<div class="topic-metadata">

**Author:** [@pbn](https://www.ruby-forum.com/u/pbn)\
**Replies:** 3\
**Last updated:** [May 23, 2008, 7:08am UTC](https://www.ruby-forum.com/t/how-to-package-a-plugin-and-publish-it/138437 "2008-05-23T07:08:13Z")

</div>

Hi, I searched this forum as well as googled for documentation on how to package a plugin, couldn’t find any. May be I missed documentation about it, I really appreciate for any pointers to doc/tutorial or steps for …

---

## [Artificially setting an association?](https://www.ruby-forum.com/t/artificially-setting-an-association/138450)

<div class="topic-metadata">

**Author:** [@Christopher\_JSBott](https://www.ruby-forum.com/u/Christopher_JSBott)\
**Replies:** 1\
**Last updated:** [May 23, 2008, 7:02am UTC](https://www.ruby-forum.com/t/artificially-setting-an-association/138450 "2008-05-23T07:02:58Z")

</div>

Hello. I want to be able to set what’s in an association without Rails trying to update the database. Assume a Page has many Links. I want to be able to say this… page = Page.find :first links = Links.find :all, :c…

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

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