# Rails

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

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

---

## [Problem with routes.rb in rails 2.3.2](https://www.ruby-forum.com/t/problem-with-routes-rb-in-rails-2-3-2/172168)

<div class="topic-metadata">

**Author:** [@sultan](https://www.ruby-forum.com/u/sultan)\
**Replies:** 4\
**Last updated:** [July 20, 2009, 3:53pm UTC](https://www.ruby-forum.com/t/problem-with-routes-rb-in-rails-2-3-2/172168 "2009-07-20T15:53:29Z")

</div>

Problem with routes.rb in rails 2.3.2: The problems occurs if the rails version is “frozen” or not. I get the same problem when the routes are present in the routes.rb file. In order to try to figure out the problem, …

---

## [Rdiscount Deadlock!](https://www.ruby-forum.com/t/rdiscount-deadlock/171785)

<div class="topic-metadata">

**Author:** [@mka](https://www.ruby-forum.com/u/mka)\
**Replies:** 6\
**Last updated:** [July 20, 2009, 3:49pm UTC](https://www.ruby-forum.com/t/rdiscount-deadlock/171785 "2009-07-20T15:49:58Z")

</div>

rdiscount-1.3.1.1 is uninstallable on solaris root@dcb0:/opt/gitorious# gem install rdiscount -v 1.3.1.1 Building native extensions. This could take a while… ERROR: Error installing rdiscount: ERROR: Failed to bui…

---

## [Model.destroy(array of ids) Bug](https://www.ruby-forum.com/t/model-destroy-array-of-ids-bug/172363)

<div class="topic-metadata">

**Author:** [@san2821](https://www.ruby-forum.com/u/san2821)\
**Replies:** 2\
**Last updated:** [July 20, 2009, 2:28pm UTC](https://www.ruby-forum.com/t/model-destroy-array-of-ids-bug/172363 "2009-07-20T14:28:45Z")

</div>

Hello friends ! Model.destroy(array of ids) gives record not found error in Internet Explorer. Sandip R~ – Ruby on Rails Developer

---

## [CSS issue when using SubUri and Passenger](https://www.ruby-forum.com/t/css-issue-when-using-suburi-and-passenger/172369)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 1\
**Last updated:** [July 20, 2009, 2:10pm UTC](https://www.ruby-forum.com/t/css-issue-when-using-suburi-and-passenger/172369 "2009-07-20T14:10:38Z")

</div>

I am testing another application in local in my environment.rb I wrote config.action\_controller.relative\_url\_root = “/elnino” config.action\_controller.asset\_host = “http://opticoaching.local” I defined correctly the…

---

## [Render :file in another window](https://www.ruby-forum.com/t/render-file-in-another-window/172367)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 2\
**Last updated:** [July 20, 2009, 12:45pm UTC](https://www.ruby-forum.com/t/render-file-in-another-window/172367 "2009-07-20T12:45:06Z")

</div>

is there a way to render a file in another window I wrote : def show @asset = Asset.find(params\[:id\]) respond\_to do |format| format.html format.xml { render :xml =\> @asset } format.pdf {render :file =\> @asset.…

---

## [Downloadable docs?](https://www.ruby-forum.com/t/downloadable-docs/172342)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [July 20, 2009, 11:32am UTC](https://www.ruby-forum.com/t/downloadable-docs/172342 "2009-07-20T11:32:14Z")

</div>

I havent been able to find any downloadable documentation to use while im traveling and internet-less. looking for something from beginner to intermediate. i found a couple out of date and incomplete ones. any help wo…

---

## [Emails + Delete from Inbox](https://www.ruby-forum.com/t/emails-delete-from-inbox/172366)

<div class="topic-metadata">

**Author:** [@cyrus](https://www.ruby-forum.com/u/cyrus)\
**Replies:** 0\
**Last updated:** [July 20, 2009, 11:31am UTC](https://www.ruby-forum.com/t/emails-delete-from-inbox/172366 "2009-07-20T11:31:06Z")

</div>

Hello All, I need to know is there possible to delete emails from inbox using Net:POP3 in ruby I have tried to their function but its not working please help me thanks

---

## [How to search for a speciel file extension](https://www.ruby-forum.com/t/how-to-search-for-a-speciel-file-extension/172323)

<div class="topic-metadata">

**Author:** [@miss\_moviestar](https://www.ruby-forum.com/u/miss_moviestar)\
**Replies:** 3\
**Last updated:** [July 20, 2009, 11:27am UTC](https://www.ruby-forum.com/t/how-to-search-for-a-speciel-file-extension/172323 "2009-07-20T11:27:07Z")

</div>

hi i want to show just the powerpoint file among diffenet kind of file i uploaded. how can i do it? my model is mugshot for mugshot in @mugshot if … thanks alot

---

## [Find\_all\_by and find(:all) to only select certain values for a selection box](https://www.ruby-forum.com/t/find-all-by-and-find-all-to-only-select-certain-values-for-a-selection-box/172191)

<div class="topic-metadata">

**Author:** [@Valli](https://www.ruby-forum.com/u/Valli)\
**Replies:** 12\
**Last updated:** [July 20, 2009, 10:59am UTC](https://www.ruby-forum.com/t/find-all-by-and-find-all-to-only-select-certain-values-for-a-selection-box/172191 "2009-07-20T10:59:30Z")

</div>

So…let’s have a look if I understood the issue: -Find\_all\_by is actually the same like Find(:all), however Find\_all\_by is much shorter and less complicated than the syntax of Find(:all) -So in my CONTROLLER it says @f…

---

## [Admin rounting](https://www.ruby-forum.com/t/admin-rounting/172330)

<div class="topic-metadata">

**Author:** [@MarcS](https://www.ruby-forum.com/u/MarcS)\
**Replies:** 1\
**Last updated:** [July 20, 2009, 10:56am UTC](https://www.ruby-forum.com/t/admin-rounting/172330 "2009-07-20T10:56:31Z")

</div>

Hello everyone, I’ve recently switched from CakePHP to rails. In CakePHP there is a feature called admin routing where your route would look like: /admin/controller/action/ which would map to a method admin\_action() …

---

## [Testing a custom mime type](https://www.ruby-forum.com/t/testing-a-custom-mime-type/172361)

<div class="topic-metadata">

**Author:** [@alex](https://www.ruby-forum.com/u/alex)\
**Replies:** 0\
**Last updated:** [July 20, 2009, 8:19am UTC](https://www.ruby-forum.com/t/testing-a-custom-mime-type/172361 "2009-07-20T08:19:26Z")

</div>

I’ve registered my mime type and set up a custom parser: Mime::Type.register “application/plist+xml”, :plist ActionController::Base.param\_parsers\[Mime::Type.lookup\_by\_extension (“plist”)\] = Proc.new { |data| Plist::pa…

---

## [Routing error](https://www.ruby-forum.com/t/routing-error/172311)

<div class="topic-metadata">

**Author:** [@dwightschrute](https://www.ruby-forum.com/u/dwightschrute)\
**Replies:** 16\
**Last updated:** [July 20, 2009, 7:09am UTC](https://www.ruby-forum.com/t/routing-error/172311 "2009-07-20T07:09:10Z")

</div>

Routing Error No route matches “/cookbook” with {:method=\>:get} This problem started this morning, whereas it was working last night. Occurring with all projects. No routing.rb files were changed by me. I’m using In…

---

## [Yield, content\_for and Ajax actions?!](https://www.ruby-forum.com/t/yield-content-for-and-ajax-actions/172251)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 1\
**Last updated:** [July 20, 2009, 6:30am UTC](https://www.ruby-forum.com/t/yield-content-for-and-ajax-actions/172251 "2009-07-20T06:30:10Z")

</div>

Hello, I have a piece of code like: … \<% content\_for :js\_templates do -%\> \<%= “var phone=’#{generate\_template(contact\_form, :phones, :partial =\> “/contacts/phones/create”)}’” %\> \<% end -%\> … But that code is in a…

---

## [\[JOBS\] Ruby Developer Needed in Columbus, Ohio](https://www.ruby-forum.com/t/jobs-ruby-developer-needed-in-columbus-ohio/172354)

<div class="topic-metadata">

**Author:** [@G\_Consulting\_LLC](https://www.ruby-forum.com/u/G_Consulting_LLC)\
**Replies:** 0\
**Last updated:** [July 20, 2009, 4:29am UTC](https://www.ruby-forum.com/t/jobs-ruby-developer-needed-in-columbus-ohio/172354 "2009-07-20T04:29:14Z")

</div>

Good evening, If you’re looking for something new, I’m in need of senior Rudy developer for an upcoming project in Columbus, Ohio. Please email removed\_email\_address@domain.invalid for more details. Regards, Greg F…

---

## [\[OT\] Becoming incorporated? Few quick questions, S-Corp fine, etc?](https://www.ruby-forum.com/t/ot-becoming-incorporated-few-quick-questions-s-corp-fine-etc/172278)

<div class="topic-metadata">

**Author:** [@rick](https://www.ruby-forum.com/u/rick)\
**Replies:** 4\
**Last updated:** [July 20, 2009, 4:11am UTC](https://www.ruby-forum.com/t/ot-becoming-incorporated-few-quick-questions-s-corp-fine-etc/172278 "2009-07-20T04:11:06Z")

</div>

I figure a lot of you are probably independent contractors so I have a couple quick OT questions… I currently work full-time in a company as W2 employee, but will be picking up side contract work. I’d like to become …

---

## [Redefined accessor and return value](https://www.ruby-forum.com/t/redefined-accessor-and-return-value/172345)

<div class="topic-metadata">

**Author:** [@Learn\_by\_D](https://www.ruby-forum.com/u/Learn_by_D)\
**Replies:** 2\
**Last updated:** [July 20, 2009, 2:37am UTC](https://www.ruby-forum.com/t/redefined-accessor-and-return-value/172345 "2009-07-20T02:37:37Z")

</div>

Hi, I have a class that has an attribute named “an\_attribute”. I would like to define the following function def an\_attribute=(new\_value) return false end The problem is every time I call the function, the return…

---

## [Code Quality Tool Initiative](https://www.ruby-forum.com/t/code-quality-tool-initiative/172348)

<div class="topic-metadata">

**Author:** [@steveybaby](https://www.ruby-forum.com/u/steveybaby)\
**Replies:** 0\
**Last updated:** [July 20, 2009, 2:02am UTC](https://www.ruby-forum.com/t/code-quality-tool-initiative/172348 "2009-07-20T02:02:34Z")

</div>

Hi, We (Cogent Consulting) have a project going that we think might be interesting to the people on this list. We’re building a web-based code quality analysis tool, with an initial focus on Ruby projects hosted on G…

---

## [Need Help! after upgrade rails to 2.3.2 it show empty page](https://www.ruby-forum.com/t/need-help-after-upgrade-rails-to-2-3-2-it-show-empty-page/172294)

<div class="topic-metadata">

**Author:** [@sthapaun](https://www.ruby-forum.com/u/sthapaun)\
**Replies:** 8\
**Last updated:** [July 19, 2009, 10:24pm UTC](https://www.ruby-forum.com/t/need-help-after-upgrade-rails-to-2-3-2-it-show-empty-page/172294 "2009-07-19T22:24:06Z")

</div>

When I create rails app using version 2.3.2 It show nothing but empty page of localhost http://localhost:3000/ I notice that rails 2.3.2 doesn’t create .htaccess, dispatch.cgi, and dispatch.rb but when I’d copy all th…

---

## [Will RoR3 be so "merbist" as Merb?](https://www.ruby-forum.com/t/will-ror3-be-so-merbist-as-merb/172341)

<div class="topic-metadata">

**Author:** [@Jan\_Koprowski](https://www.ruby-forum.com/u/Jan_Koprowski)\
**Replies:** 1\
**Last updated:** [July 19, 2009, 10:12pm UTC](https://www.ruby-forum.com/t/will-ror3-be-so-merbist-as-merb/172341 "2009-07-19T22:12:56Z")

</div>

Hi ! Merbist I mean: modular, kick-assed-coded, fast and smooth. Or maybe not? Maybe Rails3 could not avoid compromises? Will code be so perfect and pure as in Merb is? This question is not a provocation. I’am just …

---

## [ActiveRecord validations ignore SQLite3 timeout configuration](https://www.ruby-forum.com/t/activerecord-validations-ignore-sqlite3-timeout-configuration/196984)

<div class="topic-metadata">

**Author:** [@evan](https://www.ruby-forum.com/u/evan)\
**Replies:** 0\
**Last updated:** [July 19, 2009, 10:11pm UTC](https://www.ruby-forum.com/t/activerecord-validations-ignore-sqlite3-timeout-configuration/196984 "2009-07-19T22:11:10Z")

</div>

Hey all, Sorry if this is not the right place, but I could not find anywhere more appropriate. I ran into http://dev.rubyonrails.org/ticket/8811 over the past few days, and it’s a very nasty bug. The fact is, valida…

---

## [:Partial and :locals question](https://www.ruby-forum.com/t/partial-and-locals-question/172232)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 6\
**Last updated:** [July 19, 2009, 10:11pm UTC](https://www.ruby-forum.com/t/partial-and-locals-question/172232 "2009-07-19T22:11:10Z")

</div>

Hello, I want to be able to call a partial with and without a local. E.g.: 1 - \<%= render :partial =\> “/contacts/phones/create”, :locals =\> { :parent\_form =\> contact\_form, :phone =\> Phone.new} %\> 2 - \<%= render :par…

---

## [Authentication and authorization](https://www.ruby-forum.com/t/authentication-and-authorization/172310)

<div class="topic-metadata">

**Author:** [@rajendra](https://www.ruby-forum.com/u/rajendra)\
**Replies:** 3\
**Last updated:** [July 19, 2009, 10:09pm UTC](https://www.ruby-forum.com/t/authentication-and-authorization/172310 "2009-07-19T22:09:24Z")

</div>

hi, i want some information about the pluing’s available for authentication and authorizations. can any one tell me what are the plugins available in ROR for authentication and authorization. suggest me which is best …

---

## [ActiveRecord validations ignore SQLite3 timeout configuration](https://www.ruby-forum.com/t/activerecord-validations-ignore-sqlite3-timeout-configuration/172337)

<div class="topic-metadata">

**Author:** [@evan](https://www.ruby-forum.com/u/evan)\
**Replies:** 0\
**Last updated:** [July 19, 2009, 10:08pm UTC](https://www.ruby-forum.com/t/activerecord-validations-ignore-sqlite3-timeout-configuration/172337 "2009-07-19T22:08:13Z")

</div>

Hey all, Sorry if this is not the right place, but I could not find anywhere more appropriate. I ran into http://dev.rubyonrails.org/ticket/8811 over the past few days, and it’s a very nasty bug. The fact is, valida…

---

## [Will RoR3 be so "merbist" as Merb?](https://www.ruby-forum.com/t/will-ror3-be-so-merbist-as-merb/172336)

<div class="topic-metadata">

**Author:** [@Jan\_Koprowski](https://www.ruby-forum.com/u/Jan_Koprowski)\
**Replies:** 0\
**Last updated:** [July 19, 2009, 10:06pm UTC](https://www.ruby-forum.com/t/will-ror3-be-so-merbist-as-merb/172336 "2009-07-19T22:06:27Z")

</div>

Hi ! “Merbis” i mean: kick-ass-coded, modular, small, fast, perfect in this aspects as Merb is. Or maybe not. Mayby there is some compromises. Maybe Rails3 will be only on hal-way of Merb purity and perfection? This…

---

## [Load model with Ajax and jQuery to load a form](https://www.ruby-forum.com/t/load-model-with-ajax-and-jquery-to-load-a-form/172334)

<div class="topic-metadata">

**Author:** [@olivierntk](https://www.ruby-forum.com/u/olivierntk)\
**Replies:** 0\
**Last updated:** [July 19, 2009, 10:00pm UTC](https://www.ruby-forum.com/t/load-model-with-ajax-and-jquery-to-load-a-form/172334 "2009-07-19T22:00:01Z")

</div>

Hi all, I am having troubles to figure out how I can load data via ajax and inject those data in a form. Basically, I have a table of users. Each user has an edit button. On click, I want to load this user’s data and …

---

## [IE7 Cookies not persisting. Please help](https://www.ruby-forum.com/t/ie7-cookies-not-persisting-please-help/170870)

<div class="topic-metadata">

**Author:** [@Shannon](https://www.ruby-forum.com/u/Shannon)\
**Replies:** 2\
**Last updated:** [July 19, 2009, 9:59pm UTC](https://www.ruby-forum.com/t/ie7-cookies-not-persisting-please-help/170870 "2009-07-19T21:59:25Z")

</div>

I’m new to cookies and rails so I apologize for my ignorance. I’m using Javascript to store persistent cookies using the following code (taken from the O’Reilly Javascript book): Cookie.prototype.store = function( da…

---

## [Routing Error](https://www.ruby-forum.com/t/routing-error/172333)

<div class="topic-metadata">

**Author:** [@duh](https://www.ruby-forum.com/u/duh)\
**Replies:** 0\
**Last updated:** [July 19, 2009, 9:59pm UTC](https://www.ruby-forum.com/t/routing-error/172333 "2009-07-19T21:59:25Z")

</div>

I tried posting this this morning but never saw it show up. I’ll try again. I’m using InstantRails with Sqlite3. Last night I was able to access my webpages just fine. This morning, none of them were working. Kept …

---

## [\[JOBS\] Senior Ruby Developer Needed in Columbus, Ohio](https://www.ruby-forum.com/t/jobs-senior-ruby-developer-needed-in-columbus-ohio/172331)

<div class="topic-metadata">

**Author:** [@G\_Consulting\_LLC](https://www.ruby-forum.com/u/G_Consulting_LLC)\
**Replies:** 0\
**Last updated:** [July 19, 2009, 9:59pm UTC](https://www.ruby-forum.com/t/jobs-senior-ruby-developer-needed-in-columbus-ohio/172331 "2009-07-19T21:59:25Z")

</div>

Hello, We have a contract opportunity in Columbus, Ohio for a Sr. Developer with an in-depth knowledge of Ruby and JavaScript. The contractor will perform analysis, configuration and coding of a mobile application us…

---

## [How to sum returned rows from a model using inject?](https://www.ruby-forum.com/t/how-to-sum-returned-rows-from-a-model-using-inject/172291)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 8\
**Last updated:** [July 19, 2009, 9:49pm UTC](https://www.ruby-forum.com/t/how-to-sum-returned-rows-from-a-model-using-inject/172291 "2009-07-19T21:49:40Z")

</div>

Here’s my current loop: update\_total = model.find(:all) update\_total.each do |row| val = ((row.totoff + row.rushoff + row.passoff + row.scoroff + row.rzonoff + row.fumlost + row.passhint + row.tolost + row.sacksall + …

---

## [Getting the response body](https://www.ruby-forum.com/t/getting-the-response-body/172098)

<div class="topic-metadata">

**Author:** [@micktaiwan](https://www.ruby-forum.com/u/micktaiwan)\
**Replies:** 3\
**Last updated:** [July 19, 2009, 9:47pm UTC](https://www.ruby-forum.com/t/getting-the-response-body/172098 "2009-07-19T21:47:25Z")

</div>

Hi, In my view I have link\_to\_remote(image\_tag(“trashcan.gif”), :url=\>{:action=\>‘destroy’, :id=\>jobtype.id}, :confirm=\>I18n.t(:confirm\_action), :success=\>"$(‘el\_#{jobtype.id}’).fade()", :failure=\>“alert(‘HERE I WANT …

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

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