# Rails

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

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

---

## [Problems with date\_select](https://www.ruby-forum.com/t/problems-with-date-select/142536)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 1\
**Last updated:** [July 9, 2008, 12:17am UTC](https://www.ruby-forum.com/t/problems-with-date-select/142536 "2008-07-09T00:17:29Z")

</div>

Is is possible to have both a default value specified, and to include a blank in a date\_select? \<%= date\_select(‘birthday\_date’, ‘value’, {:default =\> birthday, :start\_year =\> 1900, :end\_year =\> Time.now.year, :order …

---

## [Database configuration](https://www.ruby-forum.com/t/database-configuration/142528)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 4\
**Last updated:** [July 8, 2008, 11:44pm UTC](https://www.ruby-forum.com/t/database-configuration/142528 "2008-07-08T23:44:23Z")

</div>

SQLite version 3.x gem install sqlite3-ruby (not necessary on OS X Leopard) development: adapter: sqlite3 database: db/development.sqlite3 timeout: 5000 Warning: The database defined as “test” will be erased and re-g…

---

## [Calling method from view](https://www.ruby-forum.com/t/calling-method-from-view/142527)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 3\
**Last updated:** [July 8, 2008, 11:15pm UTC](https://www.ruby-forum.com/t/calling-method-from-view/142527 "2008-07-08T23:15:50Z")

</div>

I have this list of users that I capture in a method which is users that one individual is responciable for. In my view I iterate through that list of users to place the name of each user into a table. I also have thi…

---

## [Different path to public document root in Development mode](https://www.ruby-forum.com/t/different-path-to-public-document-root-in-development-mode/142448)

<div class="topic-metadata">

**Author:** [@nwiger](https://www.ruby-forum.com/u/nwiger)\
**Replies:** 1\
**Last updated:** [July 8, 2008, 10:54pm UTC](https://www.ruby-forum.com/t/different-path-to-public-document-root-in-development-mode/142448 "2008-07-08T22:54:14Z")

</div>

I know how to do this for actual deployment, but is there a way to change the Rails “document root” used from its default of RAILS\_ROOT/ public in development mode? I want to do something like this: config.document\_r…

---

## [Data Too Long Error For blob Column](https://www.ruby-forum.com/t/data-too-long-error-for-blob-column/141456)

<div class="topic-metadata">

**Author:** [@ror\_arch](https://www.ruby-forum.com/u/ror_arch)\
**Replies:** 7\
**Last updated:** [July 8, 2008, 10:48pm UTC](https://www.ruby-forum.com/t/data-too-long-error-for-blob-column/141456 "2008-07-08T22:48:30Z")

</div>

I am trying to upload a 432 KB exe file to a column in mysql that is type blob . It can upload pdfs and rtfs and docs and but when I try to upload even a jpg which is barely 184 kb it gives the error (data too long) …

---

## [Ajax form - updating with validation errors from model](https://www.ruby-forum.com/t/ajax-form-updating-with-validation-errors-from-model/142531)

<div class="topic-metadata">

**Author:** [@saljamil](https://www.ruby-forum.com/u/saljamil)\
**Replies:** 0\
**Last updated:** [July 8, 2008, 10:43pm UTC](https://www.ruby-forum.com/t/ajax-form-updating-with-validation-errors-from-model/142531 "2008-07-08T22:43:42Z")

</div>

Is there a DRY way to pass back errors from the model validation to an ajax form (form\_remote\_for)? Thanks for your help

---

## [How do you store values for each specific user?](https://www.ruby-forum.com/t/how-do-you-store-values-for-each-specific-user/142519)

<div class="topic-metadata">

**Author:** [@WalkerW](https://www.ruby-forum.com/u/WalkerW)\
**Replies:** 2\
**Last updated:** [July 8, 2008, 9:51pm UTC](https://www.ruby-forum.com/t/how-do-you-store-values-for-each-specific-user/142519 "2008-07-08T21:51:23Z")

</div>

Just learning Rails trying to get a handle on something in a very basic sense: I can create a login tool, I can create a funciton that creates a table based on skills but I have no idea how to make skills local to ea…

---

## [Deploy my app on Leopard](https://www.ruby-forum.com/t/deploy-my-app-on-leopard/142522)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [July 8, 2008, 9:29pm UTC](https://www.ruby-forum.com/t/deploy-my-app-on-leopard/142522 "2008-07-08T21:29:48Z")

</div>

Hi, I’m trying to deploy my app on Leopard (not Leopard server). Is there any guide on how to do this. I’m trying to use Apache, Mongrel, and MySQL. Any help on this would be great. Thanks, Dave.

---

## [Installing my own gems on a Dreamhost account](https://www.ruby-forum.com/t/installing-my-own-gems-on-a-dreamhost-account/142520)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 0\
**Last updated:** [July 8, 2008, 8:28pm UTC](https://www.ruby-forum.com/t/installing-my-own-gems-on-a-dreamhost-account/142520 "2008-07-08T20:28:37Z")

</div>

Hey all, Does anyone who uses Dreamhost have any experience installing your own gems there? On their wiki, I’ve found this: http://wiki.dreamhost.com/index.php/Ruby\_on\_Rails#Using\_Gems\_Installed\_in\_Your\_Home\_Director…

---

## [Conditional "link\_to" helper function - AYUDAME POR FAVOR](https://www.ruby-forum.com/t/conditional-link-to-helper-function-ayudame-por-favor/142511)

<div class="topic-metadata">

**Author:** [@joep](https://www.ruby-forum.com/u/joep)\
**Replies:** 4\
**Last updated:** [July 8, 2008, 8:12pm UTC](https://www.ruby-forum.com/t/conditional-link-to-helper-function-ayudame-por-favor/142511 "2008-07-08T20:12:21Z")

</div>

Hello, I need to write a function that will return a link only if the current user is the owner. Here is my code… application\_helper.rb def link\_to\_if\_owned(owner\_id, anchor\_text, where\_to\_go) if current\_user.id =…

---

## [Dual entry accounting framework](https://www.ruby-forum.com/t/dual-entry-accounting-framework/142517)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 0\
**Last updated:** [July 8, 2008, 7:24pm UTC](https://www.ruby-forum.com/t/dual-entry-accounting-framework/142517 "2008-07-08T19:24:03Z")

</div>

Is there a dual entry accounting framework in the wild somewhere for RoR? A starting point perhaps? Craig

---

## [Issues with multiple versions of rails installed, pls advise](https://www.ruby-forum.com/t/issues-with-multiple-versions-of-rails-installed-pls-advise/142510)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 1\
**Last updated:** [July 8, 2008, 7:09pm UTC](https://www.ruby-forum.com/t/issues-with-multiple-versions-of-rails-installed-pls-advise/142510 "2008-07-08T19:09:57Z")

</div>

I’ve got multiple versions of rails currently installed, 1.2.6 and 2.1. I need 1.2.6 as I have an active app that is based on 1.2.6 and am not in a position to move it to 2.1. I know about the version trick when gene…

---

## [Script/server error](https://www.ruby-forum.com/t/script-server-error/142500)

<div class="topic-metadata">

**Author:** [@Camel](https://www.ruby-forum.com/u/Camel)\
**Replies:** 7\
**Last updated:** [July 8, 2008, 7:04pm UTC](https://www.ruby-forum.com/t/script-server-error/142500 "2008-07-08T19:04:06Z")

</div>

Not sure why I’m getting this error, cause I believe it worked yesterday before I quit and now it’s giving me this error. The last thing I did was try and get an ActionMailer thing to work. I searched through the ar…

---

## [Deploying on linux shared host](https://www.ruby-forum.com/t/deploying-on-linux-shared-host/142301)

<div class="topic-metadata">

**Author:** [@marsoul](https://www.ruby-forum.com/u/marsoul)\
**Replies:** 4\
**Last updated:** [July 8, 2008, 7:03pm UTC](https://www.ruby-forum.com/t/deploying-on-linux-shared-host/142301 "2008-07-08T19:03:31Z")

</div>

Hi all, I am newbie in rails, my hosting agency told me that they have installed rails on their server and all i have to do is to upload my application into a folder named rails. I have done that, it shows the rails …

---

## [REST: using a different field than id](https://www.ruby-forum.com/t/rest-using-a-different-field-than-id/142507)

<div class="topic-metadata">

**Author:** [@roland](https://www.ruby-forum.com/u/roland)\
**Replies:** 2\
**Last updated:** [July 8, 2008, 6:40pm UTC](https://www.ruby-forum.com/t/rest-using-a-different-field-than-id/142507 "2008-07-08T18:40:35Z")

</div>

Hi, I have a simple question: When constructing restful urls with something like edit\_user\_path @user I would like the route to be /user/username/edit instead of /user/1/edit Now, I can do it with edit\_user\_path(@us…

---

## [Image\_tag bad src generation](https://www.ruby-forum.com/t/image-tag-bad-src-generation/142512)

<div class="topic-metadata">

**Author:** [@lucanarbone](https://www.ruby-forum.com/u/lucanarbone)\
**Replies:** 0\
**Last updated:** [July 8, 2008, 6:26pm UTC](https://www.ruby-forum.com/t/image-tag-bad-src-generation/142512 "2008-07-08T18:26:07Z")

</div>

Hi everybody, I’m fighting with iis and fastcgi for deployment on a windows 2003 server! I’m running rails 2.1 and everithing untill now seems to work fine except the src attribute of image tags gereated by image\_tag …

---

## [Creating a rails project](https://www.ruby-forum.com/t/creating-a-rails-project/142441)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 5\
**Last updated:** [July 8, 2008, 5:38pm UTC](https://www.ruby-forum.com/t/creating-a-rails-project/142441 "2008-07-08T17:38:59Z")

</div>

Hi, I’m just starting with Rails today… type this in the command prompt: rails C:\\Documents and Settings\\user\\Desktop\\file Then it displays… create x, create y, etc… But when I check the desktop, I see no folder. Th…

---

## [Bug with serialized columns in console?](https://www.ruby-forum.com/t/bug-with-serialized-columns-in-console/142494)

<div class="topic-metadata">

**Author:** [@come](https://www.ruby-forum.com/u/come)\
**Replies:** 0\
**Last updated:** [July 8, 2008, 3:31pm UTC](https://www.ruby-forum.com/t/bug-with-serialized-columns-in-console/142494 "2008-07-08T15:31:59Z")

</div>

Hi, I recently added 2 serialized columns in my class Server : class Server \< ActiveRecord::Base serialize :visa, Hash serialize :appli, Array … No problem in my controller and my application and everything works a…

---

## [Scripts in RoR](https://www.ruby-forum.com/t/scripts-in-ror/142483)

<div class="topic-metadata">

**Author:** [@jokrish](https://www.ruby-forum.com/u/jokrish)\
**Replies:** 1\
**Last updated:** [July 8, 2008, 3:13pm UTC](https://www.ruby-forum.com/t/scripts-in-ror/142483 "2008-07-08T15:13:12Z")

</div>

i want to use scripts in my program.how can i write a script ? where it should be write in application.js and how.?and how can i call it from my view…can anybody help me with some simple examples.

---

## [How to get a users screen name into a hidden field in a PostsController action?](https://www.ruby-forum.com/t/how-to-get-a-users-screen-name-into-a-hidden-field-in-a-postscontroller-action/142436)

<div class="topic-metadata">

**Author:** [@caiwangqin](https://www.ruby-forum.com/u/caiwangqin)\
**Replies:** 3\
**Last updated:** [July 8, 2008, 2:36pm UTC](https://www.ruby-forum.com/t/how-to-get-a-users-screen-name-into-a-hidden-field-in-a-postscontroller-action/142436 "2008-07-08T14:36:14Z")

</div>

Instead of the user entering a name, I want to pass their screen name along with supplied :title and :content fields. here is what I’ve got… f.hidden\_field :author, user.screen\_name here is the create method from Po…

---

## [How to start and handle soap4r server in production mode?](https://www.ruby-forum.com/t/how-to-start-and-handle-soap4r-server-in-production-mode/142486)

<div class="topic-metadata">

**Author:** [@sukeerthiadiga](https://www.ruby-forum.com/u/sukeerthiadiga)\
**Replies:** 0\
**Last updated:** [July 8, 2008, 1:32pm UTC](https://www.ruby-forum.com/t/how-to-start-and-handle-soap4r-server-in-production-mode/142486 "2008-07-08T13:32:05Z")

</div>

In console i m able to start soap4r server require ‘soap/rpc/standaloneServer’ server = SymptomCheckerServer.new(‘hws’, ‘urn:hws’, ‘192.168.1.201’, 6565) trap(:INT) do server.shutdown end server.start and get res…

---

## [Integrate beast of other forum with my site](https://www.ruby-forum.com/t/integrate-beast-of-other-forum-with-my-site/142485)

<div class="topic-metadata">

**Author:** [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Replies:** 0\
**Last updated:** [July 8, 2008, 1:11pm UTC](https://www.ruby-forum.com/t/integrate-beast-of-other-forum-with-my-site/142485 "2008-07-08T13:11:14Z")

</div>

Hi all I want to integrate forum in my site…now the thing is that readymade forums such as beast and rforum etc have their own authentication system…So I m not able to combine my login system and that…So is there any…

---

## [Table join](https://www.ruby-forum.com/t/table-join/142480)

<div class="topic-metadata">

**Author:** [@jaiganez](https://www.ruby-forum.com/u/jaiganez)\
**Replies:** 2\
**Last updated:** [July 8, 2008, 12:19pm UTC](https://www.ruby-forum.com/t/table-join/142480 "2008-07-08T12:19:57Z")

</div>

its my code to display list from two tables where books.subject\_id=subjects.id… def list @subject= Subject.new @books = Book.find(:all) @subjects = Subject.find(:all) @bookss=Book.find(:all, :joins=\>:subject) end …

---

## [Problem with rails 2.1.0 & its older versions](https://www.ruby-forum.com/t/problem-with-rails-2-1-0-its-older-versions/142478)

<div class="topic-metadata">

**Author:** [@lostwarrior](https://www.ruby-forum.com/u/lostwarrior)\
**Replies:** 1\
**Last updated:** [July 8, 2008, 11:55am UTC](https://www.ruby-forum.com/t/problem-with-rails-2-1-0-its-older-versions/142478 "2008-07-08T11:55:28Z")

</div>

hi to everyone .i am using rails 2.1.0 for my current project.in the console mode i tried to excute the statement in console mode User.find(:first,:select=\>â€name as text,id as valueâ€).to\_json =\> â€œ{\\â€user\\â€: …

---

## [Soap4r cannot access server application after soap server is started](https://www.ruby-forum.com/t/soap4r-cannot-access-server-application-after-soap-server-is-started/142475)

<div class="topic-metadata">

**Author:** [@sukeerthiadiga](https://www.ruby-forum.com/u/sukeerthiadiga)\
**Replies:** 0\
**Last updated:** [July 8, 2008, 11:11am UTC](https://www.ruby-forum.com/t/soap4r-cannot-access-server-application-after-soap-server-is-started/142475 "2008-07-08T11:11:32Z")

</div>

I ve started soap r my application. it works fine. But i m not getting from were to start soap server :0( if i start it from controller then i m not able to access the server application. if i start from console then…

---

## [Csscan commands in ruby](https://www.ruby-forum.com/t/csscan-commands-in-ruby/142463)

<div class="topic-metadata">

**Author:** [@seb](https://www.ruby-forum.com/u/seb)\
**Replies:** 1\
**Last updated:** [July 8, 2008, 10:48am UTC](https://www.ruby-forum.com/t/csscan-commands-in-ruby/142463 "2008-07-08T10:48:04Z")

</div>

csscan.exe/TARGET C:/web \>C:/web.txt" How can we run this code in a ruby program

---

## [Ajax and browser 'back' button](https://www.ruby-forum.com/t/ajax-and-browser-back-button/142469)

<div class="topic-metadata">

**Author:** [@dekhaus](https://www.ruby-forum.com/u/dekhaus)\
**Replies:** 0\
**Last updated:** [July 8, 2008, 10:46am UTC](https://www.ruby-forum.com/t/ajax-and-browser-back-button/142469 "2008-07-08T10:46:16Z")

</div>

Hi I’m trying to find a solution to what I would describe as inconsistent state of session objects updated from multiple pages using Ajax techniques. A concrete example would help. The ‘Agile Web D. with Rails’ book…

---

## [Accessing session data from another application](https://www.ruby-forum.com/t/accessing-session-data-from-another-application/142423)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 6\
**Last updated:** [July 8, 2008, 10:40am UTC](https://www.ruby-forum.com/t/accessing-session-data-from-another-application/142423 "2008-07-08T10:40:29Z")

</div>

Hi, I have my main Rails site running and the user\_id is stored inside the session. How can I access that info from within another application? How do I decypher the session?

---

## [Problems with form\_remote\_tag](https://www.ruby-forum.com/t/problems-with-form-remote-tag/142452)

<div class="topic-metadata">

**Author:** [@fries88](https://www.ruby-forum.com/u/fries88)\
**Replies:** 1\
**Last updated:** [July 8, 2008, 10:37am UTC](https://www.ruby-forum.com/t/problems-with-form-remote-tag/142452 "2008-07-08T10:37:42Z")

</div>

Hi, I am trying to use form\_remote\_tag to update a record and then update the section of the page where id=‘opertion\_panel’. There is a javascript validation that validates the input before the record is being updated…

---

## [$50 to anyone - 1 form - multiple models, HMT w/check\_boxes](https://www.ruby-forum.com/t/50-to-anyone-1-form-multiple-models-hmt-w-check-boxes/142454)

<div class="topic-metadata">

**Author:** [@toro04](https://www.ruby-forum.com/u/toro04)\
**Replies:** 5\
**Last updated:** [July 8, 2008, 9:43am UTC](https://www.ruby-forum.com/t/50-to-anyone-1-form-multiple-models-hmt-w-check-boxes/142454 "2008-07-08T09:43:20Z")

</div>

Hi Guys, Firstly apologies for posting again. I have been through a load of headache and days deep in google trying to find an example/solution to my problem. A lot of good people have been helping out a lot but I st…

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

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