# Rails

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

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

---

## [Rexml](https://www.ruby-forum.com/t/rexml/177575)

<div class="topic-metadata">

**Author:** [@srinathbtech](https://www.ruby-forum.com/u/srinathbtech)\
**Replies:** 10\
**Last updated:** [October 23, 2009, 6:46am UTC](https://www.ruby-forum.com/t/rexml/177575 "2009-10-23T06:46:04Z")

</div>

Hi, How to embed ruby code in xml . here is my XML template : string = \<\<EOF \<?xml version="1.0" encoding="UTF-8"?\> The End 0 0.8999999762000001 EOF xml = string.gsub('"',"'") I need to use loop below tag…

---

## [A copy of Authenticated/ArgumentError in Smerf\_forms#show](https://www.ruby-forum.com/t/a-copy-of-authenticated-argumenterror-in-smerf-forms-show/177752)

<div class="topic-metadata">

**Author:** [@cybo0](https://www.ruby-forum.com/u/cybo0)\
**Replies:** 0\
**Last updated:** [October 23, 2009, 2:26am UTC](https://www.ruby-forum.com/t/a-copy-of-authenticated-argumenterror-in-smerf-forms-show/177752 "2009-10-23T02:26:14Z")

</div>

the full text of the error is below. It seems like that Rails gets confused with dependencies. i tried the solution offered online, specifically insert config.load\_paths += %W( #{RAILS\_ROOT}/lib ) config.load\_once\_p…

---

## [Rake db:seed problems](https://www.ruby-forum.com/t/rake-db-seed-problems/177730)

<div class="topic-metadata">

**Author:** [@jamie](https://www.ruby-forum.com/u/jamie)\
**Replies:** 4\
**Last updated:** [October 23, 2009, 2:08am UTC](https://www.ruby-forum.com/t/rake-db-seed-problems/177730 "2009-10-23T02:08:56Z")

</div>

Hello All, I’m having trouble using the new rake db:seed function. I initially built my app in Rails 3.2.2 but have updated and re-frozen the new version (3.2.4) which is supposed to have the new data seeding functio…

---

## [Hard to do: Creating routes that are permalinks with context info](https://www.ruby-forum.com/t/hard-to-do-creating-routes-that-are-permalinks-with-context-info/177738)

<div class="topic-metadata">

**Author:** [@robb](https://www.ruby-forum.com/u/robb)\
**Replies:** 4\
**Last updated:** [October 23, 2009, 12:11am UTC](https://www.ruby-forum.com/t/hard-to-do-creating-routes-that-are-permalinks-with-context-info/177738 "2009-10-23T00:11:17Z")

</div>

Simple permalinks, yes, like: /weather/report/10/3 But I do not see how to create permalinks for large collections of documents, like: /france/weather/report/10/3 /europe/weather/report/10/3 There’s one big differe…

---

## [Form helper for an array?](https://www.ruby-forum.com/t/form-helper-for-an-array/177747)

<div class="topic-metadata">

**Author:** [@Felix\_SchSSS\_fer](https://www.ruby-forum.com/u/Felix_SchSSS_fer)\
**Replies:** 0\
**Last updated:** [October 22, 2009, 11:25pm UTC](https://www.ruby-forum.com/t/form-helper-for-an-array/177747 "2009-10-22T23:25:01Z")

</div>

Hello, I’m looking for a form helper to create text\_fields to populate an array parameter to the object the form describes. More to the point: I’m trying to write a doodle plugin for redmine, and I have a form\_for th…

---

## [Find all with :conditions on NULL values](https://www.ruby-forum.com/t/find-all-with-conditions-on-null-values/177643)

<div class="topic-metadata">

**Author:** [@Jej](https://www.ruby-forum.com/u/Jej)\
**Replies:** 2\
**Last updated:** [October 22, 2009, 11:19pm UTC](https://www.ruby-forum.com/t/find-all-with-conditions-on-null-values/177643 "2009-10-22T23:19:10Z")

</div>

Hi all, I don’t understand why this does not work: Model.all(:conditions =\> \[“first\_category\_id = ?”, nil\]) or Model.all (:conditions =\> “first\_category\_id = NULL”) to get all records having NULL in first\_category\_id…

---

## [Get return from oracle procedure](https://www.ruby-forum.com/t/get-return-from-oracle-procedure/177737)

<div class="topic-metadata">

**Author:** [@rafaelrosafu](https://www.ruby-forum.com/u/rafaelrosafu)\
**Replies:** 5\
**Last updated:** [October 22, 2009, 11:18pm UTC](https://www.ruby-forum.com/t/get-return-from-oracle-procedure/177737 "2009-10-22T23:18:35Z")

</div>

Hi all, I have a procedure in which I pass two integers and two dates and get two integer as the result.How could I read the response with ROR? HereÂ´s my code: ActiveRecord::Base.connection.execute(“DECLARE RESULTV…

---

## [Unable to Install Ruby Java Bridge](https://www.ruby-forum.com/t/unable-to-install-ruby-java-bridge/142164)

<div class="topic-metadata">

**Author:** [@ror\_arch](https://www.ruby-forum.com/u/ror_arch)\
**Replies:** 11\
**Last updated:** [October 22, 2009, 10:33pm UTC](https://www.ruby-forum.com/t/unable-to-install-ruby-java-bridge/142164 "2009-10-22T22:33:28Z")

</div>

I have tried installing RJB but I keep getting this error : – C:\\ruby\\letter4sure\>gem install rjb Building native extensions. This could take a while… ERROR: Error installing rjb: ERROR: Failed to build gem native…

---

## [Mongrel big trouble with --prefix and rendering](https://www.ruby-forum.com/t/mongrel-big-trouble-with-prefix-and-rendering/177742)

<div class="topic-metadata">

**Author:** [@mex23](https://www.ruby-forum.com/u/mex23)\
**Replies:** 0\
**Last updated:** [October 22, 2009, 8:49pm UTC](https://www.ruby-forum.com/t/mongrel-big-trouble-with-prefix-and-rendering/177742 "2009-10-22T20:49:00Z")

</div>

Hi folks, I have got a big problem out here. I’m using a mongrel cluster with --prefix parameter, but something very strange it’s happening; rails redirection happens without troubles, and I’m redirected to the righ…

---

## [Collection\_select and has\_many :through](https://www.ruby-forum.com/t/collection-select-and-has-many-through/177731)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [October 22, 2009, 7:44pm UTC](https://www.ruby-forum.com/t/collection-select-and-has-many-through/177731 "2009-10-22T19:44:16Z")

</div>

I am having a bit of an issue with updating multiple models from one form - and in particular the collection\_select related to a has\_many through relationship. I have the following models: (Location is a pseudo-class…

---

## [Plugin to track create, update, delete on certain tables?](https://www.ruby-forum.com/t/plugin-to-track-create-update-delete-on-certain-tables/177642)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 5\
**Last updated:** [October 22, 2009, 5:46pm UTC](https://www.ruby-forum.com/t/plugin-to-track-create-update-delete-on-certain-tables/177642 "2009-10-22T17:46:01Z")

</div>

Hi all I’d like to start keeping track of who has created, updated or deleted certain of our models - eg users, resources, lessons. The ‘who’ would generally be simply the id that is in session\[:id\], ie the current u…

---

## [Drag and drop table row problem](https://www.ruby-forum.com/t/drag-and-drop-table-row-problem/177723)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 1\
**Last updated:** [October 22, 2009, 5:45pm UTC](https://www.ruby-forum.com/t/drag-and-drop-table-row-problem/177723 "2009-10-22T17:45:57Z")

</div>

Hello all, I’m trying my first drag and drop project. Dragging a table row from one table to another. First, get table 1 row to be draggable. I looked over several examples of Prototype/Scriptaculous of drag/drop a…

---

## [Wish to hire mature RonR consultant](https://www.ruby-forum.com/t/wish-to-hire-mature-ronr-consultant/177724)

<div class="topic-metadata">

**Author:** [@InventoryTrackers](https://www.ruby-forum.com/u/InventoryTrackers)\
**Replies:** 0\
**Last updated:** [October 22, 2009, 5:44pm UTC](https://www.ruby-forum.com/t/wish-to-hire-mature-ronr-consultant/177724 "2009-10-22T17:44:48Z")

</div>

I’ve been developing RonR applications for three years and wish to start making things a little easier. I’d like to hire someone who is mature in their thinking to help me find a solution. My ambition is to find a wa…

---

## [A gem can display ruby methods call stack on browser](https://www.ruby-forum.com/t/a-gem-can-display-ruby-methods-call-stack-on-browser/177720)

<div class="topic-metadata">

**Author:** [@flyerhzm](https://www.ruby-forum.com/u/flyerhzm)\
**Replies:** 0\
**Last updated:** [October 22, 2009, 4:54pm UTC](https://www.ruby-forum.com/t/a-gem-can-display-ruby-methods-call-stack-on-browser/177720 "2009-10-22T16:54:27Z")

</div>

Hi guys, I’m writing a gem monitor these days. The monitor gem can display ruby methods call stack on browser. It is based on unroller gem, unroller gem prints methods call stack in console, but it is inconvenient to …

---

## [Rails security help](https://www.ruby-forum.com/t/rails-security-help/177292)

<div class="topic-metadata">

**Author:** [@marli03](https://www.ruby-forum.com/u/marli03)\
**Replies:** 3\
**Last updated:** [October 22, 2009, 4:41pm UTC](https://www.ruby-forum.com/t/rails-security-help/177292 "2009-10-22T16:41:45Z")

</div>

Hey I was wondering if anyone knows of a gem or plugin that can limit fields returned based on the User’s role? I’m looking for something that will basically rewrite the find() method to limit the fields returned bas…

---

## ["\<%= %\>", "\<%- %\>" and "\<% -%\>"](https://www.ruby-forum.com/t/and/177676)

<div class="topic-metadata">

**Author:** [@duke](https://www.ruby-forum.com/u/duke)\
**Replies:** 3\
**Last updated:** [October 22, 2009, 4:40pm UTC](https://www.ruby-forum.com/t/and/177676 "2009-10-22T16:40:13Z")

</div>

When I want to show output, “\<%= %\>” When I do not want to show output, “\<%- %\>” or “\<% %\>” What about this? “\<% -%\>” Is this same as “\<%- %\>”? -duke

---

## [Escape Word chracters for PostGRES](https://www.ruby-forum.com/t/escape-word-chracters-for-postgres/177675)

<div class="topic-metadata">

**Author:** [@bikle](https://www.ruby-forum.com/u/bikle)\
**Replies:** 12\
**Last updated:** [October 22, 2009, 4:27pm UTC](https://www.ruby-forum.com/t/escape-word-chracters-for-postgres/177675 "2009-10-22T16:27:04Z")

</div>

Hi, I am working on an app that reads a .csv file and loads each cell as a row into a database. However much I discourage users to copy and past curly quotes from MS Word into their .csv, I need to build in a way to h…

---

## [Using Rails to Kill Your Signup Forms](https://www.ruby-forum.com/t/using-rails-to-kill-your-signup-forms/177688)

<div class="topic-metadata">

**Author:** [@logan](https://www.ruby-forum.com/u/logan)\
**Replies:** 1\
**Last updated:** [October 22, 2009, 3:37pm UTC](https://www.ruby-forum.com/t/using-rails-to-kill-your-signup-forms/177688 "2009-10-22T15:37:15Z")

</div>

Even though the gradual engagement meme has been around for a while, and everyone just hates signup forms, they just seem to keep popping up like a bad habit. My site, Newsforwhatyoudo.com was one of the guilty partie…

---

## [XML file using Nokogiri gem](https://www.ruby-forum.com/t/xml-file-using-nokogiri-gem/177636)

<div class="topic-metadata">

**Author:** [@ghanshyam\_6786](https://www.ruby-forum.com/u/ghanshyam_6786)\
**Replies:** 4\
**Last updated:** [October 22, 2009, 3:13pm UTC](https://www.ruby-forum.com/t/xml-file-using-nokogiri-gem/177636 "2009-10-22T15:13:18Z")

</div>

Hello friends, Can you guys give me some idea about how to Create XML file using Nokogiri gem.

---

## [Using will\_paginate](https://www.ruby-forum.com/t/using-will-paginate/177713)

<div class="topic-metadata">

**Author:** [@michbukana](https://www.ruby-forum.com/u/michbukana)\
**Replies:** 1\
**Last updated:** [October 22, 2009, 2:59pm UTC](https://www.ruby-forum.com/t/using-will-paginate/177713 "2009-10-22T14:59:43Z")

</div>

Hello, I have installed will\_paginate gem for my application, but it is not working properly. This is the code in clients\_controller.rb: def index @clients = Client.paginate :page =\> params\[:page\], :per\_page =\> 5 en…

---

## [How to increase the response speed rails application](https://www.ruby-forum.com/t/how-to-increase-the-response-speed-rails-application/177714)

<div class="topic-metadata">

**Author:** [@saravanan\_bava](https://www.ruby-forum.com/u/saravanan_bava)\
**Replies:** 0\
**Last updated:** [October 22, 2009, 2:57pm UTC](https://www.ruby-forum.com/t/how-to-increase-the-response-speed-rails-application/177714 "2009-10-22T14:57:58Z")

</div>

Hi friends, How to increase the response speed rails application. Pls suggest some steps to improve the performance. Thanks Bava

---

## [Tools for developing a facebook application](https://www.ruby-forum.com/t/tools-for-developing-a-facebook-application/177702)

<div class="topic-metadata">

**Author:** [@Dan\_Green](https://www.ruby-forum.com/u/Dan_Green)\
**Replies:** 1\
**Last updated:** [October 22, 2009, 2:01pm UTC](https://www.ruby-forum.com/t/tools-for-developing-a-facebook-application/177702 "2009-10-22T14:01:28Z")

</div>

What tools are available to add a Facebook widget to my rails application? Thanks!

---

## [Plz test my patch for resources with path\_prefix with a variable](https://www.ruby-forum.com/t/plz-test-my-patch-for-resources-with-path-prefix-with-a-variable/177685)

<div class="topic-metadata">

**Author:** [@igelig](https://www.ruby-forum.com/u/igelig)\
**Replies:** 1\
**Last updated:** [October 22, 2009, 1:52pm UTC](https://www.ruby-forum.com/t/plz-test-my-patch-for-resources-with-path-prefix-with-a-variable/177685 "2009-10-22T13:52:24Z")

</div>

Hi! The problem: You may have read the I18n-Guide ( Rails Internationalization (I18n) API — Ruby on Rails Guides). It says, that the usual way to provide the locale is in the URL, like example.com/en/books/2. But: m…

---

## [Undefined method \`stringify\_keys!' for "":String](https://www.ruby-forum.com/t/undefined-method-stringify-keys-for-string/177704)

<div class="topic-metadata">

**Author:** [@ralu](https://www.ruby-forum.com/u/ralu)\
**Replies:** 19\
**Last updated:** [October 22, 2009, 1:50pm UTC](https://www.ruby-forum.com/t/undefined-method-stringify-keys-for-string/177704 "2009-10-22T13:50:31Z")

</div>

i have an error undefined method \`stringify\_keys!’ for “”:String my view is given below \<%= form\_tag :action =\> ‘resolve\_create’, :resolve =\> @resolve %\> resolution: \<%= text\_area 'resolve','content', :cols =\> 4…

---

## [JQuery GET without link\_to\_remote. How?](https://www.ruby-forum.com/t/jquery-get-without-link-to-remote-how/177595)

<div class="topic-metadata">

**Author:** [@spitfire](https://www.ruby-forum.com/u/spitfire)\
**Replies:** 3\
**Last updated:** [October 22, 2009, 11:40am UTC](https://www.ruby-forum.com/t/jquery-get-without-link-to-remote-how/177595 "2009-10-22T11:40:54Z")

</div>

Hi, I start to use JQuery with Rails: I should make a simple text link to call in Ajax (by GET) an action in controller. link\_to\_remote is a Prototype method, I would use just a javascript framework (JQuery). Is it…

---

## [Image\_path without timestamp](https://www.ruby-forum.com/t/image-path-without-timestamp/144769)

<div class="topic-metadata">

**Author:** [@corstar](https://www.ruby-forum.com/u/corstar)\
**Replies:** 2\
**Last updated:** [October 22, 2009, 9:49am UTC](https://www.ruby-forum.com/t/image-path-without-timestamp/144769 "2009-10-22T09:49:21Z")

</div>

Every time I use an asset tag helper, there is a parameter appended to the end of my file name. e.g. From what I am reading, this appears to be a timestamp for caching purposes. It works in most cases, but I want …

---

## [Alias\_method\_chain and ActiveSupport::TestCase](https://www.ruby-forum.com/t/alias-method-chain-and-activesupport-testcase/177670)

<div class="topic-metadata">

**Author:** [@erik](https://www.ruby-forum.com/u/erik)\
**Replies:** 3\
**Last updated:** [October 22, 2009, 9:41am UTC](https://www.ruby-forum.com/t/alias-method-chain-and-activesupport-testcase/177670 "2009-10-22T09:41:49Z")

</div>

I’m trying to add some functionality to the setup method of all my tests. I added a method called setup\_with\_ts in the test\_helper and chained it using alias\_method\_chain :setup, :ts and that works great for every te…

---

## [Nginx + Thin/Passenger](https://www.ruby-forum.com/t/nginx-thin-passenger/177701)

<div class="topic-metadata">

**Author:** [@artchrst](https://www.ruby-forum.com/u/artchrst)\
**Replies:** 0\
**Last updated:** [October 22, 2009, 8:48am UTC](https://www.ruby-forum.com/t/nginx-thin-passenger/177701 "2009-10-22T08:48:12Z")

</div>

Hi guys, I’ve tried to set up nginx and thin. I succeeded in doing so in my Win. But failed in Ubuntu (sometimes…). I am quite frustrated as I supposed that should be a simple task. Now I found the passenger. And it…

---

## [Gruff : label problem](https://www.ruby-forum.com/t/gruff-label-problem/177700)

<div class="topic-metadata">

**Author:** [@ahmet](https://www.ruby-forum.com/u/ahmet)\
**Replies:** 0\
**Last updated:** [October 22, 2009, 8:15am UTC](https://www.ruby-forum.com/t/gruff-label-problem/177700 "2009-10-22T08:15:13Z")

</div>

def terminal\_report\_hourly g = Gruff::Bar.new(“600x300”) g.theme\_37signals g.title = “my graph” reports = TerminalHistory.find(:all, :conditions =\> \[“terminal\_histories.created\_at \> ?”, 1.hour.ago.to\_s(:db)\], :selec…

---

## [Changed session store from ActiveRecord, deleted sessions table and now](https://www.ruby-forum.com/t/changed-session-store-from-activerecord-deleted-sessions-table-and-now/177697)

<div class="topic-metadata">

**Author:** [@ressister](https://www.ruby-forum.com/u/ressister)\
**Replies:** 1\
**Last updated:** [October 22, 2009, 7:23am UTC](https://www.ruby-forum.com/t/changed-session-store-from-activerecord-deleted-sessions-table-and-now/177697 "2009-10-22T07:23:43Z")

</div>

Is there any chance that changing the session store from ActiveRecord to cookies, and deleting the sessions table could cause performance problems with my app? Everything was running fine until I made that change (an…

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

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