# Rails

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

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

---

## [Report](https://www.ruby-forum.com/t/report/154204)

<div class="topic-metadata">

**Author:** [@subhadip](https://www.ruby-forum.com/u/subhadip)\
**Replies:** 1\
**Last updated:** [November 27, 2008, 8:00am UTC](https://www.ruby-forum.com/t/report/154204 "2008-11-27T08:00:00Z")

</div>

Hi, i am currently working on how we generate report in ruby on rails. i follow ‘Ruport’ for generating report in ruby on rails,but when i give the command gem install acts\_as\_reportable,it gives an error ruport requ…

---

## [Constructing current\_user.recipes for administrators?](https://www.ruby-forum.com/t/constructing-current-user-recipes-for-administrators/154192)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 1\
**Last updated:** [November 27, 2008, 7:52am UTC](https://www.ruby-forum.com/t/constructing-current-user-recipes-for-administrators/154192 "2008-11-27T07:52:24Z")

</div>

I’m using the restful\_authentication’s current\_user. So to find a user’s recipes, I use: current\_user.recipes I want the admin (I have an “admin” column in the users table) to view all recipes. I’m doing this right n…

---

## [Different boolean expression evaluation between rspec(view) and rails environments](https://www.ruby-forum.com/t/different-boolean-expression-evaluation-between-rspec-view-and-rails-environments/154227)

<div class="topic-metadata">

**Author:** [@pradeepgatram](https://www.ruby-forum.com/u/pradeepgatram)\
**Replies:** 1\
**Last updated:** [November 27, 2008, 5:59am UTC](https://www.ruby-forum.com/t/different-boolean-expression-evaluation-between-rspec-view-and-rails-environments/154227 "2008-11-27T05:59:33Z")

</div>

Hi, Maybe its just too late in the day and I should stop :). But I am stuck at a very weird issue. Here is an excerpt from my erb file \<% display\_invisible\_content = !icon.nil? or (render\_detach and entity.mounted?…

---

## [Autodidacticism Collaboration with RoR](https://www.ruby-forum.com/t/autodidacticism-collaboration-with-ror/196850)

<div class="topic-metadata">

**Author:** [@MrSWatson](https://www.ruby-forum.com/u/MrSWatson)\
**Replies:** 0\
**Last updated:** [November 27, 2008, 4:52am UTC](https://www.ruby-forum.com/t/autodidacticism-collaboration-with-ror/196850 "2008-11-27T04:52:21Z")

</div>

Hello, I am a newbie learning Ruby on Rails. In my perspective, it is better to learn with groups than one single person. If anyone is interested learning Ruby on Rails from the ground up please contact me. PS: I on…

---

## [Date\_select vs wrong date weird behavior](https://www.ruby-forum.com/t/date-select-vs-wrong-date-weird-behavior/152232)

<div class="topic-metadata">

**Author:** [@rgagnon](https://www.ruby-forum.com/u/rgagnon)\
**Replies:** 3\
**Last updated:** [November 27, 2008, 4:07am UTC](https://www.ruby-forum.com/t/date-select-vs-wrong-date-weird-behavior/152232 "2008-11-27T04:07:21Z")

</div>

In my date\_select if I choose 31 april 2008, it converts it for 1st may 2008 which it seems odd for me? I say odd because first its difficult to validate at the model level, I have to hook some code in the controller …

---

## [Struggling with restfulness](https://www.ruby-forum.com/t/struggling-with-restfulness/154146)

<div class="topic-metadata">

**Author:** [@crumb](https://www.ruby-forum.com/u/crumb)\
**Replies:** 3\
**Last updated:** [November 27, 2008, 3:37am UTC](https://www.ruby-forum.com/t/struggling-with-restfulness/154146 "2008-11-27T03:37:28Z")

</div>

Hello friends, I could need some advice on how to proceed with my controllers. GUI shows a calendar, I therefore need to setup a resource to show the calendar. So I write a CalendarController. User should be able…

---

## [Two belongs\_to relationship](https://www.ruby-forum.com/t/two-belongs-to-relationship/154185)

<div class="topic-metadata">

**Author:** [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Replies:** 2\
**Last updated:** [November 27, 2008, 1:40am UTC](https://www.ruby-forum.com/t/two-belongs-to-relationship/154185 "2008-11-27T01:40:34Z")

</div>

I have three models:User,Action,Comment.User have has\_many relation with the Action,this is true.A user can make many comments for different action,an action can have many comments belonging to it.So can i use two ha…

---

## [Problem viewing my hello world app](https://www.ruby-forum.com/t/problem-viewing-my-hello-world-app/154259)

<div class="topic-metadata">

**Author:** [@mrmaster](https://www.ruby-forum.com/u/mrmaster)\
**Replies:** 1\
**Last updated:** [November 26, 2008, 11:56pm UTC](https://www.ruby-forum.com/t/problem-viewing-my-hello-world-app/154259 "2008-11-26T23:56:26Z")

</div>

Hi, I’ve created a hello world app that i want to view but i get CGI::Session::CookieStore::TamperedWithCookie error in the browser when i run it. I copied everything in my browswer below and I’ve also listed the ste…

---

## [Named scope and order overriding](https://www.ruby-forum.com/t/named-scope-and-order-overriding/154262)

<div class="topic-metadata">

**Author:** [@deadinplastic](https://www.ruby-forum.com/u/deadinplastic)\
**Replies:** 1\
**Last updated:** [November 26, 2008, 11:56pm UTC](https://www.ruby-forum.com/t/named-scope-and-order-overriding/154262 "2008-11-26T23:56:05Z")

</div>

Hi everyone, My question is: How do I override named\_scope settings rather than merge with them? Say I have a model Vehicles It has a named\_scope called red\_trucks that sets some filters and an order by id. Now let…

---

## [OpenID authentication](https://www.ruby-forum.com/t/openid-authentication/153942)

<div class="topic-metadata">

**Author:** [@PanosJee](https://www.ruby-forum.com/u/PanosJee)\
**Replies:** 5\
**Last updated:** [November 26, 2008, 11:03pm UTC](https://www.ruby-forum.com/t/openid-authentication/153942 "2008-11-26T23:03:40Z")

</div>

Hi there, I am trying to use the OpenID authentication plugin of DHH in conjuction with ruby-openid 2.1.2 gem put it seems there is a problem because in my login action the plugin redirects me to the openid provider a…

---

## [Return response\['location'\]](https://www.ruby-forum.com/t/return-response-location/154037)

<div class="topic-metadata">

**Author:** [@tony](https://www.ruby-forum.com/u/tony)\
**Replies:** 8\
**Last updated:** [November 26, 2008, 10:31pm UTC](https://www.ruby-forum.com/t/return-response-location/154037 "2008-11-26T22:31:23Z")

</div>

I’m building an extension to an existing Rails app but have hit a problem the developers cannot seem to help me with. From a javascript- based shadowbox, I post an addition to a RDF triplestore via a proxy call: with…

---

## [Testing rjs redirects](https://www.ruby-forum.com/t/testing-rjs-redirects/154236)

<div class="topic-metadata">

**Author:** [@mabi3b](https://www.ruby-forum.com/u/mabi3b)\
**Replies:** 6\
**Last updated:** [November 26, 2008, 9:56pm UTC](https://www.ruby-forum.com/t/testing-rjs-redirects/154236 "2008-11-26T21:56:46Z")

</div>

I’m trying to test the following code: render :update do |page| @story.destroy flash\[:status\] = "Story \\"#{@story.title}\\" has been deleted." page.redirect\_to request.referer end I know that assert\_redirected doe…

---

## [Accessing a file with normal Ruby IO fails. Security issue of what?](https://www.ruby-forum.com/t/accessing-a-file-with-normal-ruby-io-fails-security-issue-of-what/153924)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 6\
**Last updated:** [November 26, 2008, 9:27pm UTC](https://www.ruby-forum.com/t/accessing-a-file-with-normal-ruby-io-fails-security-issue-of-what/153924 "2008-11-26T21:27:57Z")

</div>

Hi, I’m developing a small Rails 2.2.0 app. I have a slightly modified scaffold-generated file, PayrollSys\\app\\controllers\\cvs\_items\_controller.rb, as follows: class CvsItemsController \< ApplicationController GET …

---

## [Looking for a plugin that does multi-list/select managment](https://www.ruby-forum.com/t/looking-for-a-plugin-that-does-multi-list-select-managment/154252)

<div class="topic-metadata">

**Author:** [@daveelman](https://www.ruby-forum.com/u/daveelman)\
**Replies:** 0\
**Last updated:** [November 26, 2008, 8:26pm UTC](https://www.ruby-forum.com/t/looking-for-a-plugin-that-does-multi-list-select-managment/154252 "2008-11-26T20:26:54Z")

</div>

Hi I’m looking for a plugin that will take the pain out of constantly re-implementing a UI ‘functionality’ (for lack of a better term) that I’m using often. This functionality consists of two select (listboxes) - sid…

---

## [Collection\_select problem](https://www.ruby-forum.com/t/collection-select-problem/154245)

<div class="topic-metadata">

**Author:** [@chimorito](https://www.ruby-forum.com/u/chimorito)\
**Replies:** 2\
**Last updated:** [November 26, 2008, 7:42pm UTC](https://www.ruby-forum.com/t/collection-select-problem/154245 "2008-11-26T19:42:52Z")

</div>

Hi, first and foremost sorry if my english is not the best. I want to choose between somo products in a view. I have tickets and i wanna add tickets\_products. 1)ruby script/generate scaffold ticket\_product name:string …

---

## [Passing form information](https://www.ruby-forum.com/t/passing-form-information/154234)

<div class="topic-metadata">

**Author:** [@Sean\_McGilvray](https://www.ruby-forum.com/u/Sean_McGilvray)\
**Replies:** 8\
**Last updated:** [November 26, 2008, 7:27pm UTC](https://www.ruby-forum.com/t/passing-form-information/154234 "2008-11-26T19:27:04Z")

</div>

Hello everyone I am new to RoR and I was wanting to know how to pass form information (first\_name, last\_name, phone\_number, and email) to a session so that I can use them in another form later? Thank you

---

## [Drag and drop replace html](https://www.ruby-forum.com/t/drag-and-drop-replace-html/154167)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [November 26, 2008, 7:27pm UTC](https://www.ruby-forum.com/t/drag-and-drop-replace-html/154167 "2008-11-26T19:27:04Z")

</div>

I have this: \<%= drop\_receiving\_element :slot2, {:onDrop =\> “function(element) { $(‘slot2’).replace(’ + element + ’ ).addClassName (‘cardfill’); }”} %\> I am trying to replace the data ina table but when I try this i…

---

## [\[JOB\] Front-End Rails Developer, SF - Relo OK | 90-150k](https://www.ruby-forum.com/t/job-front-end-rails-developer-sf-relo-ok-90-150k/154251)

<div class="topic-metadata">

**Author:** [@superiorss](https://www.ruby-forum.com/u/superiorss)\
**Replies:** 0\
**Last updated:** [November 26, 2008, 7:20pm UTC](https://www.ruby-forum.com/t/job-front-end-rails-developer-sf-relo-ok-90-150k/154251 "2008-11-26T19:20:11Z")

</div>

Job Title: Front-End Rails Developer Location: San Francisco - Relocation assistance provided Duration: Full Time/Permanent Salary: 90-150k DOE \*\*\* Applicants coming from big name companies like Yahoo!, Google, Amaz…

---

## [Conditional expire\_fragment](https://www.ruby-forum.com/t/conditional-expire-fragment/154250)

<div class="topic-metadata">

**Author:** [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Replies:** 0\
**Last updated:** [November 26, 2008, 6:51pm UTC](https://www.ruby-forum.com/t/conditional-expire-fragment/154250 "2008-11-26T18:51:18Z")

</div>

I just recently implemented caching on my site, and i have a sweeper attached to my :update action, to clear my index (which shows top ranked items). Is it possible to first check to see if there is a change, and only…

---

## [Storing URL locations](https://www.ruby-forum.com/t/storing-url-locations/154239)

<div class="topic-metadata">

**Author:** [@elioncho](https://www.ruby-forum.com/u/elioncho)\
**Replies:** 2\
**Last updated:** [November 26, 2008, 5:54pm UTC](https://www.ruby-forum.com/t/storing-url-locations/154239 "2008-11-26T17:54:41Z")

</div>

I have a friendship system where users can create new friendships from different views. The idea is to redirect them to where they initially requested, accepted, etc… the friendship. To do this, I need to store the UR…

---

## [\[ANN\] 2 social events around Paris on Rails](https://www.ruby-forum.com/t/ann-2-social-events-around-paris-on-rails/154243)

<div class="topic-metadata">

**Author:** [@Jean-FranSSSSois\_Tr](https://www.ruby-forum.com/u/Jean-FranSSSSois_Tr)\
**Replies:** 1\
**Last updated:** [November 26, 2008, 5:48pm UTC](https://www.ruby-forum.com/t/ann-2-social-events-around-paris-on-rails/154243 "2008-11-26T17:48:09Z")

</div>

\[If you come to Paris on Rails on monday, this announce may interest you.\] Hello, Ruby France user group \[1\] will organize a Rails Party - as a before\_filter to Paris on Rails conference \[2\], sunday, november the 3…

---

## [RForum on Rails 2.x](https://www.ruby-forum.com/t/rforum-on-rails-2-x/154120)

<div class="topic-metadata">

**Author:** [@mohits](https://www.ruby-forum.com/u/mohits)\
**Replies:** 1\
**Last updated:** [November 26, 2008, 5:46pm UTC](https://www.ruby-forum.com/t/rforum-on-rails-2-x/154120 "2008-11-26T17:46:23Z")

</div>

Hi! Has anyone tried to/ is running RForum on Rails 2.x? At least as deployed to Ruby Forum, it seems super fast with multiple forums, has good follow-up features (e-mail), a decent messaging system between users, ve…

---

## [Blackbook gem 1.0.4 and Rails 2.0.2](https://www.ruby-forum.com/t/blackbook-gem-1-0-4-and-rails-2-0-2/154187)

<div class="topic-metadata">

**Author:** [@ndgiang84](https://www.ruby-forum.com/u/ndgiang84)\
**Replies:** 1\
**Last updated:** [November 26, 2008, 5:44pm UTC](https://www.ruby-forum.com/t/blackbook-gem-1-0-4-and-rails-2-0-2/154187 "2008-11-26T17:44:02Z")

</div>

suddenly i realized my application get no emails with Hotmail. only names show up, and no emails. maybe Hotmail changes their way to store data, so Blackbook can’t get the correct information no more? so is there any…

---

## [Multple domains, same application, different CSS, some over-rides](https://www.ruby-forum.com/t/multple-domains-same-application-different-css-some-over-rides/154209)

<div class="topic-metadata">

**Author:** [@icke](https://www.ruby-forum.com/u/icke)\
**Replies:** 3\
**Last updated:** [November 26, 2008, 5:41pm UTC](https://www.ruby-forum.com/t/multple-domains-same-application-different-css-some-over-rides/154209 "2008-11-26T17:41:06Z")

</div>

I am building a site that will have several different branded versions of the same site in order to do some SEO coverage. e.g www.foo.com, www.foo.co.uk and www.bar.com There are many discussions on sub-domains but …

---

## [How do I use Git bundle in Textmate?](https://www.ruby-forum.com/t/how-do-i-use-git-bundle-in-textmate/154240)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 0\
**Last updated:** [November 26, 2008, 5:32pm UTC](https://www.ruby-forum.com/t/how-do-i-use-git-bundle-in-textmate/154240 "2008-11-26T17:32:09Z")

</div>

How do I make add with the git bundle in Textmate? Can’t find that command in the bundle. And how I check the status of the app, not just the open file? When no file is open the git bundle is grayed out.

---

## [X\_send\_file - What is file path?](https://www.ruby-forum.com/t/x-send-file-what-is-file-path/154237)

<div class="topic-metadata">

**Author:** [@meltingmind](https://www.ruby-forum.com/u/meltingmind)\
**Replies:** 1\
**Last updated:** [November 26, 2008, 5:25pm UTC](https://www.ruby-forum.com/t/x-send-file-what-is-file-path/154237 "2008-11-26T17:25:12Z")

</div>

Hello. I’m using x\_send\_file plugin with Apache on a production server, but I don’t seem to have the right path to the file I want to download. I searched this forum for clues, but I can’t find the answer. This doe…

---

## [I wanna submit a patch for migration rake](https://www.ruby-forum.com/t/i-wanna-submit-a-patch-for-migration-rake/154182)

<div class="topic-metadata">

**Author:** [@goodwill](https://www.ruby-forum.com/u/goodwill)\
**Replies:** 1\
**Last updated:** [November 26, 2008, 5:12pm UTC](https://www.ruby-forum.com/t/i-wanna-submit-a-patch-for-migration-rake/154182 "2008-11-26T17:12:51Z")

</div>

As title, too bad I don’t have experience on this one, anyone could help? Here is my patch: desc 'Runs the "up" for a given migration VERSION.' task :up =\> :environment do version= if ENV\["NAME"\] get\_migrate\_t…

---

## [Map.root question](https://www.ruby-forum.com/t/map-root-question/154233)

<div class="topic-metadata">

**Author:** [@cojones](https://www.ruby-forum.com/u/cojones)\
**Replies:** 0\
**Last updated:** [November 26, 2008, 5:00pm UTC](https://www.ruby-forum.com/t/map-root-question/154233 "2008-11-26T17:00:44Z")

</div>

Heya, I’m asking myself what the best method is to use map.root. I have a table called page with various pages in it. Default is: map.root :controller =\> ‘pages’ …would take me to the index. I don’t want that. map.…

---

## [Best Configuration for attachment fu (images)](https://www.ruby-forum.com/t/best-configuration-for-attachment-fu-images/154232)

<div class="topic-metadata">

**Author:** [@elioncho](https://www.ruby-forum.com/u/elioncho)\
**Replies:** 0\
**Last updated:** [November 26, 2008, 4:55pm UTC](https://www.ruby-forum.com/t/best-configuration-for-attachment-fu-images/154232 "2008-11-26T16:55:46Z")

</div>

Hello, Well I’ll like to know which is the best configuration or the most used (standard) when uploading images via attachment fu (or related). In particular I’ll like to know which is the best resizing option and th…

---

## [Class Variable accessibility in multiple rails instance](https://www.ruby-forum.com/t/class-variable-accessibility-in-multiple-rails-instance/154231)

<div class="topic-metadata">

**Author:** [@joserwan](https://www.ruby-forum.com/u/joserwan)\
**Replies:** 1\
**Last updated:** [November 26, 2008, 4:55pm UTC](https://www.ruby-forum.com/t/class-variable-accessibility-in-multiple-rails-instance/154231 "2008-11-26T16:55:46Z")

</div>

Hello, I have a rails application, wich display data from database. I have a ruby script wich load rails environment and fill the database. I would like to do a cache system for the model X, while my ruby script put…

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

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