# Rails

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

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

---

## [\[Jobs\] Versatile Software Developer needed in Los Angeles area](https://www.ruby-forum.com/t/jobs-versatile-software-developer-needed-in-los-angeles-area/192809)

<div class="topic-metadata">

**Author:** [@LaughingNinja](https://www.ruby-forum.com/u/LaughingNinja)\
**Replies:** 0\
**Last updated:** [August 6, 2010, 2:11am UTC](https://www.ruby-forum.com/t/jobs-versatile-software-developer-needed-in-los-angeles-area/192809 "2010-08-06T02:11:26Z")

</div>

Skills Needed: SQL language knowledge: SELECT, JOINS, TRIGGERS, STORED PROCEDURES, FUNCTIONS. Can figure out how to do the above in our 3 database engines: (PostGre, MySQL, MS SQL) Front-end knowledge: JavaScript, C…

---

## [Search large XML file -- REXML slower than a slug, regex instantaneous](https://www.ruby-forum.com/t/search-large-xml-file-rexml-slower-than-a-slug-regex-instantaneous/192795)

<div class="topic-metadata">

**Author:** [@ntk](https://www.ruby-forum.com/u/ntk)\
**Replies:** 7\
**Last updated:** [August 5, 2010, 10:13pm UTC](https://www.ruby-forum.com/t/search-large-xml-file-rexml-slower-than-a-slug-regex-instantaneous/192795 "2010-08-05T22:13:45Z")

</div>

Got a question hopefully someone can answer - I am working on functionality to match on certain nodes of a largish (65mb) xml file. I implemented this with REXML and was 2 minutes and counting before I killed the pro…

---

## [Can't get SWF player to display in webpage](https://www.ruby-forum.com/t/cant-get-swf-player-to-display-in-webpage/165876)

<div class="topic-metadata">

**Author:** [@rubio](https://www.ruby-forum.com/u/rubio)\
**Replies:** 6\
**Last updated:** [August 5, 2010, 9:08pm UTC](https://www.ruby-forum.com/t/cant-get-swf-player-to-display-in-webpage/165876 "2010-08-05T21:08:06Z")

</div>

Found a great link (Eleventyten.com is for sale | HugeDomains) describing adding Flash content (in this case playerMultipleList.swf) in a “rails” webpage. I’ve followed the instructions to a “T”, however the player d…

---

## [Rails 3: problems with â€˜libâ€™ and â€˜requ ireâ€™](https://www.ruby-forum.com/t/rails-3-problems-with-a-liba-and-a-requ-irea/192726)

<div class="topic-metadata">

**Author:** [@avsej](https://www.ruby-forum.com/u/avsej)\
**Replies:** 1\
**Last updated:** [August 5, 2010, 7:46pm UTC](https://www.ruby-forum.com/t/rails-3-problems-with-a-liba-and-a-requ-irea/192726 "2010-08-05T19:46:12Z")

</div>

Hi! Ruby files from the lib directory don’t automaticaly loaded/required. I tried adding string: config.autoload\_paths += %W(#{config.root}/lib) to my application.rb file but it doesn’t work too. Second problem with…

---

## [Simple redirect\_to shows in log but doesn't redirect](https://www.ruby-forum.com/t/simple-redirect-to-shows-in-log-but-doesnt-redirect/192489)

<div class="topic-metadata">

**Author:** [@neilbain](https://www.ruby-forum.com/u/neilbain)\
**Replies:** 32\
**Last updated:** [August 5, 2010, 7:37pm UTC](https://www.ruby-forum.com/t/simple-redirect-to-shows-in-log-but-doesnt-redirect/192489 "2010-08-05T19:37:08Z")

</div>

This is the offending code def create @story = Story.find(params\[:story\_id\]) @story.comments.create params\[:comment\] redirect\_to story\_path(@story) end When the above is called the log shows Processing CommentsCon…

---

## [Size of array returned by named\_scope with :group/:select distinct](https://www.ruby-forum.com/t/size-of-array-returned-by-named-scope-with-group-select-distinct/177401)

<div class="topic-metadata">

**Author:** [@asetzler](https://www.ruby-forum.com/u/asetzler)\
**Replies:** 3\
**Last updated:** [August 5, 2010, 7:28pm UTC](https://www.ruby-forum.com/t/size-of-array-returned-by-named-scope-with-group-select-distinct/177401 "2010-08-05T19:28:43Z")

</div>

Here’s the example: $ ruby script/generate scaffold thing name:string class Thing \< ActiveRecord::Base named\_scope :distinct, :group =\> :name end :select =\> “DISTINCT things.\*” would work in the same way. Start up …

---

## [Segmentation fault with Win32 Service & API on 1.9.1](https://www.ruby-forum.com/t/segmentation-fault-with-win32-service-api-on-1-9-1/192794)

<div class="topic-metadata">

**Author:** [@joemanfoo](https://www.ruby-forum.com/u/joemanfoo)\
**Replies:** 2\
**Last updated:** [August 5, 2010, 5:43pm UTC](https://www.ruby-forum.com/t/segmentation-fault-with-win32-service-api-on-1-9-1/192794 "2010-08-05T17:43:11Z")

</div>

I’m on Windows 2003, testing a possible upgrade from 1.8.6 to 1.9.1. I receive a segmentation fault error when simply requiring Win32/Service (nothing else in the script), which faults in win32/api.so. Code: require…

---

## [How to configure rails to use mysql by default (not sqlite3)](https://www.ruby-forum.com/t/how-to-configure-rails-to-use-mysql-by-default-not-sqlite3/192624)

<div class="topic-metadata">

**Author:** [@reivilo](https://www.ruby-forum.com/u/reivilo)\
**Replies:** 8\
**Last updated:** [August 5, 2010, 5:21pm UTC](https://www.ruby-forum.com/t/how-to-configure-rails-to-use-mysql-by-default-not-sqlite3/192624 "2010-08-05T17:21:58Z")

</div>

Hello, I am running Mac OS X 10.6.4 and have installed the following: ruby-1.9.1-p429 (64 bits, I believe!) RubyGems 1.3.7 Rails 2.3.8 MySQL 5.1.49 (64 bits) I am now getting an error because sqlite3 is not install…

---

## [Rails3 Engines (mountable apps)](https://www.ruby-forum.com/t/rails3-engines-mountable-apps/197234)

<div class="topic-metadata">

**Author:** [@hjblok](https://www.ruby-forum.com/u/hjblok)\
**Replies:** 4\
**Last updated:** [August 5, 2010, 4:44pm UTC](https://www.ruby-forum.com/t/rails3-engines-mountable-apps/197234 "2010-08-05T16:44:42Z")

</div>

Hello, I’ve a question about Rails 3 Engines. I’m looking everywhere for good documentation on this subject, but didn’t find it. I’m trying to create a mountable app (embedding a Rails application in another Rails ap…

---

## [Data selection tools? \[plugin\]](https://www.ruby-forum.com/t/data-selection-tools-plugin/192780)

<div class="topic-metadata">

**Author:** [@Didde\_B](https://www.ruby-forum.com/u/Didde_B)\
**Replies:** 1\
**Last updated:** [August 5, 2010, 4:03pm UTC](https://www.ruby-forum.com/t/data-selection-tools-plugin/192780 "2010-08-05T16:03:40Z")

</div>

Hi guys, We’re working on a medium scale project based on tons of user data. Some in real simple boolean forms and others in relationships between different models. On the back-end (based on Typus) our administrator …

---

## [Need quick help with view syntax](https://www.ruby-forum.com/t/need-quick-help-with-view-syntax/192777)

<div class="topic-metadata">

**Author:** [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Replies:** 4\
**Last updated:** [August 5, 2010, 4:00pm UTC](https://www.ruby-forum.com/t/need-quick-help-with-view-syntax/192777 "2010-08-05T16:00:41Z")

</div>

hi, whats the correct syntax for that: (if possible) project\<has\_one\>calendar \<%=h !project.calendar.nil? ? "all good" : link\_to(project.title, project) %\> im not sure of the “link\_to” part. thx

---

## [Returning last value](https://www.ruby-forum.com/t/returning-last-value/192640)

<div class="topic-metadata">

**Author:** [@upabibi](https://www.ruby-forum.com/u/upabibi)\
**Replies:** 10\
**Last updated:** [August 5, 2010, 3:54pm UTC](https://www.ruby-forum.com/t/returning-last-value/192640 "2010-08-05T15:54:13Z")

</div>

Hi. I have the following controller of the update action: def update @projeto = Projeto.find(params\[:id\]) if (@projeto.update\_attributes(params\[:projeto\])) ## Mesmo raciocÃ­nio utilizado no create. @p…

---

## [Rails is slow to load](https://www.ruby-forum.com/t/rails-is-slow-to-load/192743)

<div class="topic-metadata">

**Author:** [@eric2323223](https://www.ruby-forum.com/u/eric2323223)\
**Replies:** 7\
**Last updated:** [August 5, 2010, 3:38pm UTC](https://www.ruby-forum.com/t/rails-is-slow-to-load/192743 "2010-08-05T15:38:08Z")

</div>

Hi, I was just wondering if this was normal or not. I was running ruby 1.8.7 with rails 3 - rc. (Currently trying 1.9.2- rc2 but the same problem) It takes rails a while to load. (a while as in 10-15 seconds) It wil…

---

## [No Output From script/server](https://www.ruby-forum.com/t/no-output-from-script-server/192732)

<div class="topic-metadata">

**Author:** [@neufelni](https://www.ruby-forum.com/u/neufelni)\
**Replies:** 1\
**Last updated:** [August 5, 2010, 2:21pm UTC](https://www.ruby-forum.com/t/no-output-from-script-server/192732 "2010-08-05T14:21:45Z")

</div>

Hello, I usually use my Mac for Rails development, but since it’s in for service, I have to use Windows now for a couple of days. However, for some reason with Windows, I’m not getting any of the output from the cons…

---

## [How to get all models,controller,action and method names in](https://www.ruby-forum.com/t/how-to-get-all-models-controller-action-and-method-names-in/192785)

<div class="topic-metadata">

**Author:** [@rams\_vel](https://www.ruby-forum.com/u/rams_vel)\
**Replies:** 0\
**Last updated:** [August 5, 2010, 2:14pm UTC](https://www.ruby-forum.com/t/how-to-get-all-models-controller-action-and-method-names-in/192785 "2010-08-05T14:14:33Z")

</div>

Hi guys, In runtime we can get the current controller and current action names by controller\_name and action\_name methods like wise, I want to get all the remaining controllers and action names and models too if poss…

---

## [Ruby on Rails Developer Needed!](https://www.ruby-forum.com/t/ruby-on-rails-developer-needed/192697)

<div class="topic-metadata">

**Author:** [@sergio\_longoria](https://www.ruby-forum.com/u/sergio_longoria)\
**Replies:** 2\
**Last updated:** [August 5, 2010, 11:09am UTC](https://www.ruby-forum.com/t/ruby-on-rails-developer-needed/192697 "2010-08-05T11:09:45Z")

</div>

Project Length: 12 Months Location of Project: Costa Mesa, CA Start Date: Immediatley. Looking to possibly hire over phone interview Designs, develops, and implements web-based Java applications to support busin…

---

## [Union function in model class](https://www.ruby-forum.com/t/union-function-in-model-class/192768)

<div class="topic-metadata">

**Author:** [@senthilkumar](https://www.ruby-forum.com/u/senthilkumar)\
**Replies:** 2\
**Last updated:** [August 5, 2010, 10:36am UTC](https://www.ruby-forum.com/t/union-function-in-model-class/192768 "2010-08-05T10:36:22Z")

</div>

Hi all Help Please! Question : i have to union two tables named qareports (1st table) id agency\_id agencies (2nd table) id name #i have called model from controller by passing some parameter reports\_controller.rb …

---

## [\[JOB\] Music Co: Lead RoR Developer, RoR Developer](https://www.ruby-forum.com/t/job-music-co-lead-ror-developer-ror-developer/192773)

<div class="topic-metadata">

**Author:** [@Recruiting.IO](https://www.ruby-forum.com/u/Recruiting.IO)\
**Replies:** 2\
**Last updated:** [August 5, 2010, 10:32am UTC](https://www.ruby-forum.com/t/job-music-co-lead-ror-developer-ror-developer/192773 "2010-08-05T10:32:16Z")

</div>

We have two roles: Team Lead / Director of RoR Development RoR Developer Please contact if interested: removed\_email\_address@domain.invalid Lead a team of web engineers using Ruby on Rails to develop next generatio…

---

## [Hello friends!](https://www.ruby-forum.com/t/hello-friends/192699)

<div class="topic-metadata">

**Author:** [@sam](https://www.ruby-forum.com/u/sam)\
**Replies:** 5\
**Last updated:** [August 5, 2010, 5:05am UTC](https://www.ruby-forum.com/t/hello-friends/192699 "2010-08-05T05:05:01Z")

</div>

Hello friends ! I am in need of implementing the live chat functionality in my application. I have juggernaut to implement this functionality. I have followed http://juggernaut.rubyforge.org/… i hav…

---

## [How to apply an application template on an existing Rails 3 app?](https://www.ruby-forum.com/t/how-to-apply-an-application-template-on-an-existing-rails-3-app/192758)

<div class="topic-metadata">

**Author:** [@slavix](https://www.ruby-forum.com/u/slavix)\
**Replies:** 0\
**Last updated:** [August 5, 2010, 2:26am UTC](https://www.ruby-forum.com/t/how-to-apply-an-application-template-on-an-existing-rails-3-app/192758 "2010-08-05T02:26:59Z")

</div>

Hello, I want to run a template on an a Rails 3 app after it has already been created. Is there a command for that? thanks

---

## [CarrierWave: 1 uploader for multiple file types](https://www.ruby-forum.com/t/carrierwave-1-uploader-for-multiple-file-types/192757)

<div class="topic-metadata">

**Author:** [@yetanothergeek](https://www.ruby-forum.com/u/yetanothergeek)\
**Replies:** 0\
**Last updated:** [August 5, 2010, 1:25am UTC](https://www.ruby-forum.com/t/carrierwave-1-uploader-for-multiple-file-types/192757 "2010-08-05T01:25:15Z")

</div>

I am using the carrierwave to upload files to a rails project. Right now it works fine for uploading images but want to check if the file is an image before attempting to resize it to avoid errors. What I’m having t…

---

## [Job](https://www.ruby-forum.com/t/job/197145)

<div class="topic-metadata">

**Author:** [@megan](https://www.ruby-forum.com/u/megan)\
**Replies:** 0\
**Last updated:** [August 5, 2010, 12:37am UTC](https://www.ruby-forum.com/t/job/197145 "2010-08-05T00:37:32Z")

</div>

Ruby on Rails Front- End Engineer in San Francisco, CA Please apply via: http://hire.jobvite.com/j/?cj=ocbhVfwj&s=Another\_Source VerticalResponse, Inc is a leading provider of self-service email and direct mail solut…

---

## [JOB: Ruby on Rails Front- End Engineer in San Francisco, CA](https://www.ruby-forum.com/t/job-ruby-on-rails-front-end-engineer-in-san-francisco-ca/192755)

<div class="topic-metadata">

**Author:** [@megan](https://www.ruby-forum.com/u/megan)\
**Replies:** 0\
**Last updated:** [August 5, 2010, 12:37am UTC](https://www.ruby-forum.com/t/job-ruby-on-rails-front-end-engineer-in-san-francisco-ca/192755 "2010-08-05T00:37:32Z")

</div>

Ruby on Rails Front- End Engineer in San Francisco, CA Please apply via: http://hire.jobvite.com/j/?cj=ocbhVfwj&s=Another\_Source VerticalResponse, Inc is a leading provider of self-service email and direct mail solut…

---

## [Juggernaut Rails 3](https://www.ruby-forum.com/t/juggernaut-rails-3/192612)

<div class="topic-metadata">

**Author:** [@kentorwow](https://www.ruby-forum.com/u/kentorwow)\
**Replies:** 3\
**Last updated:** [August 4, 2010, 10:58pm UTC](https://www.ruby-forum.com/t/juggernaut-rails-3/192612 "2010-08-04T22:58:36Z")

</div>

Are there any plans to update the Juggernaut gem to be compatible with Rails 3? It doesn’t seem to work as of now with Rails 3, unless I set up the whole thing wrong. Also are there any good working alternatives for a…

---

## [Getting Error in browser](https://www.ruby-forum.com/t/getting-error-in-browser/192698)

<div class="topic-metadata">

**Author:** [@devrubygem](https://www.ruby-forum.com/u/devrubygem)\
**Replies:** 5\
**Last updated:** [August 4, 2010, 6:59pm UTC](https://www.ruby-forum.com/t/getting-error-in-browser/192698 "2010-08-04T18:59:59Z")

</div>

I get this Error message in my browser SyntaxError in ProductsController#index /Users/musdev/work/depot/app/models/product.rb:11: Invalid char \`\\x1B’ in expression The code in my product.rb file class Product \< Acti…

---

## [From RailsConf: New Open Source Gems to manage large Rails "eco-systems"](https://www.ruby-forum.com/t/from-railsconf-new-open-source-gems-to-manage-large-rails-eco-systems/192737)

<div class="topic-metadata">

**Author:** [@Jonathan\_Palley](https://www.ruby-forum.com/u/Jonathan_Palley)\
**Replies:** 0\
**Last updated:** [August 4, 2010, 6:57pm UTC](https://www.ruby-forum.com/t/from-railsconf-new-open-source-gems-to-manage-large-rails-eco-systems/192737 "2010-08-04T18:57:58Z")

</div>

Dear All - At the end of our RailsConf Speech on how we built a maintainable yet complex rails system (slides here: http://en.oreilly.com/rails2010/public/schedule/detail/14302), there was a large demand for us to op…

---

## [Rails 2.3.8 and form\_tag usage](https://www.ruby-forum.com/t/rails-2-3-8-and-form-tag-usage/192682)

<div class="topic-metadata">

**Author:** [@crashbangboom](https://www.ruby-forum.com/u/crashbangboom)\
**Replies:** 3\
**Last updated:** [August 4, 2010, 6:09pm UTC](https://www.ruby-forum.com/t/rails-2-3-8-and-form-tag-usage/192682 "2010-08-04T18:09:54Z")

</div>

I have just upgraded my entire system to use the subject line version of rails…of course…this broke my previous rails apps as many things are handled a bit differently…! I have all apps running fine now but am having …

---

## [How to inject a value in params when testing a helper method](https://www.ruby-forum.com/t/how-to-inject-a-value-in-params-when-testing-a-helper-method/192720)

<div class="topic-metadata">

**Author:** [@arigo](https://www.ruby-forum.com/u/arigo)\
**Replies:** 3\
**Last updated:** [August 4, 2010, 6:07pm UTC](https://www.ruby-forum.com/t/how-to-inject-a-value-in-params-when-testing-a-helper-method/192720 "2010-08-04T18:07:27Z")

</div>

I what to try this method in a helper class: def moderator\_buttons? return true if params\[:question\_status\] == ‘HOST\_INBOX’ return true if params\[:question\_status\] == ‘HOST\_INBOX\_READ’ return true if params\[:question…

---

## [Validation of drop down menu](https://www.ruby-forum.com/t/validation-of-drop-down-menu/192731)

<div class="topic-metadata">

**Author:** [@disruptive](https://www.ruby-forum.com/u/disruptive)\
**Replies:** 6\
**Last updated:** [August 4, 2010, 5:51pm UTC](https://www.ruby-forum.com/t/validation-of-drop-down-menu/192731 "2010-08-04T17:51:32Z")

</div>

How best to do this? I have the following code: \<%= collection\_select(:country, :id, @country\_list, :id, :country\_name, options ={:prompt =\> “-- Select a country --”}, :class =\>“country”) %\> How can I ensure that thi…

---

## [:url being ignored or routing problem?](https://www.ruby-forum.com/t/url-being-ignored-or-routing-problem/192622)

<div class="topic-metadata">

**Author:** [@codecrafted](https://www.ruby-forum.com/u/codecrafted)\
**Replies:** 6\
**Last updated:** [August 4, 2010, 5:43pm UTC](https://www.ruby-forum.com/t/url-being-ignored-or-routing-problem/192622 "2010-08-04T17:43:36Z")

</div>

background i have a page with a drop-down menu item. if any of the choices is selected, a partial gets activated to appear with new drop-down menu choices. the initial page uses a select\_tag, observe\_field, and a di…

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

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