# Rails

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

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

---

## [JSON::ParserError](https://www.ruby-forum.com/t/json-parsererror/178542)

<div class="topic-metadata">

**Author:** [@smit\_shah](https://www.ruby-forum.com/u/smit_shah)\
**Replies:** 1\
**Last updated:** [November 6, 2009, 8:13am UTC](https://www.ruby-forum.com/t/json-parsererror/178542 "2009-11-06T08:13:26Z")

</div>

Hi all… I am using Json 1.1.7 When I try to parse with the help of it, it gives me error like “618: unexpected token at ‘Error: you are requesting an invalid URL.’” Help me out of it… Thanks…

---

## [Render partial locals not passing all variables](https://www.ruby-forum.com/t/render-partial-locals-not-passing-all-variables/178526)

<div class="topic-metadata">

**Author:** [@Rit\_Li](https://www.ruby-forum.com/u/Rit_Li)\
**Replies:** 1\
**Last updated:** [November 6, 2009, 5:49am UTC](https://www.ruby-forum.com/t/render-partial-locals-not-passing-all-variables/178526 "2009-11-06T05:49:16Z")

</div>

= render :partial =\> “locations/form”, :locals =\> { :f =\> return\_to\_form, :hello =\> “hello” } “f” is accessible from \_fom.html.haml, but not “hello”, why is that?

---

## [Unable to install gem passenger on Windows xp](https://www.ruby-forum.com/t/unable-to-install-gem-passenger-on-windows-xp/178538)

<div class="topic-metadata">

**Author:** [@anilbhat21](https://www.ruby-forum.com/u/anilbhat21)\
**Replies:** 0\
**Last updated:** [November 6, 2009, 5:07am UTC](https://www.ruby-forum.com/t/unable-to-install-gem-passenger-on-windows-xp/178538 "2009-11-06T05:07:58Z")

</div>

I tried to use “gem install passenger” on windows xp but couldn’t do it. If anyone has tried it, please share the experience…

---

## [Nested objects not propagating from view](https://www.ruby-forum.com/t/nested-objects-not-propagating-from-view/178534)

<div class="topic-metadata">

**Author:** [@Todd\_ASJacobs](https://www.ruby-forum.com/u/Todd_ASJacobs)\
**Replies:** 0\
**Last updated:** [November 6, 2009, 3:44am UTC](https://www.ruby-forum.com/t/nested-objects-not-propagating-from-view/178534 "2009-11-06T03:44:12Z")

</div>

I thought I had this fixed, but apparently not. It works okay from the console, but not from the view. I have the following: partial schema create\_table “users”, :force =\> true do |t| t.string “login”, :null =\> …

---

## [Cucumber cannot find a static page located in public folder](https://www.ruby-forum.com/t/cucumber-cannot-find-a-static-page-located-in-public-folder/178487)

<div class="topic-metadata">

**Author:** [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Replies:** 1\
**Last updated:** [November 5, 2009, 11:31pm UTC](https://www.ruby-forum.com/t/cucumber-cannot-find-a-static-page-located-in-public-folder/178487 "2009-11-05T23:31:16Z")

</div>

Hi, I recently started with Cucumber. I’m having an issue with a static page that I locate in the public folder. When an user registers to the site I send an activation code via email. That notification is show to th…

---

## [Confusing routing behavior](https://www.ruby-forum.com/t/confusing-routing-behavior/178523)

<div class="topic-metadata">

**Author:** [@adammontgomery](https://www.ruby-forum.com/u/adammontgomery)\
**Replies:** 2\
**Last updated:** [November 5, 2009, 10:50pm UTC](https://www.ruby-forum.com/t/confusing-routing-behavior/178523 "2009-11-05T22:50:26Z")

</div>

Hi everyone I have a strange routing behavior. And I don’t know when it started being. I have a form for image upload using attachment\_fu. The code in the view is \<% form\_for(:image, :url =\> “/images/create”, :html …

---

## [Config prob? - prod app trying to pull assets from localhost](https://www.ruby-forum.com/t/config-prob-prod-app-trying-to-pull-assets-from-localhost/178516)

<div class="topic-metadata">

**Author:** [@lunaclaire](https://www.ruby-forum.com/u/lunaclaire)\
**Replies:** 1\
**Last updated:** [November 5, 2009, 9:49pm UTC](https://www.ruby-forum.com/t/config-prob-prod-app-trying-to-pull-assets-from-localhost/178516 "2009-11-05T21:49:25Z")

</div>

I just got deployed for the first time w a new (to me) hosting provider yesterday with an evolving app on a project for a client and one thing I still am having pros with is that all the assets the app needs (image, c…

---

## [Textile formatting highlighted ferret search results](https://www.ruby-forum.com/t/textile-formatting-highlighted-ferret-search-results/178520)

<div class="topic-metadata">

**Author:** [@steve\_bell](https://www.ruby-forum.com/u/steve_bell)\
**Replies:** 0\
**Last updated:** [November 5, 2009, 9:05pm UTC](https://www.ruby-forum.com/t/textile-formatting-highlighted-ferret-search-results/178520 "2009-11-05T21:05:32Z")

</div>

Hi All, I am running ferret as my search engine against a table that contains two text fields that contain textile formatting using the RedCloth gem. I’ve added the fields in to the model as below: acts\_as\_ferret :fi…

---

## [Help with Favourite model](https://www.ruby-forum.com/t/help-with-favourite-model/178518)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 1\
**Last updated:** [November 5, 2009, 9:00pm UTC](https://www.ruby-forum.com/t/help-with-favourite-model/178518 "2009-11-05T21:00:11Z")

</div>

I have a User model, a Favourite model, a Film model and a Song model. I would like o achieve user favourite films and user favourte songs with databse associations, using just a Favourite model. Which will be the be…

---

## [Update data using jQuery UI dialog](https://www.ruby-forum.com/t/update-data-using-jquery-ui-dialog/178517)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 2\
**Last updated:** [November 5, 2009, 8:32pm UTC](https://www.ruby-forum.com/t/update-data-using-jquery-ui-dialog/178517 "2009-11-05T20:32:12Z")

</div>

Hello all, I’m just a newbie with Ruby on Rails but I’ve worked a little more with jQuery. I have a RoR application that has a very long “New” form. One of the fields in the form is “Project Notes”. I have created …

---

## [Question on caching](https://www.ruby-forum.com/t/question-on-caching/178465)

<div class="topic-metadata">

**Author:** [@gfburke](https://www.ruby-forum.com/u/gfburke)\
**Replies:** 2\
**Last updated:** [November 5, 2009, 7:50pm UTC](https://www.ruby-forum.com/t/question-on-caching/178465 "2009-11-05T19:50:02Z")

</div>

Hi there, I have a question about caching templates. We have a need to modify certain erb files on the filesystem from time to time, but when modified they don’t update in the Rails app until the server is restarted …

---

## [InvitaciÃ³n a conectarnos en LinkedIn](https://www.ruby-forum.com/t/invitacia-n-a-conectarnos-en-linkedin/178515)

<div class="topic-metadata">

**Author:** [@ivmafo](https://www.ruby-forum.com/u/ivmafo)\
**Replies:** 0\
**Last updated:** [November 5, 2009, 7:03pm UTC](https://www.ruby-forum.com/t/invitacia-n-a-conectarnos-en-linkedin/178515 "2009-11-05T19:03:11Z")

</div>

LinkedIn ivan forero requested to add you as a connection on LinkedIn: Mitin, Me gustarÃ­a aÃ±adirte a mi red profesional en LinkedIn. -ivan Accept invitation from ivan forero View invitation from ivan forero (…

---

## [Confirmation Checkboxes - any good ideas?](https://www.ruby-forum.com/t/confirmation-checkboxes-any-good-ideas/178496)

<div class="topic-metadata">

**Author:** [@icke](https://www.ruby-forum.com/u/icke)\
**Replies:** 8\
**Last updated:** [November 5, 2009, 6:47pm UTC](https://www.ruby-forum.com/t/confirmation-checkboxes-any-good-ideas/178496 "2009-11-05T18:47:55Z")

</div>

I have a site in development that I need to customer to confirm a few things before they can proceed to the payment page. I intend to present them with the relevant questions and then check that they have answered th…

---

## [Errornous WSDL output for complex type](https://www.ruby-forum.com/t/errornous-wsdl-output-for-complex-type/178312)

<div class="topic-metadata">

**Author:** [@kalpesh13131](https://www.ruby-forum.com/u/kalpesh13131)\
**Replies:** 3\
**Last updated:** [November 5, 2009, 6:13pm UTC](https://www.ruby-forum.com/t/errornous-wsdl-output-for-complex-type/178312 "2009-11-05T18:13:23Z")

</div>

I tried to create WSDL with rails 1.2.6 but when I tried to return a custom data type rather than built in data type in my web API, I got this kind of WSDL data(I have not put entire WSDL file here but just few parts …

---

## [Restful route customization](https://www.ruby-forum.com/t/restful-route-customization/178510)

<div class="topic-metadata">

**Author:** [@jm1700](https://www.ruby-forum.com/u/jm1700)\
**Replies:** 1\
**Last updated:** [November 5, 2009, 5:45pm UTC](https://www.ruby-forum.com/t/restful-route-customization/178510 "2009-11-05T17:45:57Z")

</div>

How can i customize restful route urls to friendly urls ? i have http://mydomain.com/pages/424/ and i want to have http://mydomain.com/pages/424/something-something

---

## [Re: Using rails edge or wait for rails 3](https://www.ruby-forum.com/t/re-using-rails-edge-or-wait-for-rails-3/178483)

<div class="topic-metadata">

**Author:** [@builtbysimple](https://www.ruby-forum.com/u/builtbysimple)\
**Replies:** 1\
**Last updated:** [November 5, 2009, 5:14pm UTC](https://www.ruby-forum.com/t/re-using-rails-edge-or-wait-for-rails-3/178483 "2009-11-05T17:14:50Z")

</div>

Don’t use the bleeding edge version yet if you are developing something that is really critical. Things change and break really quickly. Unless you are prepared for surprises, go for it. I am currently using the edge …

---

## [Config.action\_controller.session\_options\[:cookie\_only\] = true](https://www.ruby-forum.com/t/config-action-controller-session-options-cookie-only-true/178506)

<div class="topic-metadata">

**Author:** [@suki](https://www.ruby-forum.com/u/suki)\
**Replies:** 0\
**Last updated:** [November 5, 2009, 4:04pm UTC](https://www.ruby-forum.com/t/config-action-controller-session-options-cookie-only-true/178506 "2009-11-05T16:04:02Z")

</div>

Recently, I got this security vulnerability on my app: Ruby on Rails Multiple Method Session Fixation Synopsis : The remote web server is affected by a session fixation vulnerability. Description : The web se…

---

## [Transactions](https://www.ruby-forum.com/t/transactions/178503)

<div class="topic-metadata">

**Author:** [@ivanstorck](https://www.ruby-forum.com/u/ivanstorck)\
**Replies:** 0\
**Last updated:** [November 5, 2009, 3:52pm UTC](https://www.ruby-forum.com/t/transactions/178503 "2009-11-05T15:52:02Z")

</div>

There are many transactions in our project. In some methods I need to know was transaction success or not . Also I want to catch exceptions like ActiveRecord::RecordInvalid in one place and not propagate them on to hi…

---

## [tabIndex not working for select or textarea in form\_for](https://www.ruby-forum.com/t/tabindex-not-working-for-select-or-textarea-in-form-for/178501)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 1\
**Last updated:** [November 5, 2009, 3:47pm UTC](https://www.ruby-forum.com/t/tabindex-not-working-for-select-or-textarea-in-form-for/178501 "2009-11-05T15:47:49Z")

</div>

Hello all, Maybe this is something easy to solve but I can set all my text\_field tabIndex by { :tabIndex =\> ‘2’}. When I try to do the same for the select or the textarea it doesn’t work. Is there something I’m miss…

---

## [No such file to load -- uuid (MissingSourceFile)](https://www.ruby-forum.com/t/no-such-file-to-load-uuid-missingsourcefile/178502)

<div class="topic-metadata">

**Author:** [@suki](https://www.ruby-forum.com/u/suki)\
**Replies:** 0\
**Last updated:** [November 5, 2009, 3:36pm UTC](https://www.ruby-forum.com/t/no-such-file-to-load-uuid-missingsourcefile/178502 "2009-11-05T15:36:31Z")

</div>

Hi there, I was trying to use both Ruby 1.8.6 and Ruby 1.9.1 on my laptop. After I install Ruby 1.9.1, I went back to my Ruby 1.8.6, and run : Ruby script/server. I got the following error: /System/Library/Frameworks…

---

## [Using rails edge or wait for rails 3](https://www.ruby-forum.com/t/using-rails-edge-or-wait-for-rails-3/178480)

<div class="topic-metadata">

**Author:** [@papipo](https://www.ruby-forum.com/u/papipo)\
**Replies:** 2\
**Last updated:** [November 5, 2009, 3:09pm UTC](https://www.ruby-forum.com/t/using-rails-edge-or-wait-for-rails-3/178480 "2009-11-05T15:09:35Z")

</div>

Hi all, I’m developing a CMS prototype and I plan to use rails 3. The thing is, do I need to change anything important in my rails 2 application to support rails 3 features? Like in environment, initializers or any “…

---

## [Counting result "polymorphically"](https://www.ruby-forum.com/t/counting-result-polymorphically/178497)

<div class="topic-metadata">

**Author:** [@Geoffroy\_G](https://www.ruby-forum.com/u/Geoffroy_G)\
**Replies:** 0\
**Last updated:** [November 5, 2009, 2:37pm UTC](https://www.ruby-forum.com/t/counting-result-polymorphically/178497 "2009-11-05T14:37:59Z")

</div>

Hello, I have the following situation in a rails application, where A, B and C are models (objects) and are linked in the following way: A :has\_many B A :has\_many C, :as =\> :sumtinable B :belongs\_to A B :has\_many C…

---

## [Which finder syntax would be preferred as far as being the most database agnostic?](https://www.ruby-forum.com/t/which-finder-syntax-would-be-preferred-as-far-as-being-the-most-database-agnostic/178474)

<div class="topic-metadata">

**Author:** [@coolmenu](https://www.ruby-forum.com/u/coolmenu)\
**Replies:** 4\
**Last updated:** [November 5, 2009, 2:37pm UTC](https://www.ruby-forum.com/t/which-finder-syntax-would-be-preferred-as-far-as-being-the-most-database-agnostic/178474 "2009-11-05T14:37:59Z")

</div>

Which finder syntax is preferred? Or are they the same? I’m developing on sqlite and I’ve posted the result of each query…they kind of look the same but not really. Would this scale to say, Mysql or Postgres? Thank…

---

## [Sending Mails with mutations Ã¤,Ã¼,Ã¶](https://www.ruby-forum.com/t/sending-mails-with-mutations-a-a-a/178458)

<div class="topic-metadata">

**Author:** [@adammontgomery](https://www.ruby-forum.com/u/adammontgomery)\
**Replies:** 11\
**Last updated:** [November 5, 2009, 2:04pm UTC](https://www.ruby-forum.com/t/sending-mails-with-mutations-a-a-a/178458 "2009-11-05T14:04:39Z")

</div>

Hi everyone I am sending mails with rails in German. The Problem is that the German letters Ã¤,Ã¼,Ã¶ are arriving correctly at the receiver. When the subject contains the word FÃ¼r the receiver gets FÃƒÂ¼r Does an…

---

## [Doing redirection on a remote call to a function](https://www.ruby-forum.com/t/doing-redirection-on-a-remote-call-to-a-function/178493)

<div class="topic-metadata">

**Author:** [@charanya](https://www.ruby-forum.com/u/charanya)\
**Replies:** 2\
**Last updated:** [November 5, 2009, 12:50pm UTC](https://www.ruby-forum.com/t/doing-redirection-on-a-remote-call-to-a-function/178493 "2009-11-05T12:50:17Z")

</div>

Hi All In my application,i have a form which contains a select box for “categories” And when the user selects a category,a remote function is called which fetches a list of subcategories and populates in another sele…

---

## [Text Editor for Fedora10](https://www.ruby-forum.com/t/text-editor-for-fedora10/178485)

<div class="topic-metadata">

**Author:** [@salil](https://www.ruby-forum.com/u/salil)\
**Replies:** 5\
**Last updated:** [November 5, 2009, 12:01pm UTC](https://www.ruby-forum.com/t/text-editor-for-fedora10/178485 "2009-11-05T12:01:31Z")

</div>

Hi All, I want a Best Text Editor for the Ruby on Rails. I am using Fedora 10. If possible editor should integrate with CVS. Also how to install that editor.If anyone has any idea please help me out. Thanks in Advanc…

---

## [Web Scraping](https://www.ruby-forum.com/t/web-scraping/178476)

<div class="topic-metadata">

**Author:** [@smit\_shah](https://www.ruby-forum.com/u/smit_shah)\
**Replies:** 3\
**Last updated:** [November 5, 2009, 11:32am UTC](https://www.ruby-forum.com/t/web-scraping/178476 "2009-11-05T11:32:47Z")

</div>

Hi all… I want to implement the scraping for my rails application. Any idea??? Thanks…

---

## [Domain to sub domain pointer](https://www.ruby-forum.com/t/domain-to-sub-domain-pointer/178352)

<div class="topic-metadata">

**Author:** [@Abhishek\_shukla](https://www.ruby-forum.com/u/Abhishek_shukla)\
**Replies:** 2\
**Last updated:** [November 5, 2009, 11:04am UTC](https://www.ruby-forum.com/t/domain-to-sub-domain-pointer/178352 "2009-11-05T11:04:56Z")

</div>

Hello Friends, I have a requirement where a user can configure there own domain. For example We will provide a subdomain to every user who will get registered to our site. For e.g xyz.example.com But if the user al…

---

## [Controller/view changes for editing nested forms?](https://www.ruby-forum.com/t/controller-view-changes-for-editing-nested-forms/178486)

<div class="topic-metadata">

**Author:** [@Todd\_ASJacobs](https://www.ruby-forum.com/u/Todd_ASJacobs)\
**Replies:** 0\
**Last updated:** [November 5, 2009, 10:56am UTC](https://www.ruby-forum.com/t/controller-view-changes-for-editing-nested-forms/178486 "2009-11-05T10:56:09Z")

</div>

I’ve successfully set up a nested form from the controller: def new @user = User.new @user.build\_contact.build\_address respond\_to do |format| format.html # new.html.erb format.xml { render :xml =\> @user } end e…

---

## [Web Services](https://www.ruby-forum.com/t/web-services/178430)

<div class="topic-metadata">

**Author:** [@Steven\_Elliott\_Jr](https://www.ruby-forum.com/u/Steven_Elliott_Jr)\
**Replies:** 3\
**Last updated:** [November 5, 2009, 10:53am UTC](https://www.ruby-forum.com/t/web-services/178430 "2009-11-05T10:53:13Z")

</div>

Hello, Has anyone had to write a web service in Rails? If so, I’d love to get some information from you as to where to begin. I have recently started introducing Rails into the enterprise at my office. It has been me…

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

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