# Rails

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

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

---

## [Cucumber, Webrat, RSpec and Mechanize for Non-Ruby Apps](https://www.ruby-forum.com/t/cucumber-webrat-rspec-and-mechanize-for-non-ruby-apps/167335)

<div class="topic-metadata">

**Author:** [@DVG](https://www.ruby-forum.com/u/DVG)\
**Replies:** 0\
**Last updated:** [May 6, 2009, 8:33pm UTC](https://www.ruby-forum.com/t/cucumber-webrat-rspec-and-mechanize-for-non-ruby-apps/167335 "2009-05-06T20:33:43Z")

</div>

The folks here have given me the task of figuring out if cucumber can be used successfully to test some of our apps. I have the latest versions of rails, mechanize, cucumber webrat and rspec installed. #/cuketest/fea…

---

## [Hosting and user/group management advice please](https://www.ruby-forum.com/t/hosting-and-user-group-management-advice-please/167328)

<div class="topic-metadata">

**Author:** [@goodieboy](https://www.ruby-forum.com/u/goodieboy)\
**Replies:** 1\
**Last updated:** [May 6, 2009, 8:20pm UTC](https://www.ruby-forum.com/t/hosting-and-user-group-management-advice-please/167328 "2009-05-06T20:20:43Z")

</div>

Hi, Our department is looking for a hosting solution for our projects. Most of them are Rails applications, but we have some Java apps as well. We would like something like Slicehost, but really need some kind of use…

---

## [Setup method in functional tests and instance variables](https://www.ruby-forum.com/t/setup-method-in-functional-tests-and-instance-variables/164844)

<div class="topic-metadata">

**Author:** [@mitch\_newbie](https://www.ruby-forum.com/u/mitch_newbie)\
**Replies:** 9\
**Last updated:** [May 6, 2009, 7:51pm UTC](https://www.ruby-forum.com/t/setup-method-in-functional-tests-and-instance-variables/164844 "2009-05-06T19:51:28Z")

</div>

I have the following in my functional test file. class UserControllerTest \< ActionController::TestCase fixtures :users def setup @controller = UserController.new @request = ActionController::TestRequest.new @res…

---

## [Ajax Error Response](https://www.ruby-forum.com/t/ajax-error-response/167324)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [May 6, 2009, 7:16pm UTC](https://www.ruby-forum.com/t/ajax-error-response/167324 "2009-05-06T19:16:51Z")

</div>

When my controller renders js along with a status other than 200, the js is not executed. So render :status =\> 400, :js =\> %{"alert('Error!')"} Will not do anything, but render :status =\> 200, :js =\> %{“alert(‘Error…

---

## [Allowing only one tag per post](https://www.ruby-forum.com/t/allowing-only-one-tag-per-post/167229)

<div class="topic-metadata">

**Author:** [@bbnnt](https://www.ruby-forum.com/u/bbnnt)\
**Replies:** 1\
**Last updated:** [May 6, 2009, 6:31pm UTC](https://www.ruby-forum.com/t/allowing-only-one-tag-per-post/167229 "2009-05-06T18:31:12Z")

</div>

I’m using acts\_as\_taggable\_on\_steroids to add a tag to a post. For my purposes, I only want to allow one tag per post. I’ve looked through the acts\_as\_taggable\_on\_steroids code and can’t really put a finger on where I…

---

## [\[ROUTES\] \[RAILS 2.3\] Custom controller method fires a route error](https://www.ruby-forum.com/t/routes-rails-2-3-custom-controller-method-fires-a-route-error/167314)

<div class="topic-metadata">

**Author:** [@flaubert](https://www.ruby-forum.com/u/flaubert)\
**Replies:** 4\
**Last updated:** [May 6, 2009, 6:00pm UTC](https://www.ruby-forum.com/t/routes-rails-2-3-custom-controller-method-fires-a-route-error/167314 "2009-05-06T18:00:36Z")

</div>

Hi all, I have a custom method in my controller called ‘generate’. when requested localhost:3000/import/generate I see “Couldn’t find Import with ID=generate”. How customize a route for this method? help please…

---

## [Syncronization in rails](https://www.ruby-forum.com/t/syncronization-in-rails/167142)

<div class="topic-metadata">

**Author:** [@amit](https://www.ruby-forum.com/u/amit)\
**Replies:** 1\
**Last updated:** [May 6, 2009, 5:52pm UTC](https://www.ruby-forum.com/t/syncronization-in-rails/167142 "2009-05-06T17:52:23Z")

</div>

Hello, Here is the logic that I am trying to achieve. I have a User Model and the business rule is that user can accept maximum 5 friends requests. for this I have an accept method in User Model which looks similar to …

---

## [Encrypting serialized Attribute](https://www.ruby-forum.com/t/encrypting-serialized-attribute/167318)

<div class="topic-metadata">

**Author:** [@heisam](https://www.ruby-forum.com/u/heisam)\
**Replies:** 0\
**Last updated:** [May 6, 2009, 5:51pm UTC](https://www.ruby-forum.com/t/encrypting-serialized-attribute/167318 "2009-05-06T17:51:48Z")

</div>

Hi, I’d like to encrypt the content of a serialized attribute with rails built in serialize declaration. Unfortunately, using the before\_save and after\_find callbacks for encryption does not work in this case, becaus…

---

## [Setting config.action\_controller.relative\_url\_root isn't working](https://www.ruby-forum.com/t/setting-config-action-controller-relative-url-root-isnt-working/167313)

<div class="topic-metadata">

**Author:** [@mauricio](https://www.ruby-forum.com/u/mauricio)\
**Replies:** 0\
**Last updated:** [May 6, 2009, 5:24pm UTC](https://www.ruby-forum.com/t/setting-config-action-controller-relative-url-root-isnt-working/167313 "2009-05-06T17:24:48Z")

</div>

Hi everyone, I’m trying to set the “config.action\_controller.relative\_url\_root” config value but it isn’t working: config.action\_controller.relative\_url\_root = “/de” When i try to view the http://localhost:3000/de pa…

---

## [JRuby-Oracle Error - Part 2](https://www.ruby-forum.com/t/jruby-oracle-error-part-2/167305)

<div class="topic-metadata">

**Author:** [@nlsmith](https://www.ruby-forum.com/u/nlsmith)\
**Replies:** 1\
**Last updated:** [May 6, 2009, 5:01pm UTC](https://www.ruby-forum.com/t/jruby-oracle-error-part-2/167305 "2009-05-06T17:01:21Z")

</div>

My app is using JRuby on Rails and Oracle. I have a join table that has not ID column. When I create the table via db:migrate, no Oracle Sequence is set up for it. Later when I populate the table with data, I get an e…

---

## [Oracle-JRuby error](https://www.ruby-forum.com/t/oracle-jruby-error/167253)

<div class="topic-metadata">

**Author:** [@nlsmith](https://www.ruby-forum.com/u/nlsmith)\
**Replies:** 3\
**Last updated:** [May 6, 2009, 4:08pm UTC](https://www.ruby-forum.com/t/oracle-jruby-error/167253 "2009-05-06T16:08:31Z")

</div>

I am trying to migrate from RoR/MYSql to JRoR/Oracle. I am using Active Record JDBC to talk to the database. The Migration process to create and populate the database tables has been painful. My latest issue is the me…

---

## [How to apply spreadsheet-excel-ole-storage.patch and parseex](https://www.ruby-forum.com/t/how-to-apply-spreadsheet-excel-ole-storage-patch-and-parseex/167299)

<div class="topic-metadata">

**Author:** [@jmanivannancse](https://www.ruby-forum.com/u/jmanivannancse)\
**Replies:** 0\
**Last updated:** [May 6, 2009, 3:48pm UTC](https://www.ruby-forum.com/t/how-to-apply-spreadsheet-excel-ole-storage-patch-and-parseex/167299 "2009-05-06T15:48:00Z")

</div>

Hi, I am going to export data to excel file from my project. I am using spreadsheet-excel (0.3.5.1) gem to read/write data in excel. I got #\<MaxSizeError: MaxSizeError\> error when exporting some amount of data to exc…

---

## [Crazy string issues](https://www.ruby-forum.com/t/crazy-string-issues/167282)

<div class="topic-metadata">

**Author:** [@philswenson](https://www.ruby-forum.com/u/philswenson)\
**Replies:** 3\
**Last updated:** [May 6, 2009, 2:05pm UTC](https://www.ruby-forum.com/t/crazy-string-issues/167282 "2009-05-06T14:05:51Z")

</div>

I can’t believe I am having to stoop to asking such a stupid question! I want a string that I am sending out to launch a process on windows. The string has to look like this: myapp --actx="\\.\\DISPLAY3" I cannot figu…

---

## [Web 2.0 template for rails](https://www.ruby-forum.com/t/web-2-0-template-for-rails/167288)

<div class="topic-metadata">

**Author:** [@sfedi](https://www.ruby-forum.com/u/sfedi)\
**Replies:** 0\
**Last updated:** [May 6, 2009, 1:04pm UTC](https://www.ruby-forum.com/t/web-2-0-template-for-rails/167288 "2009-05-06T13:04:34Z")

</div>

Hello ! After some time learning and making tests on rails, I have found my test applications very ugly, I had tried to modify css and html, but it’s very looong and not interesting work. I seek for looking good temp…

---

## [How to install downloaded zip/tar.gz plugin?](https://www.ruby-forum.com/t/how-to-install-downloaded-zip-tar-gz-plugin/167063)

<div class="topic-metadata">

**Author:** [@sfedi](https://www.ruby-forum.com/u/sfedi)\
**Replies:** 5\
**Last updated:** [May 6, 2009, 12:50pm UTC](https://www.ruby-forum.com/t/how-to-install-downloaded-zip-tar-gz-plugin/167063 "2009-05-06T12:50:43Z")

</div>

Hello ! Some time ago , I asked how to make pagination(How to make \<\< 123.. \>\> functionality ? %) - Rails - Ruby-Forum), i have downloaded this plugin, and I do not want to download this plugin every time when I want…

---

## [A Letter to the Authors of Web Authentication Libraries](https://www.ruby-forum.com/t/a-letter-to-the-authors-of-web-authentication-libraries/167224)

<div class="topic-metadata">

**Author:** [@dohmer](https://www.ruby-forum.com/u/dohmer)\
**Replies:** 6\
**Last updated:** [May 6, 2009, 12:11pm UTC](https://www.ruby-forum.com/t/a-letter-to-the-authors-of-web-authentication-libraries/167224 "2009-05-06T12:11:22Z")

</div>

Hi, Many web sites have a user name and password login system, and do not use SSL. As a consequence, users’ passwords are transmitted over the internet unencrypted. This puts them at risk, particularly if the user is…

---

## [Accessing Svn through rails](https://www.ruby-forum.com/t/accessing-svn-through-rails/167277)

<div class="topic-metadata">

**Author:** [@charanya](https://www.ruby-forum.com/u/charanya)\
**Replies:** 0\
**Last updated:** [May 6, 2009, 10:09am UTC](https://www.ruby-forum.com/t/accessing-svn-through-rails/167277 "2009-05-06T10:09:31Z")

</div>

Hi I am trying to combine SVN with my rails application I want to get a file from the svn repository of the current version. My app will provide facility for the user to upload a diff file. And from this diff file an…

---

## [Unit testing for ActiveResource](https://www.ruby-forum.com/t/unit-testing-for-activeresource/167140)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 1\
**Last updated:** [May 6, 2009, 10:09am UTC](https://www.ruby-forum.com/t/unit-testing-for-activeresource/167140 "2009-05-06T10:09:10Z")

</div>

I’m using ActiveResouce objects which don’t have a corresponding ActiveRecord object in the DB because they’re acting as a front end to a legacy Windows application which can read and write REST type XML. That works f…

---

## [Maxsize error in excel creation](https://www.ruby-forum.com/t/maxsize-error-in-excel-creation/167272)

<div class="topic-metadata">

**Author:** [@deeparaj](https://www.ruby-forum.com/u/deeparaj)\
**Replies:** 0\
**Last updated:** [May 6, 2009, 9:26am UTC](https://www.ruby-forum.com/t/maxsize-error-in-excel-creation/167272 "2009-05-06T09:26:27Z")

</div>

hai, I am making an excel file with spreadsheet-excel 0.3.5.1.I found a MaxSizeError when generating a large file.How to solve this problem.Could anyone know how to solve this problem? thanks…

---

## [In lieu of scaffolding](https://www.ruby-forum.com/t/in-lieu-of-scaffolding/167091)

<div class="topic-metadata">

**Author:** [@JannaB](https://www.ruby-forum.com/u/JannaB)\
**Replies:** 5\
**Last updated:** [May 6, 2009, 7:31am UTC](https://www.ruby-forum.com/t/in-lieu-of-scaffolding/167091 "2009-05-06T07:31:16Z")

</div>

I am wondering what you gentlemen might use in lieu of basic scaffolding. Suppose I have a simple table, and it has, say, 100,000 rows. I want the user to be able to drill down to edit (and/or possibly delete) a given…

---

## [Projects works then breaks intermittently - mysql, linux](https://www.ruby-forum.com/t/projects-works-then-breaks-intermittently-mysql-linux/246523)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 0\
**Last updated:** [May 6, 2009, 7:23am UTC](https://www.ruby-forum.com/t/projects-works-then-breaks-intermittently-mysql-linux/246523 "2009-05-06T07:23:23Z")

</div>

hello, ive just switched to a linux environment and i tried creating a project from scratch after setting up and im getting strange results. When i try and view my simple controllers index (which is nothing more that …

---

## [Link\_to\_remote with Modalbox.show](https://www.ruby-forum.com/t/link-to-remote-with-modalbox-show/167262)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 0\
**Last updated:** [May 6, 2009, 6:42am UTC](https://www.ruby-forum.com/t/link-to-remote-with-modalbox-show/167262 "2009-05-06T06:42:32Z")

</div>

Hi In helper I have change\_email\_link html = \[\] html \<\< change\_email\_js(:email =\> @email) html \<\< %{ edit } html.join end Now def change\_email\_js(options ={}) %{ } end My problem is This does not pop…

---

## [\[ANN\] New rails-based site helps you release your anger](https://www.ruby-forum.com/t/ann-new-rails-based-site-helps-you-release-your-anger/166311)

<div class="topic-metadata">

**Author:** [@dburkes](https://www.ruby-forum.com/u/dburkes)\
**Replies:** 3\
**Last updated:** [May 6, 2009, 5:38am UTC](https://www.ruby-forum.com/t/ann-new-rails-based-site-helps-you-release-your-anger/166311 "2009-05-06T05:38:40Z")

</div>

When you’re doing something this important, you have to get the word out any way you can: http://istotalbullshit.com Enjoy

---

## [Base Auth plugin](https://www.ruby-forum.com/t/base-auth-plugin/167256)

<div class="topic-metadata">

**Author:** [@madankumarrajan](https://www.ruby-forum.com/u/madankumarrajan)\
**Replies:** 1\
**Last updated:** [May 6, 2009, 5:23am UTC](https://www.ruby-forum.com/t/base-auth-plugin/167256 "2009-05-06T05:23:16Z")

</div>

Where do we really need base-auth plugin? If a ‘user’ has multiple ‘houses’, most of the RESTful actions can use user.houses itself instead of base-auth. INDEX: user.houses EDIT/UPDATE/DESTROY/SHOW: user.houses.find(…

---

## [OCI Library Initialization Error](https://www.ruby-forum.com/t/oci-library-initialization-error/167258)

<div class="topic-metadata">

**Author:** [@beriah](https://www.ruby-forum.com/u/beriah)\
**Replies:** 0\
**Last updated:** [May 6, 2009, 4:40am UTC](https://www.ruby-forum.com/t/oci-library-initialization-error/167258 "2009-05-06T04:40:17Z")

</div>

I am attempting to connect to ORACLE11g however i am getting the following error: “OCI Library Initialization Error” IT always errors on OCIENV.init(). I cant see anything wrong on the ENV configurations. Has anyone…

---

## [String as attribute](https://www.ruby-forum.com/t/string-as-attribute/167230)

<div class="topic-metadata">

**Author:** [@shinkaku](https://www.ruby-forum.com/u/shinkaku)\
**Replies:** 5\
**Last updated:** [May 6, 2009, 12:30am UTC](https://www.ruby-forum.com/t/string-as-attribute/167230 "2009-05-06T00:30:04Z")

</div>

Hi I have an object “a\_row” with columns first, last, second to retrieve the value first I can do a\_row.first but I need to do it a different way like this a\_row.get\_value\_for\_colum(“first”) and in the object class …

---

## [Assign dynamic (incrementable) values to objects](https://www.ruby-forum.com/t/assign-dynamic-incrementable-values-to-objects/167251)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 0\
**Last updated:** [May 5, 2009, 11:50pm UTC](https://www.ruby-forum.com/t/assign-dynamic-incrementable-values-to-objects/167251 "2009-05-05T23:50:53Z")

</div>

I am working on a registration form for users. Users can sign up to attend some sport events and are automatically assigned a starting number depending on the users type. There are several types of users and all have …

---

## [Getting 500 Errors on production](https://www.ruby-forum.com/t/getting-500-errors-on-production/167187)

<div class="topic-metadata">

**Author:** [@mikec](https://www.ruby-forum.com/u/mikec)\
**Replies:** 6\
**Last updated:** [May 5, 2009, 10:55pm UTC](https://www.ruby-forum.com/t/getting-500-errors-on-production/167187 "2009-05-05T22:55:49Z")

</div>

I’m getting 500 errors on my production server running Passenger. I cannot, for the life of me, find out what the problem is. Everything works fine on my local machine. However, on my production machine, I can’t even …

---

## [Unable to deactivate forgery protection](https://www.ruby-forum.com/t/unable-to-deactivate-forgery-protection/167245)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 3\
**Last updated:** [May 5, 2009, 10:46pm UTC](https://www.ruby-forum.com/t/unable-to-deactivate-forgery-protection/167245 "2009-05-05T22:46:27Z")

</div>

Hi, I just created a new Rails app that will be receiving some POSTed data from the outside so it must skip the verify\_authenticity\_token for some create actions. Although I have added: skip\_before\_filter :verifiy\_au…

---

## [Sticking an erb block in lambda?](https://www.ruby-forum.com/t/sticking-an-erb-block-in-lambda/167234)

<div class="topic-metadata">

**Author:** [@stewbawka](https://www.ruby-forum.com/u/stewbawka)\
**Replies:** 2\
**Last updated:** [May 5, 2009, 8:17pm UTC](https://www.ruby-forum.com/t/sticking-an-erb-block-in-lambda/167234 "2009-05-05T20:17:44Z")

</div>

i’m doing some meta stuff and trying to figure out how to stick some erb html into a proc where i can then feed it to one of many helpers. if i do something like this: lamb = lambda do |x| \<%= x %\> end i get a sy…

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

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