# Rails

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

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

---

## [Sanitize removes negative value in style](https://www.ruby-forum.com/t/sanitize-removes-negative-value-in-style/177886)

<div class="topic-metadata">

**Author:** [@nico](https://www.ruby-forum.com/u/nico)\
**Replies:** 0\
**Last updated:** [October 26, 2009, 10:14am UTC](https://www.ruby-forum.com/t/sanitize-removes-negative-value-in-style/177886 "2009-10-26T10:14:13Z")

</div>

Wonder if it is intended behaviour that sanitize removes a style like “margin:-3px”.

---

## [Ruby interpreter error in Windows Vista](https://www.ruby-forum.com/t/ruby-interpreter-error-in-windows-vista/177872)

<div class="topic-metadata">

**Author:** [@Volume4](https://www.ruby-forum.com/u/Volume4)\
**Replies:** 1\
**Last updated:** [October 26, 2009, 10:01am UTC](https://www.ruby-forum.com/t/ruby-interpreter-error-in-windows-vista/177872 "2009-10-26T10:01:55Z")

</div>

Hi there everyone, I have had a stable dev environment for some time now, well until my laptop was stolen :frowning: I am in the process of getting everything set-up again but I am facing a problem with the Ruby inter…

---

## [Rails 2.3.4 - can't find method \`cache\_template\_extensions'](https://www.ruby-forum.com/t/rails-2-3-4-cant-find-method-cache-template-extensions/177876)

<div class="topic-metadata">

**Author:** [@dreamwave](https://www.ruby-forum.com/u/dreamwave)\
**Replies:** 4\
**Last updated:** [October 26, 2009, 9:16am UTC](https://www.ruby-forum.com/t/rails-2-3-4-cant-find-method-cache-template-extensions/177876 "2009-10-26T09:16:15Z")

</div>

I’ve come up with an unusual problem right after installing Ruby+RoR. When I start server or console, I get these two errors: C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:602:in send': undefined metho…

---

## [Wrong soap4r interpretation of a WSDL](https://www.ruby-forum.com/t/wrong-soap4r-interpretation-of-a-wsdl/175585)

<div class="topic-metadata">

**Author:** [@PierreW](https://www.ruby-forum.com/u/PierreW)\
**Replies:** 2\
**Last updated:** [October 26, 2009, 9:13am UTC](https://www.ruby-forum.com/t/wrong-soap4r-interpretation-of-a-wsdl/175585 "2009-10-26T09:13:20Z")

</div>

Hi guys, I had a piece of code that was working perfectly fine. I went on to work on something else in my app, updated a few gems in the process… Now the first bit of code doesn’t work anymore, and I am lost. It seem…

---

## [Rake has time limit?](https://www.ruby-forum.com/t/rake-has-time-limit/177883)

<div class="topic-metadata">

**Author:** [@phoenix](https://www.ruby-forum.com/u/phoenix)\
**Replies:** 2\
**Last updated:** [October 26, 2009, 8:53am UTC](https://www.ruby-forum.com/t/rake-has-time-limit/177883 "2009-10-26T08:53:26Z")

</div>

I’m getting: rake aborted! execution expired. Is it because my rake task takes a long time to complete? Is there a way to get around this? I think, start the rake task as a daemon process should work, any other way?

---

## [Help Plzz (new to ruby)](https://www.ruby-forum.com/t/help-plzz-new-to-ruby/197010)

<div class="topic-metadata">

**Author:** [@antony\_4u](https://www.ruby-forum.com/u/antony_4u)\
**Replies:** 4\
**Last updated:** [October 26, 2009, 8:23am UTC](https://www.ruby-forum.com/t/help-plzz-new-to-ruby/197010 "2009-10-26T08:23:07Z")

</div>

In a \*.erb file I have a Form with controller action In that I have 3 textbox and a submit button while clicking submit button I want to get the value of all 3 textbox in controller I mean In java we ll get the value li…

---

## [Javascript error](https://www.ruby-forum.com/t/javascript-error/177837)

<div class="topic-metadata">

**Author:** [@jillyh0](https://www.ruby-forum.com/u/jillyh0)\
**Replies:** 1\
**Last updated:** [October 26, 2009, 8:09am UTC](https://www.ruby-forum.com/t/javascript-error/177837 "2009-10-26T08:09:04Z")

</div>

Hi, I am doing some stuff with Javascript. It runs fine on my local machine, however, I receive the following error on the deployed copy: Processing PropertiesController#new (for 69.86.211.169 at 2009-10-24 20:43:32…

---

## [Scriptaculous in place editor cancel](https://www.ruby-forum.com/t/scriptaculous-in-place-editor-cancel/177862)

<div class="topic-metadata">

**Author:** [@yumiu](https://www.ruby-forum.com/u/yumiu)\
**Replies:** 3\
**Last updated:** [October 26, 2009, 7:59am UTC](https://www.ruby-forum.com/t/scriptaculous-in-place-editor-cancel/177862 "2009-10-26T07:59:24Z")

</div>

Hi, I am playing with Ajax.InPlaceEditor I hide some elements in editMode:function(id){ $(‘some-element’).hide() } So when I click on edit, ‘some-element’ is hidden. But when I click on ‘cancel’, I want to show the…

---

## [Accessing named route helper in cache sweepers](https://www.ruby-forum.com/t/accessing-named-route-helper-in-cache-sweepers/177866)

<div class="topic-metadata">

**Author:** [@scottj97](https://www.ruby-forum.com/u/scottj97)\
**Replies:** 2\
**Last updated:** [October 26, 2009, 5:35am UTC](https://www.ruby-forum.com/t/accessing-named-route-helper-in-cache-sweepers/177866 "2009-10-26T05:35:01Z")

</div>

In my cache sweeper I call expire\_fragment and use some named route helpers for its argument (like comments\_path(…)). This works fine in the app, but in my tests it’s causing problems, because there’s no controller an…

---

## [Ajax really slow in production, very weird](https://www.ruby-forum.com/t/ajax-really-slow-in-production-very-weird/177850)

<div class="topic-metadata">

**Author:** [@phoenix](https://www.ruby-forum.com/u/phoenix)\
**Replies:** 6\
**Last updated:** [October 26, 2009, 4:49am UTC](https://www.ruby-forum.com/t/ajax-really-slow-in-production-very-weird/177850 "2009-10-26T04:49:56Z")

</div>

It works fine when I start a single instance of mongrel or thin. But when I use thin cluster or passenger, some ajax is really slow, takes about 2 minutes to complete. Any sugestion? By the way, I tried passenger for …

---

## [Image\_tag Positioning/Alignment](https://www.ruby-forum.com/t/image-tag-positioning-alignment/177855)

<div class="topic-metadata">

**Author:** [@about2flip](https://www.ruby-forum.com/u/about2flip)\
**Replies:** 3\
**Last updated:** [October 26, 2009, 1:06am UTC](https://www.ruby-forum.com/t/image-tag-positioning-alignment/177855 "2009-10-26T01:06:56Z")

</div>

Hi: I searched the forum before posting and could not find any help on how to position an image using image\_tag (‘image\_name’). I have an image in a div, and I need to move it to the right. How do I this? I have this…

---

## [Google App Engine](https://www.ruby-forum.com/t/google-app-engine/177754)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 13\
**Last updated:** [October 25, 2009, 9:49pm UTC](https://www.ruby-forum.com/t/google-app-engine/177754 "2009-10-25T21:49:08Z")

</div>

Is anyone doing a project involving GAE? Would love to hear of some existing projects! My understanding is that Rails 3 Datamapper will be a much, much better fit for Datastore?

---

## [Displaying a date 'properly'](https://www.ruby-forum.com/t/displaying-a-date-properly/177733)

<div class="topic-metadata">

**Author:** [@RubyonRails\_newbie](https://www.ruby-forum.com/u/RubyonRails_newbie)\
**Replies:** 18\
**Last updated:** [October 25, 2009, 9:12pm UTC](https://www.ruby-forum.com/t/displaying-a-date-properly/177733 "2009-10-25T21:12:55Z")

</div>

Hello everyone, I’m trying to work out how to display a date correctly in Ruby on Rails. At the moment i have a profile page, which when you add it on the site, the data to select is in day, month, year EG 01/10/1988 …

---

## [Render or update only one element of a table](https://www.ruby-forum.com/t/render-or-update-only-one-element-of-a-table/177784)

<div class="topic-metadata">

**Author:** [@Alex2101](https://www.ruby-forum.com/u/Alex2101)\
**Replies:** 3\
**Last updated:** [October 25, 2009, 9:08pm UTC](https://www.ruby-forum.com/t/render-or-update-only-one-element-of-a-table/177784 "2009-10-25T21:08:09Z")

</div>

Hi, I am pretty new to ror… I create a table filled thanks to a partial with a collection. Each line is a “form\_for” ending with a submit which update some values for a specific row. My problem is that I would like,…

---

## [Auto admin?](https://www.ruby-forum.com/t/auto-admin/177849)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 5\
**Last updated:** [October 25, 2009, 8:07pm UTC](https://www.ruby-forum.com/t/auto-admin/177849 "2009-10-25T20:07:51Z")

</div>

I’m sure we all find out that after some time, out admin pages look the same, and have roughly the same code in their controllers. I already have been able to dramatically dry out my admin/controllers code by creating…

---

## [Dirty objects](https://www.ruby-forum.com/t/dirty-objects/177860)

<div class="topic-metadata">

**Author:** [@musty](https://www.ruby-forum.com/u/musty)\
**Replies:** 2\
**Last updated:** [October 25, 2009, 7:45pm UTC](https://www.ruby-forum.com/t/dirty-objects/177860 "2009-10-25T19:45:52Z")

</div>

Hello all…I understand how dirty objects work and have gone into script/console and successfully tried it. What I don’t understand is how I can use it in an application. All references to its use are via console. I w…

---

## [Partials and Rendering Partial Contents](https://www.ruby-forum.com/t/partials-and-rendering-partial-contents/177859)

<div class="topic-metadata">

**Author:** [@jazcyk](https://www.ruby-forum.com/u/jazcyk)\
**Replies:** 2\
**Last updated:** [October 25, 2009, 6:42pm UTC](https://www.ruby-forum.com/t/partials-and-rendering-partial-contents/177859 "2009-10-25T18:42:31Z")

</div>

Hi, I have a complex bunch of divs and CSS that I’d like to tuck away into a partial. Essentially it’s a box which nests something. So my ideal situation would be if I could render the partial, and then yield out so …

---

## [Mongrel](https://www.ruby-forum.com/t/mongrel/177845)

<div class="topic-metadata">

**Author:** [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Replies:** 4\
**Last updated:** [October 25, 2009, 5:50pm UTC](https://www.ruby-forum.com/t/mongrel/177845 "2009-10-25T17:50:18Z")

</div>

I update rails from 2.0.2 to 2.2.3. I enter the command ruby script/server, it always start mongrel by default before, but now the server start webrick. How can I start the server by mongrel now?

---

## [Application helper methods in mailers not available?](https://www.ruby-forum.com/t/application-helper-methods-in-mailers-not-available/151553)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 7\
**Last updated:** [October 25, 2009, 5:27pm UTC](https://www.ruby-forum.com/t/application-helper-methods-in-mailers-not-available/151553 "2009-10-25T17:27:28Z")

</div>

Hi all I have some methods in application.rb and make them accessible to view using helper\_method :xxx Sadly they don’t seem to be available in mailer templates? Is that normal? Or did I miss something? Thanks Jos…

---

## [Plugin not found: \["git://github.com/collectiveidea/awesome\_nested\_set.git"\]](https://www.ruby-forum.com/t/plugin-not-found-git-github-com-collectiveidea-awesome-nested-set-git/177813)

<div class="topic-metadata">

**Author:** [@imdwalrus](https://www.ruby-forum.com/u/imdwalrus)\
**Replies:** 2\
**Last updated:** [October 25, 2009, 4:28pm UTC](https://www.ruby-forum.com/t/plugin-not-found-git-github-com-collectiveidea-awesome-nested-set-git/177813 "2009-10-25T16:28:21Z")

</div>

I’m trying to install the awesome\_nested\_set plugin in a new project. From the project directory, I enter script/plugin install git://github.com/collectiveidea/awesome\_nested\_set.git . I keep getting the error mess…

---

## [Multiple user types with Authlogic](https://www.ruby-forum.com/t/multiple-user-types-with-authlogic/177833)

<div class="topic-metadata">

**Author:** [@mark42](https://www.ruby-forum.com/u/mark42)\
**Replies:** 5\
**Last updated:** [October 25, 2009, 3:54pm UTC](https://www.ruby-forum.com/t/multiple-user-types-with-authlogic/177833 "2009-10-25T15:54:11Z")

</div>

After a lot of careful research, I’ve made the decision to go with Authlogic ( GitHub - binarylogic/authlogic: A simple ruby authentication solution. ) for authentication in my app. I currently have a User model (whic…

---

## [Undefined method \`^' for "0":String](https://www.ruby-forum.com/t/undefined-method-for-0-string/177846)

<div class="topic-metadata">

**Author:** [@teebye](https://www.ruby-forum.com/u/teebye)\
**Replies:** 3\
**Last updated:** [October 25, 2009, 3:11pm UTC](https://www.ruby-forum.com/t/undefined-method-for-0-string/177846 "2009-10-25T15:11:06Z")

</div>

Showing app/views/layouts/admin.html.erb where line #51 raised: undefined method \`^’ for “0”:String Extracted source (around line #51): 48: 49: 50: 51: \<% if flash\[:notice\] %\> 52: \<%= flash\[:notice…

---

## [Nested Attributes For HABTM - Deleting The Right Record](https://www.ruby-forum.com/t/nested-attributes-for-habtm-deleting-the-right-record/177841)

<div class="topic-metadata">

**Author:** [@MaggotChild](https://www.ruby-forum.com/u/MaggotChild)\
**Replies:** 0\
**Last updated:** [October 25, 2009, 6:10am UTC](https://www.ruby-forum.com/t/nested-attributes-for-habtm-deleting-the-right-record/177841 "2009-10-25T06:10:52Z")

</div>

In a many-to-many relationship, defined via has\_and\_belongs\_to\_many, accepts\_nested\_attributes\_for deletes the wrong record(s) when marked\_for\_destruction? == true. For example: class Ho \< AR has\_and\_belongs\_to\_many…

---

## [Saving changes before the user leaves a form page?](https://www.ruby-forum.com/t/saving-changes-before-the-user-leaves-a-form-page/177810)

<div class="topic-metadata">

**Author:** [@lunaclaire](https://www.ruby-forum.com/u/lunaclaire)\
**Replies:** 4\
**Last updated:** [October 25, 2009, 12:48am UTC](https://www.ruby-forum.com/t/saving-changes-before-the-user-leaves-a-form-page/177810 "2009-10-25T00:48:21Z")

</div>

I’ve been handed a new design for an edit view with a form, that allows the user to move on to the next object in a list. This means that there could be pending edits that need to be saved. The design called for wants…

---

## [Local not passing to partial when validation error](https://www.ruby-forum.com/t/local-not-passing-to-partial-when-validation-error/177623)

<div class="topic-metadata">

**Author:** [@drsharp](https://www.ruby-forum.com/u/drsharp)\
**Replies:** 2\
**Last updated:** [October 25, 2009, 12:48am UTC](https://www.ruby-forum.com/t/local-not-passing-to-partial-when-validation-error/177623 "2009-10-25T00:48:12Z")

</div>

Hello everyone, I am passing a variable (showco) to a partial using: \<%= render(:partial =\> “form”, :object =\> f, :locals=\>{:mode =\> “edit”, :showco =\> @showco } ) %\> It works fine if there are no validation errors.…

---

## [Currency helper](https://www.ruby-forum.com/t/currency-helper/177791)

<div class="topic-metadata">

**Author:** [@RVince](https://www.ruby-forum.com/u/RVince)\
**Replies:** 3\
**Last updated:** [October 25, 2009, 12:45am UTC](https://www.ruby-forum.com/t/currency-helper/177791 "2009-10-25T00:45:31Z")

</div>

Is there a helper method available for inputting currency amounts?

---

## [Validates\_uniqueness\_of across multiple rows?](https://www.ruby-forum.com/t/validates-uniqueness-of-across-multiple-rows/177796)

<div class="topic-metadata">

**Author:** [@raji](https://www.ruby-forum.com/u/raji)\
**Replies:** 2\
**Last updated:** [October 24, 2009, 8:12pm UTC](https://www.ruby-forum.com/t/validates-uniqueness-of-across-multiple-rows/177796 "2009-10-24T20:12:59Z")

</div>

Ok, that’s not the best subject line, but I couldn’t think of a concise way to describe what I’m trying to do. I’ve got two models. Grouping simply contains an id and a few other attributes (e.g. rating). A grouping…

---

## [Issue with eager loading in nested routes](https://www.ruby-forum.com/t/issue-with-eager-loading-in-nested-routes/177817)

<div class="topic-metadata">

**Author:** [@nin\_d](https://www.ruby-forum.com/u/nin_d)\
**Replies:** 8\
**Last updated:** [October 24, 2009, 6:09pm UTC](https://www.ruby-forum.com/t/issue-with-eager-loading-in-nested-routes/177817 "2009-10-24T18:09:28Z")

</div>

Hi Everyone, I have issue while doing eager loading when url is =\> http://127.0.0.1:3001/projects/1/features I also did \<%= debug @features %\> to dump @feature object but I did not see ‘owner’ being eager-loaded. Ca…

---

## [There is no server file in script folder](https://www.ruby-forum.com/t/there-is-no-server-file-in-script-folder/177819)

<div class="topic-metadata">

**Author:** [@karthikeyan](https://www.ruby-forum.com/u/karthikeyan)\
**Replies:** 2\
**Last updated:** [October 24, 2009, 5:00pm UTC](https://www.ruby-forum.com/t/there-is-no-server-file-in-script-folder/177819 "2009-10-24T17:00:58Z")

</div>

Hello, I installed ROR on my Ubuntu. I created a rails project using he command rails demo , when I try to run ruby script/server it shows an error like this : ruby: No such file or directory – script/server (LoadErro…

---

## [ANN: Mastering Ruby and Rails Training](https://www.ruby-forum.com/t/ann-mastering-ruby-and-rails-training/177646)

<div class="topic-metadata">

**Author:** [@clarkware](https://www.ruby-forum.com/u/clarkware)\
**Replies:** 1\
**Last updated:** [October 24, 2009, 3:18pm UTC](https://www.ruby-forum.com/t/ann-mastering-ruby-and-rails-training/177646 "2009-10-24T15:18:32Z")

</div>

Hi Folks, We’re pleased to announce a new 4-day training course for practicing Rails developers called “Mastering Ruby and Rails” taught by Dave Thomas and Chad F.: http://pragmaticstudio.com/mastering-ruby-rails Th…

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

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