# Rails

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

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

---

## [Calculus calculations](https://www.ruby-forum.com/t/calculus-calculations/124271)

<div class="topic-metadata">

**Author:** [@pragati](https://www.ruby-forum.com/u/pragati)\
**Replies:** 1\
**Last updated:** [December 27, 2007, 8:49am UTC](https://www.ruby-forum.com/t/calculus-calculations/124271 "2007-12-27T08:49:28Z")

</div>

Hi All, Can we perform differential or integral calculus operations using ruby language? If yes, do i need any particular gem? Thanks, Pragati

---

## [Adding a menu to the application layout](https://www.ruby-forum.com/t/adding-a-menu-to-the-application-layout/124241)

<div class="topic-metadata">

**Author:** [@musty](https://www.ruby-forum.com/u/musty)\
**Replies:** 4\
**Last updated:** [December 27, 2007, 8:43am UTC](https://www.ruby-forum.com/t/adding-a-menu-to-the-application-layout/124241 "2007-12-27T08:43:31Z")

</div>

Hello all, I’ve been reading a lot of posts and most seem close to my problem but I don’t see the real answer. Appreciate any help. GOAL: Populate the application.rhtml layout with a menu bar and also main content. T…

---

## [How to update my project to rails 2.02?](https://www.ruby-forum.com/t/how-to-update-my-project-to-rails-2-02/124269)

<div class="topic-metadata">

**Author:** [@goodwill](https://www.ruby-forum.com/u/goodwill)\
**Replies:** 11\
**Last updated:** [December 27, 2007, 8:37am UTC](https://www.ruby-forum.com/t/how-to-update-my-project-to-rails-2-02/124269 "2007-12-27T08:37:40Z")

</div>

I have installed the gems already, but how to get my existing project upgraded? I have tried the about page and its still saying 1.2.6.

---

## [How to retain the values of textboxes if validation is there](https://www.ruby-forum.com/t/how-to-retain-the-values-of-textboxes-if-validation-is-there/124081)

<div class="topic-metadata">

**Author:** [@ruchita](https://www.ruby-forum.com/u/ruchita)\
**Replies:** 22\
**Last updated:** [December 27, 2007, 7:51am UTC](https://www.ruby-forum.com/t/how-to-retain-the-values-of-textboxes-if-validation-is-there/124081 "2007-12-27T07:51:05Z")

</div>

Hi all, I have applied a validation in user model for the uniqueness of login name. i.e. validates\_uniqueness\_of :login, :message =\> “username already exists”. When i click on submit button and the login already exis…

---

## [Opportunity with Global Logic!](https://www.ruby-forum.com/t/opportunity-with-global-logic/124270)

<div class="topic-metadata">

**Author:** [@abhishek-gupta](https://www.ruby-forum.com/u/abhishek-gupta)\
**Replies:** 0\
**Last updated:** [December 27, 2007, 7:37am UTC](https://www.ruby-forum.com/t/opportunity-with-global-logic/124270 "2007-12-27T07:37:56Z")

</div>

Greetings, There is a career opportunity opportunity to work with a CMMI-level 5 organization in India at their Noida & Pune Development centers. Experience: 4-7 yrs Designation: Ruby on Rail Lead Job Location: Noid…

---

## [Playing Flash flv files using FlowPlayer](https://www.ruby-forum.com/t/playing-flash-flv-files-using-flowplayer/124106)

<div class="topic-metadata">

**Author:** [@bigtwinz](https://www.ruby-forum.com/u/bigtwinz)\
**Replies:** 4\
**Last updated:** [December 27, 2007, 7:30am UTC](https://www.ruby-forum.com/t/playing-flash-flv-files-using-flowplayer/124106 "2007-12-27T07:30:39Z")

</div>

Guys, got a conceptual issue regarding integration of FlowPlayer with rails views. Basically, I want to add and view various types of content, such as stories and video. Adding and saving is successful, however viewin…

---

## [Code\_paths (was: Re: Rails.plugins\[:plugin\_name\] comments and patch)](https://www.ruby-forum.com/t/code-paths-was-re-rails-plugins-plugin-name-comments-and-patch/124265)

<div class="topic-metadata">

**Author:** [@arjackson](https://www.ruby-forum.com/u/arjackson)\
**Replies:** 0\
**Last updated:** [December 27, 2007, 7:24am UTC](https://www.ruby-forum.com/t/code-paths-was-re-rails-plugins-plugin-name-comments-and-patch/124265 "2007-12-27T07:24:34Z")

</div>

I should add… this fix (self.code\_paths instead of Rails\[:plugin\_name\].code\_paths) seemed to make it not crash and did store the path in Rails.plugins\[:plugin\_name\]. But, it just didn’t work. I eventually traced it…

---

## [Current user's session id?](https://www.ruby-forum.com/t/current-users-session-id/124198)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 3\
**Last updated:** [December 27, 2007, 7:02am UTC](https://www.ruby-forum.com/t/current-users-session-id/124198 "2007-12-27T07:02:58Z")

</div>

How to get current logged in user’s session id?

---

## [Sharing a variable between methods?](https://www.ruby-forum.com/t/sharing-a-variable-between-methods/124259)

<div class="topic-metadata">

**Author:** [@Gedeon](https://www.ruby-forum.com/u/Gedeon)\
**Replies:** 8\
**Last updated:** [December 27, 2007, 6:28am UTC](https://www.ruby-forum.com/t/sharing-a-variable-between-methods/124259 "2007-12-27T06:28:49Z")

</div>

Hello! I need some help on something that seems very basic and ‘noobish’ to me but that I cant figure out… I’m going to try to make it as simple as possible… I have a method that initializes an array. Let’s call it "…

---

## [Rails.plugins\[:plugin\_name\] comments and patch](https://www.ruby-forum.com/t/rails-plugins-plugin-name-comments-and-patch/124263)

<div class="topic-metadata">

**Author:** [@arjackson](https://www.ruby-forum.com/u/arjackson)\
**Replies:** 0\
**Last updated:** [December 27, 2007, 6:08am UTC](https://www.ruby-forum.com/t/rails-plugins-plugin-name-comments-and-patch/124263 "2007-12-27T06:08:01Z")

</div>

Hi all, I have some code in a plugin’s init.rb that used Rails.plugins\[:plugin\_name\].code\_paths += … I spent a bit of time hacking engines to get it working, then I read Sven’s helpful message at Engines 2ish / Rai…

---

## [Large file storage](https://www.ruby-forum.com/t/large-file-storage/124255)

<div class="topic-metadata">

**Author:** [@tresero](https://www.ruby-forum.com/u/tresero)\
**Replies:** 1\
**Last updated:** [December 27, 2007, 4:36am UTC](https://www.ruby-forum.com/t/large-file-storage/124255 "2007-12-27T04:36:13Z")

</div>

I need to have an app which allows large \>200mb files to be uploaded. I don’t want to use ftp for security reasons. I have tried boxroom, but it chokes on moderate size files (may be a mongrel problem). Has anybody c…

---

## [Help Updating Database With Checkboxes](https://www.ruby-forum.com/t/help-updating-database-with-checkboxes/124223)

<div class="topic-metadata">

**Author:** [@weloki](https://www.ruby-forum.com/u/weloki)\
**Replies:** 10\
**Last updated:** [December 27, 2007, 4:29am UTC](https://www.ruby-forum.com/t/help-updating-database-with-checkboxes/124223 "2007-12-27T04:29:46Z")

</div>

Hi, I have a view that displays a list of items from a database table called “order\_items”. Each item has a checkbox next to it. I need the user to be able to select multiple items with the checkboxes and have those …

---

## [NEWBIE: replace\_html not working as I expected HELP!](https://www.ruby-forum.com/t/newbie-replace-html-not-working-as-i-expected-help/124249)

<div class="topic-metadata">

**Author:** [@spokra](https://www.ruby-forum.com/u/spokra)\
**Replies:** 2\
**Last updated:** [December 27, 2007, 3:51am UTC](https://www.ruby-forum.com/t/newbie-replace-html-not-working-as-i-expected-help/124249 "2007-12-27T03:51:09Z")

</div>

I was hoping the following code would generate a new turing everytime it was click. But it renders everything the first time the page is rendered and replaces the image once… but also has already set to session\[turin…

---

## [AR Callbacks and associations](https://www.ruby-forum.com/t/ar-callbacks-and-associations/124243)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [December 27, 2007, 3:27am UTC](https://www.ruby-forum.com/t/ar-callbacks-and-associations/124243 "2007-12-27T03:27:45Z")

</div>

Hello, I have this model in Rails 2.0: class Contact \< ActiveRecord::Base before\_save :update\_contact\_user belongs\_to :user belongs\_to :contact\_user, :class\_name=\>‘User’, :foreign\_key=\>‘contact\_user\_id’ validates\_…

---

## [How to JUST store hours and minutes in db?](https://www.ruby-forum.com/t/how-to-just-store-hours-and-minutes-in-db/124225)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 4\
**Last updated:** [December 27, 2007, 3:11am UTC](https://www.ruby-forum.com/t/how-to-just-store-hours-and-minutes-in-db/124225 "2007-12-27T03:11:58Z")

</div>

I have a table for “restaurants” and need to store their weekly hours of operation. I am having trouble finding the best way to do this. I dont want to use a datetime field because I don’t need the date. I also want t…

---

## [Help With partials](https://www.ruby-forum.com/t/help-with-partials/124246)

<div class="topic-metadata">

**Author:** [@spokra](https://www.ruby-forum.com/u/spokra)\
**Replies:** 4\
**Last updated:** [December 27, 2007, 2:30am UTC](https://www.ruby-forum.com/t/help-with-partials/124246 "2007-12-27T02:30:39Z")

</div>

ok i’m having problems moving a piece of code into a partial I have a line in a view: \<%= image\_tag( createturing ) %\> moving to a partial \_createturing.rhtml and changing the view to: \<%= render(:partial =\> "create…

---

## [Self introduction - rails newbie here saying hello](https://www.ruby-forum.com/t/self-introduction-rails-newbie-here-saying-hello/124238)

<div class="topic-metadata">

**Author:** [@mel\_ram](https://www.ruby-forum.com/u/mel_ram)\
**Replies:** 6\
**Last updated:** [December 27, 2007, 1:58am UTC](https://www.ruby-forum.com/t/self-introduction-rails-newbie-here-saying-hello/124238 "2007-12-27T01:58:16Z")

</div>

hey folks, I am a marketer adventuring into the realms of rails… so I figured I should drop in with a hello to everyone and introduce myself. I run a design & marketing company called Volcanic Marketing. My main exper…

---

## [Ruby On Rails Jobs Site](https://www.ruby-forum.com/t/ruby-on-rails-jobs-site/124244)

<div class="topic-metadata">

**Author:** [@cman](https://www.ruby-forum.com/u/cman)\
**Replies:** 0\
**Last updated:** [December 27, 2007, 1:50am UTC](https://www.ruby-forum.com/t/ruby-on-rails-jobs-site/124244 "2007-12-27T01:50:33Z")

</div>

Hi All, We’ve put up a job board listing only Ruby On Rails programming jobs - hope you find this helpful. Thanks.

---

## [How to set environment when calling rake task inside another](https://www.ruby-forum.com/t/how-to-set-environment-when-calling-rake-task-inside-another/124242)

<div class="topic-metadata">

**Author:** [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Replies:** 2\
**Last updated:** [December 27, 2007, 1:18am UTC](https://www.ruby-forum.com/t/how-to-set-environment-when-calling-rake-task-inside-another/124242 "2007-12-27T01:18:55Z")

</div>

This is what I have inside a rake task. In this rake task I need to call another rake task called email:send\_messages. However I need to pass the RAILS\_ENV as ‘staging’. Rake::Task\[“rake:email:send\_messages”\].invoke I…

---

## [Flash\[\] and Rails 2.0](https://www.ruby-forum.com/t/flash-and-rails-2-0/124184)

<div class="topic-metadata">

**Author:** [@sharkie](https://www.ruby-forum.com/u/sharkie)\
**Replies:** 5\
**Last updated:** [December 27, 2007, 12:33am UTC](https://www.ruby-forum.com/t/flash-and-rails-2-0/124184 "2007-12-27T00:33:45Z")

</div>

For some very odd reasons, flash\[\] evaluates to nil inside a partial, but not elsewhere. This was not the case with previous rails. I have a controller called Stories, so in /layouts/stories I can access flash\[\], but…

---

## [Calendar](https://www.ruby-forum.com/t/calendar/124186)

<div class="topic-metadata">

**Author:** [@suneeta](https://www.ruby-forum.com/u/suneeta)\
**Replies:** 3\
**Last updated:** [December 27, 2007, 12:26am UTC](https://www.ruby-forum.com/t/calendar/124186 "2007-12-27T00:26:44Z")

</div>

I need to implement a calender. It should enable the user to click on the calendar icon and select a date from it. then the selected date should be displayed in an inputbox. Please help…

---

## [Create statement in migration file does not work](https://www.ruby-forum.com/t/create-statement-in-migration-file-does-not-work/124218)

<div class="topic-metadata">

**Author:** [@jawosis](https://www.ruby-forum.com/u/jawosis)\
**Replies:** 9\
**Last updated:** [December 27, 2007, 12:20am UTC](https://www.ruby-forum.com/t/create-statement-in-migration-file-does-not-work/124218 "2007-12-27T00:20:17Z")

</div>

I have: class CreateGuests \< ActiveRecord::Migration def self.up create\_table :guests do |t| t.string :namen t.text :comment t.integer :admin, :default =\> 0 t.integer :deleted, :default =\> 1 t.timest…

---

## [Rails 2.0 Booleans](https://www.ruby-forum.com/t/rails-2-0-booleans/124235)

<div class="topic-metadata">

**Author:** [@soroe](https://www.ruby-forum.com/u/soroe)\
**Replies:** 2\
**Last updated:** [December 27, 2007, 12:05am UTC](https://www.ruby-forum.com/t/rails-2-0-booleans/124235 "2007-12-27T00:05:35Z")

</div>

Hey Guys, Was the behaviour of Booleans changed in Rails 2.0? Prior to 2.0 an ‘f’ or ‘false’ in a column called, say ‘active’, was returned as false when the model field ‘active?’ was called. I searched the 2.0 chan…

---

## [Overlaying Lines on an image](https://www.ruby-forum.com/t/overlaying-lines-on-an-image/123984)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 3\
**Last updated:** [December 26, 2007, 11:55pm UTC](https://www.ruby-forum.com/t/overlaying-lines-on-an-image/123984 "2007-12-26T23:55:16Z")

</div>

I am developing a project where users will need to be able to click on an image map to choose a path between several different places on the image. For example they click on A, B, C, then D compared to B, C, D, A. I…

---

## [Belongs\_to hackery](https://www.ruby-forum.com/t/belongs-to-hackery/124232)

<div class="topic-metadata">

**Author:** [@johnk](https://www.ruby-forum.com/u/johnk)\
**Replies:** 2\
**Last updated:** [December 26, 2007, 8:48pm UTC](https://www.ruby-forum.com/t/belongs-to-hackery/124232 "2007-12-26T20:48:40Z")

</div>

I have the following four files MODEL class FriendshipRequest \< ActiveRecord::Base belongs\_to :user belongs\_to :requested\_by, :class\_name =\> :user, :foreign\_key =\> :requested\_by\_user\_id end MIGRATION create\_table…

---

## [Before\_save with acts\_as\_versioned](https://www.ruby-forum.com/t/before-save-with-acts-as-versioned/124234)

<div class="topic-metadata">

**Author:** [@antonaylward](https://www.ruby-forum.com/u/antonaylward)\
**Replies:** 0\
**Last updated:** [December 26, 2007, 8:46pm UTC](https://www.ruby-forum.com/t/before-save-with-acts-as-versioned/124234 "2007-12-26T20:46:52Z")

</div>

Yes, I know about the :if/:if\_changed clause on acts\_as\_versioned ... content\_changed or author\_changed .... That’s not what I’m asking about. What I’m wondering about is something like applying the spiffy new 2.0 sa…

---

## [Self referential has\_one](https://www.ruby-forum.com/t/self-referential-has-one/124115)

<div class="topic-metadata">

**Author:** [@encmonkey](https://www.ruby-forum.com/u/encmonkey)\
**Replies:** 1\
**Last updated:** [December 26, 2007, 8:08pm UTC](https://www.ruby-forum.com/t/self-referential-has-one/124115 "2007-12-26T20:08:11Z")

</div>

Hello! I am trying to track ports - think patch panels and servers. There are many ports per location, and each port can have zero or one connection to another port. I would think that a self referencing has\_one re…

---

## [Moved Rails Projects to Git?](https://www.ruby-forum.com/t/moved-rails-projects-to-git/124108)

<div class="topic-metadata">

**Author:** [@matthew](https://www.ruby-forum.com/u/matthew)\
**Replies:** 7\
**Last updated:** [December 26, 2007, 8:05pm UTC](https://www.ruby-forum.com/t/moved-rails-projects-to-git/124108 "2007-12-26T20:05:50Z")

</div>

Has anyone on the list moved all their svn rails projects to git? There are a ton of blog posts and various instructions on how to co- exist with a master svn repo, serving out your rails project, and then locally usi…

---

## [SQL-Server Rails 2.0 and Nulls](https://www.ruby-forum.com/t/sql-server-rails-2-0-and-nulls/122906)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [December 26, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/sql-server-rails-2-0-and-nulls/122906 "2007-12-26T19:30:33Z")

</div>

will the patch in Ticket #8886 be applied to the sqlserver gem. also since the gems are hosted on the rails sites how can i get more information on the communities that are updating them?

---

## [Sorting Find Results by Accuracy](https://www.ruby-forum.com/t/sorting-find-results-by-accuracy/124067)

<div class="topic-metadata">

**Author:** [@Mozmonkey](https://www.ruby-forum.com/u/Mozmonkey)\
**Replies:** 11\
**Last updated:** [December 26, 2007, 7:03pm UTC](https://www.ruby-forum.com/t/sorting-find-results-by-accuracy/124067 "2007-12-26T19:03:09Z")

</div>

My site lets people search for other users by part of their username. The SQL snippet looks like this: WHERE username LIKE “%bob%” This will return the users: jobob, bobby, bobdobbs, bob I want the exact matches (i.…

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

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