# Rails

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

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

---

## [Rails with javascript](https://www.ruby-forum.com/t/rails-with-javascript/146212)

<div class="topic-metadata">

**Author:** [@maite](https://www.ruby-forum.com/u/maite)\
**Replies:** 0\
**Last updated:** [August 19, 2008, 2:57am UTC](https://www.ruby-forum.com/t/rails-with-javascript/146212 "2008-08-19T02:57:40Z")

</div>

hello list In main controller I have method find I have array @vector, I have find.rjs this page.replace\_html ‘teletipo’, :partial=\>‘bolsa’, :collection =\> @vector I pass @vector but I want include javascript code…

---

## [Undefined method - what am I missing?](https://www.ruby-forum.com/t/undefined-method-what-am-i-missing/146201)

<div class="topic-metadata">

**Author:** [@gwendydd](https://www.ruby-forum.com/u/gwendydd)\
**Replies:** 4\
**Last updated:** [August 19, 2008, 1:34am UTC](https://www.ruby-forum.com/t/undefined-method-what-am-i-missing/146201 "2008-08-19T01:34:22Z")

</div>

This has to be another one of those really easy obvious ones, but I just can’t figure it out… I have a boolean field called “public” to designate whether a record in my database should be viewable by the public, or on…

---

## [Getting params form submit\_to\_remote function](https://www.ruby-forum.com/t/getting-params-form-submit-to-remote-function/146200)

<div class="topic-metadata">

**Author:** [@lz-coelho](https://www.ruby-forum.com/u/lz-coelho)\
**Replies:** 1\
**Last updated:** [August 19, 2008, 1:09am UTC](https://www.ruby-forum.com/t/getting-params-form-submit-to-remote-function/146200 "2008-08-19T01:09:15Z")

</div>

I’m trying do a search field using XHR form. Look this: In view: \<% form\_tag ‘dub0’ %\> \<%= text\_field ‘dub1’, ‘dub2’ %\> \<%= submit\_to\_remote ‘btn\_search’, ‘search it’, :url =\> { :action =\> ‘my\_search\_controller’ }, …

---

## [Rspec controller test -- ERROR](https://www.ruby-forum.com/t/rspec-controller-test-error/146198)

<div class="topic-metadata">

**Author:** [@jcernelli](https://www.ruby-forum.com/u/jcernelli)\
**Replies:** 0\
**Last updated:** [August 19, 2008, 12:49am UTC](https://www.ruby-forum.com/t/rspec-controller-test-error/146198 "2008-08-19T00:49:23Z")

</div>

Hello, I am trying to figure out how to pass the test for create controller action: def create @artist = Artist.new(params\[:artist\]) if @artist.save flash\[:notice\] = “#{@artist.name} dodany do bazy” redirect\_to li…

---

## [To\_xml :methods generating escaped XML](https://www.ruby-forum.com/t/to-xml-methods-generating-escaped-xml/145981)

<div class="topic-metadata">

**Author:** [@noreaster](https://www.ruby-forum.com/u/noreaster)\
**Replies:** 1\
**Last updated:** [August 18, 2008, 11:47pm UTC](https://www.ruby-forum.com/t/to-xml-methods-generating-escaped-xml/145981 "2008-08-18T23:47:03Z")

</div>

Howdy. Ruby N. here. I have a couple of methods in one of my models: def program\_asset if promo? PromoVersion.find(self\[:promo\_vid\]) elsif feature? play\_id = self\[:play\_id\] my\_play = Playdate.find(play\_id) my\_fid…

---

## [Ruby+xslt](https://www.ruby-forum.com/t/ruby-xslt/146195)

<div class="topic-metadata">

**Author:** [@ricardo](https://www.ruby-forum.com/u/ricardo)\
**Replies:** 0\
**Last updated:** [August 18, 2008, 11:30pm UTC](https://www.ruby-forum.com/t/ruby-xslt/146195 "2008-08-18T23:30:22Z")

</div>

good night I wonder if someone already has come to use it? regars

---

## [Exemplary Rails 2.1 app?](https://www.ruby-forum.com/t/exemplary-rails-2-1-app/146018)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 5\
**Last updated:** [August 18, 2008, 11:07pm UTC](https://www.ruby-forum.com/t/exemplary-rails-2-1-app/146018 "2008-08-18T23:07:31Z")

</div>

Railsters: An exemplary Rails 1.x app is Beast, for example. I have always been able to download it and experiment with it, to try extracurricular Rails experiments from a good base. Without the burden of writing my …

---

## [How to run a shell script from rails](https://www.ruby-forum.com/t/how-to-run-a-shell-script-from-rails/146095)

<div class="topic-metadata">

**Author:** [@APAPAP](https://www.ruby-forum.com/u/APAPAP)\
**Replies:** 3\
**Last updated:** [August 18, 2008, 11:01pm UTC](https://www.ruby-forum.com/t/how-to-run-a-shell-script-from-rails/146095 "2008-08-18T23:01:37Z")

</div>

Hello, I’m new for ruby on rails. I have a shell script but really don’t know how to run it from rails. And after the script has been executed, how can I get the value of the variables that has been created by the sc…

---

## [Multiple tables using one model?](https://www.ruby-forum.com/t/multiple-tables-using-one-model/130166)

<div class="topic-metadata">

**Author:** [@lucasc](https://www.ruby-forum.com/u/lucasc)\
**Replies:** 3\
**Last updated:** [August 18, 2008, 10:10pm UTC](https://www.ruby-forum.com/t/multiple-tables-using-one-model/130166 "2008-08-18T22:10:55Z")

</div>

Is there a way to use one model to write to different tables if all of the tables have the same fields and attributes? I would like to use one model but be able to decide which table it accesses. Anyone know if this …

---

## [Default value in hash](https://www.ruby-forum.com/t/default-value-in-hash/146148)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 2\
**Last updated:** [August 18, 2008, 9:43pm UTC](https://www.ruby-forum.com/t/default-value-in-hash/146148 "2008-08-18T21:43:15Z")

</div>

How do I add a default value in this hash / helper? def doctype {“application/msword” =\> “doc”, “text/rtf” =\> “rtf”, “text/plain” =\> “text”, “application/pdf” =\> “pdf”, “text/html” =\> “html”, “application/vnd.ms-exce…

---

## [Frustrated noob](https://www.ruby-forum.com/t/frustrated-noob/146155)

<div class="topic-metadata">

**Author:** [@codemax](https://www.ruby-forum.com/u/codemax)\
**Replies:** 6\
**Last updated:** [August 18, 2008, 9:23pm UTC](https://www.ruby-forum.com/t/frustrated-noob/146155 "2008-08-18T21:23:36Z")

</div>

Hello, So I’m yet-another-noob trying to learn RoR. Here is my question… Last night I was having all kinds of trouble getting layouts to work. I was searching google, learning about automatic layout assignments, and …

---

## [BOSSMan: Yahoo BOSS gem](https://www.ruby-forum.com/t/bossman-yahoo-boss-gem/146188)

<div class="topic-metadata">

**Author:** [@jpignata](https://www.ruby-forum.com/u/jpignata)\
**Replies:** 0\
**Last updated:** [August 18, 2008, 9:09pm UTC](https://www.ruby-forum.com/t/bossman-yahoo-boss-gem/146188 "2008-08-18T21:09:05Z")

</div>

Yahoo BOSS is an API that allows for use of search results from Yahoo’s search index with very little restrictions. I’ve put together a quick gem for handling interaction with it. There’s sample code included in the g…

---

## [Nested resources and ActiveResource](https://www.ruby-forum.com/t/nested-resources-and-activeresource/146184)

<div class="topic-metadata">

**Author:** [@jawosis](https://www.ruby-forum.com/u/jawosis)\
**Replies:** 1\
**Last updated:** [August 18, 2008, 8:43pm UTC](https://www.ruby-forum.com/t/nested-resources-and-activeresource/146184 "2008-08-18T20:43:12Z")

</div>

On the server application I have a admin controller http://127.0.0.1:3000/admin/clients class Admin::ClientsController \< ApplicationController before\_filter :authorize . . . and this in my routes.rb: map.namespac…

---

## [Rails Associations with dynamic attributes](https://www.ruby-forum.com/t/rails-associations-with-dynamic-attributes/146182)

<div class="topic-metadata">

**Author:** [@Sharad\_Gupta](https://www.ruby-forum.com/u/Sharad_Gupta)\
**Replies:** 1\
**Last updated:** [August 18, 2008, 8:26pm UTC](https://www.ruby-forum.com/t/rails-associations-with-dynamic-attributes/146182 "2008-08-18T20:26:11Z")

</div>

Hopefully, the table structure at the end is self-explanatory: I want to be able to do something like this: @panelist = Panelist.first puts @panelist.age $stdout\> 30 puts @panelist.gender $stdout\> M Is this doable…

---

## [Conditions in show.rthml?](https://www.ruby-forum.com/t/conditions-in-show-rthml/146165)

<div class="topic-metadata">

**Author:** [@remco](https://www.ruby-forum.com/u/remco)\
**Replies:** 1\
**Last updated:** [August 18, 2008, 8:09pm UTC](https://www.ruby-forum.com/t/conditions-in-show-rthml/146165 "2008-08-18T20:09:40Z")

</div>

Hi, newbie-question: i have a show.rhtml which generates the continents of the world…in addition i want show an image map based on the continent. This image-map(html) is coded in the view-template. if? http://dome…

---

## [Update\_attributes does not work with ActiveResource](https://www.ruby-forum.com/t/update-attributes-does-not-work-with-activeresource/146175)

<div class="topic-metadata">

**Author:** [@jawosis](https://www.ruby-forum.com/u/jawosis)\
**Replies:** 2\
**Last updated:** [August 18, 2008, 7:40pm UTC](https://www.ruby-forum.com/t/update-attributes-does-not-work-with-activeresource/146175 "2008-08-18T19:40:56Z")

</div>

I have to sites running on port 3000 and 3001 I read the Client model via ActiveResource. Creating and deleting is working but updating causes the following error: NoMethodError in ClientsController#update undefined …

---

## [Solution to invalid gem format](https://www.ruby-forum.com/t/solution-to-invalid-gem-format/141351)

<div class="topic-metadata">

**Author:** [@owen](https://www.ruby-forum.com/u/owen)\
**Replies:** 1\
**Last updated:** [August 18, 2008, 7:05pm UTC](https://www.ruby-forum.com/t/solution-to-invalid-gem-format/141351 "2008-08-18T19:05:45Z")

</div>

hrisff on 24 Jun 06:02: Anyone else getting this? $ sudo gem install rails ERROR: Error installing rails: invalid gem format for /usr/local/lib/ruby/gems/1.8/cache/activesupport-2.1.0.gem 2.0.2 is installed and wor…

---

## [Help with thread and database connection](https://www.ruby-forum.com/t/help-with-thread-and-database-connection/146065)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 7\
**Last updated:** [August 18, 2008, 6:37pm UTC](https://www.ruby-forum.com/t/help-with-thread-and-database-connection/146065 "2008-08-18T18:37:02Z")

</div>

Hi guys, i need help with this: enviroment.rb config.active\_record.allow\_concurrency = true billing.rb pid = Fork.begin(:detach =\> true) do Fork.begin is a custom module, makes a fork with the properly mysql connectio…

---

## [Render :update](https://www.ruby-forum.com/t/render-update/145986)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 7\
**Last updated:** [August 18, 2008, 4:44pm UTC](https://www.ruby-forum.com/t/render-update/145986 "2008-08-18T16:44:49Z")

</div>

I have a list of names in a drop-down and when one of those names it is picked I want my form to update a div of those selected names but to also update the drop-down so that name no longer appears in that list, which…

---

## [Best Database for a Nuby?](https://www.ruby-forum.com/t/best-database-for-a-nuby/146134)

<div class="topic-metadata">

**Author:** [@kylemathews](https://www.ruby-forum.com/u/kylemathews)\
**Replies:** 5\
**Last updated:** [August 18, 2008, 3:57pm UTC](https://www.ruby-forum.com/t/best-database-for-a-nuby/146134 "2008-08-18T15:57:14Z")

</div>

I have no prior experience with a database, and am trying to figure out which one to go with. I was going to go with MySQL (rather than Postgres, which seems to be considered superior) because it had more documentatio…

---

## [\[ANN\] Win a free week of Rails training](https://www.ruby-forum.com/t/ann-win-a-free-week-of-rails-training/146152)

<div class="topic-metadata">

**Author:** [@brandonpt](https://www.ruby-forum.com/u/brandonpt)\
**Replies:** 0\
**Last updated:** [August 18, 2008, 3:57pm UTC](https://www.ruby-forum.com/t/ann-win-a-free-week-of-rails-training/146152 "2008-08-18T15:57:14Z")

</div>

Want to learn Rails but canâ€™t scrounge up the cash for training? You can win a free spot at either the next Rails Session by Collective Idea starting next Monday, August 25, or to an advanced Rails session whenever …

---

## [\#28000Access denied for user 'root'@'localhost' (using password: NO) (Mysql::Error)](https://www.ruby-forum.com/t/28000access-denied-for-user-root-localhost-using-password-no-mysql-error/146067)

<div class="topic-metadata">

**Author:** [@albertleng](https://www.ruby-forum.com/u/albertleng)\
**Replies:** 9\
**Last updated:** [August 18, 2008, 3:54pm UTC](https://www.ruby-forum.com/t/28000access-denied-for-user-root-localhost-using-password-no-mysql-error/146067 "2008-08-18T15:54:53Z")

</div>

Hi. It’s really a painful experience learning Ruby on Rails so far. It costs me days to create a simple website and a simple application. I’m using “Ruby on Rails for dummies”. I’m doing “Programming with a Rails Mod…

---

## [Observer + Notifier give "Unprocessed view path found: nil"](https://www.ruby-forum.com/t/observer-notifier-give-unprocessed-view-path-found-nil/146043)

<div class="topic-metadata">

**Author:** [@DEfusion](https://www.ruby-forum.com/u/DEfusion)\
**Replies:** 1\
**Last updated:** [August 18, 2008, 3:26pm UTC](https://www.ruby-forum.com/t/observer-notifier-give-unprocessed-view-path-found-nil/146043 "2008-08-18T15:26:40Z")

</div>

I have a UserObserver registered which handles sending the emails, via a UserNotifier, for user signup etc. It works fine in my specs (well everything is being called as expected) however in the application if I call …

---

## [Details displayed on error page](https://www.ruby-forum.com/t/details-displayed-on-error-page/146132)

<div class="topic-metadata">

**Author:** [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Replies:** 6\
**Last updated:** [August 18, 2008, 2:04pm UTC](https://www.ruby-forum.com/t/details-displayed-on-error-page/146132 "2008-08-18T14:04:56Z")

</div>

hi all, whenever there’s an error, that error page displays all the data i.e. params,session vars,cookie,cache etc to the user. can’t we hide those details? or is there any other way to handle this? this happens irre…

---

## [Noob:: Parsing a PDF into usable data](https://www.ruby-forum.com/t/noob-parsing-a-pdf-into-usable-data/146109)

<div class="topic-metadata">

**Author:** [@bushymark](https://www.ruby-forum.com/u/bushymark)\
**Replies:** 2\
**Last updated:** [August 18, 2008, 12:17pm UTC](https://www.ruby-forum.com/t/noob-parsing-a-pdf-into-usable-data/146109 "2008-08-18T12:17:44Z")

</div>

Hey all, Beginner here, working on planning stage for an employee management app that I am about to start putting together. I was wondering if someone could point me in the right direction: The scheduling software sp…

---

## [Rails application on tomcat](https://www.ruby-forum.com/t/rails-application-on-tomcat/146136)

<div class="topic-metadata">

**Author:** [@sgovind83](https://www.ruby-forum.com/u/sgovind83)\
**Replies:** 0\
**Last updated:** [August 18, 2008, 11:54am UTC](https://www.ruby-forum.com/t/rails-application-on-tomcat/146136 "2008-08-18T11:54:13Z")

</div>

I have created rails application in jruby(LINUX). I have used following version 1.Jruby 1.0.3 (in /usr/local/) 2.Rails 2.0.2 3.Tomcat 6 4.JDK 1.6 5.MYSQL connector 5.0.6.jar in $JRUBY\_HOME/lib 6.Activerecord-jdbc-…

---

## ["map.resources :customers" and custom methods](https://www.ruby-forum.com/t/map-resources-customers-and-custom-methods/146131)

<div class="topic-metadata">

**Author:** [@tktktk](https://www.ruby-forum.com/u/tktktk)\
**Replies:** 4\
**Last updated:** [August 18, 2008, 11:52am UTC](https://www.ruby-forum.com/t/map-resources-customers-and-custom-methods/146131 "2008-08-18T11:52:59Z")

</div>

Hi We’re using map.resources :customers to give an external application access to our customers table. In addition to the standards methods like index/new/show etc… we would like to implement some custom methods. …

---

## [Search field in layout goes to another page](https://www.ruby-forum.com/t/search-field-in-layout-goes-to-another-page/146091)

<div class="topic-metadata">

**Author:** [@tyliong](https://www.ruby-forum.com/u/tyliong)\
**Replies:** 2\
**Last updated:** [August 18, 2008, 10:50am UTC](https://www.ruby-forum.com/t/search-field-in-layout-goes-to-another-page/146091 "2008-08-18T10:50:52Z")

</div>

i have a search form as part of a layout on one page. when i enter an object to search how do i bring it to another page? in order words not have layout default to the usual \<% yield %\>. \[layout\] { search box } \[lay…

---

## [Rake freeze problem!](https://www.ruby-forum.com/t/rake-freeze-problem/146125)

<div class="topic-metadata">

**Author:** [@dharmdip](https://www.ruby-forum.com/u/dharmdip)\
**Replies:** 2\
**Last updated:** [August 18, 2008, 10:31am UTC](https://www.ruby-forum.com/t/rake-freeze-problem/146125 "2008-08-18T10:31:54Z")

</div>

when i am trying to run rake rails:freeze:1.2.3 command i am having this kind of error in my command prompt ! how can i freeze my rails version ! help ! D:\\Malav\\IR\\InstantRails\\rails\_apps\\work\\rorjob\>rake rails:free…

---

## [Multiple Ajax problem](https://www.ruby-forum.com/t/multiple-ajax-problem/146116)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [August 18, 2008, 9:11am UTC](https://www.ruby-forum.com/t/multiple-ajax-problem/146116 "2008-08-18T09:11:50Z")

</div>

I am trying to do an ajax page that is going to have multiple ajax requests going on. The issue is that when the first request gets initiated I have other requests going on for some DB updates and they do not complet…

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

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