# Rails

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

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

---

## [Deployment Question](https://www.ruby-forum.com/t/deployment-question/174445)

<div class="topic-metadata">

**Author:** [@tashfeen.ekram](https://www.ruby-forum.com/u/tashfeen.ekram)\
**Replies:** 4\
**Last updated:** [August 30, 2009, 5:24am UTC](https://www.ruby-forum.com/t/deployment-question/174445 "2009-08-30T05:24:45Z")

</div>

I am getting ready deploy my app and trying to figure its configuration to allow for scaling if needed. I am looking at deploying on Amazon. I do not expect high traffic in the beginning (though that is completely a c…

---

## [How to use link\_to method and :popup with ActiveRecord operation](https://www.ruby-forum.com/t/how-to-use-link-to-method-and-popup-with-activerecord-operation/174623)

<div class="topic-metadata">

**Author:** [@michael](https://www.ruby-forum.com/u/michael)\
**Replies:** 0\
**Last updated:** [August 30, 2009, 4:42am UTC](https://www.ruby-forum.com/t/how-to-use-link-to-method-and-popup-with-activerecord-operation/174623 "2009-08-30T04:42:01Z")

</div>

I want users click the links on the webpage with some ActiveRecord operations(and the content of the link will be shown in a new window),for example when someone click a article title,a new window will be open to show…

---

## [Routes problem](https://www.ruby-forum.com/t/routes-problem/174561)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 9\
**Last updated:** [August 30, 2009, 1:44am UTC](https://www.ruby-forum.com/t/routes-problem/174561 "2009-08-30T01:44:37Z")

</div>

Hello all, Here’s a newbie question (4 weeks and counting). My routes.rb is as below. map.resources :projects, :departments, :users, :admins, :imports, :notes #Below is route in question map.resources :projects, :co…

---

## [How to get the current environement in which app is running](https://www.ruby-forum.com/t/how-to-get-the-current-environement-in-which-app-is-running/174611)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 4\
**Last updated:** [August 30, 2009, 1:34am UTC](https://www.ruby-forum.com/t/how-to-get-the-current-environement-in-which-app-is-running/174611 "2009-08-30T01:34:05Z")

</div>

Hi, From within my rails app code, is it possible to get the current environment in which it is running? Such as development / production. Regards,

---

## [Rails Reporting Tools](https://www.ruby-forum.com/t/rails-reporting-tools/174616)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 1\
**Last updated:** [August 29, 2009, 11:47pm UTC](https://www.ruby-forum.com/t/rails-reporting-tools/174616 "2009-08-29T23:47:53Z")

</div>

I’ve been doing some research on which tools I want to go with for my rails project. However, I’m not sure what would be the best utility for the site. I have experience with Crystal Reports XI, but it appears to be …

---

## [How can I create a column of bigint sql type in migration?](https://www.ruby-forum.com/t/how-can-i-create-a-column-of-bigint-sql-type-in-migration/91439)

<div class="topic-metadata">

**Author:** [@allen](https://www.ruby-forum.com/u/allen)\
**Replies:** 7\
**Last updated:** [August 29, 2009, 11:19pm UTC](https://www.ruby-forum.com/t/how-can-i-create-a-column-of-bigint-sql-type-in-migration/91439 "2009-08-29T23:19:27Z")

</div>

Hi all, I want to use bigint sql type for a model’s id. How can I do this in migration? Should I just use the integer ruby type?

---

## [Windows --\> Linux = KaBoom :-|](https://www.ruby-forum.com/t/windows-linux-kaboom/174607)

<div class="topic-metadata">

**Author:** [@Ritvvij](https://www.ruby-forum.com/u/Ritvvij)\
**Replies:** 7\
**Last updated:** [August 29, 2009, 11:06pm UTC](https://www.ruby-forum.com/t/windows-linux-kaboom/174607 "2009-08-29T23:06:35Z")

</div>

Hello guys, We developed in windows and deployed on Linux server. Most of our partials started behaving indecently. Our coding \<%= render :partial =\> ‘./shared/footer’ %\> Deployment works with \<%= render :partial =\> …

---

## [During Rails install - ERROR: Failed to build gem native extension](https://www.ruby-forum.com/t/during-rails-install-error-failed-to-build-gem-native-extension/174355)

<div class="topic-metadata">

**Author:** [@mgpowers](https://www.ruby-forum.com/u/mgpowers)\
**Replies:** 2\
**Last updated:** [August 29, 2009, 10:12pm UTC](https://www.ruby-forum.com/t/during-rails-install-error-failed-to-build-gem-native-extension/174355 "2009-08-29T22:12:08Z")

</div>

Installed Ruby 1.8.6-26 Final Release…then tried to install Rails and got error show below… Any ideas ? PS. Had issues with 1.8.6-27 with sql lite and simple app work so went to this version which gave me another e…

---

## [Delayed\_Jobs Failed: Where to Check Logs/Errors?](https://www.ruby-forum.com/t/delayed-jobs-failed-where-to-check-logs-errors/174612)

<div class="topic-metadata">

**Author:** [@jh100000](https://www.ruby-forum.com/u/jh100000)\
**Replies:** 1\
**Last updated:** [August 29, 2009, 8:43pm UTC](https://www.ruby-forum.com/t/delayed-jobs-failed-where-to-check-logs-errors/174612 "2009-08-29T20:43:19Z")

</div>

I am using delayed\_job. It generally works but on one method I am calling the job always fails. I checked my rails logs and that does not show anything. The action is simply completed. Are there logs or someway to ch…

---

## [Help with Select](https://www.ruby-forum.com/t/help-with-select/174527)

<div class="topic-metadata">

**Author:** [@qaswm](https://www.ruby-forum.com/u/qaswm)\
**Replies:** 10\
**Last updated:** [August 29, 2009, 6:44pm UTC](https://www.ruby-forum.com/t/help-with-select/174527 "2009-08-29T18:44:56Z")

</div>

I have the following three items in the db: :year\_made a value between 1980 and Time.now.year :year\_imported “Local” or a value between :year\_made and Time.now.year :year\_registered #If :year\_imported == “Local” a v…

---

## [\*Please Help\* Cannot save a new user to the database](https://www.ruby-forum.com/t/please-help-cannot-save-a-new-user-to-the-database/174549)

<div class="topic-metadata">

**Author:** [@RubyonRails\_newbie](https://www.ruby-forum.com/u/RubyonRails_newbie)\
**Replies:** 6\
**Last updated:** [August 29, 2009, 6:37pm UTC](https://www.ruby-forum.com/t/please-help-cannot-save-a-new-user-to-the-database/174549 "2009-08-29T18:37:19Z")

</div>

Hello, I am following the RailsSpace tutorial and am at the point where I am creating a new user through (user/register) I have added the details into the form: screen\_name, email and password. When I click register…

---

## [REPL in a browser](https://www.ruby-forum.com/t/repl-in-a-browser/174578)

<div class="topic-metadata">

**Author:** [@chris\_the\_frog](https://www.ruby-forum.com/u/chris_the_frog)\
**Replies:** 3\
**Last updated:** [August 29, 2009, 6:20pm UTC](https://www.ruby-forum.com/t/repl-in-a-browser/174578 "2009-08-29T18:20:55Z")

</div>

Hi! I am a computer science student and I have a problem I just can’t seem to find an answer to. I would like to embed a read-eval-print- loop in a website. Essentially, I’d like a window that mimics a console: the us…

---

## [NoMethodError with unexpected nil object in ERB](https://www.ruby-forum.com/t/nomethoderror-with-unexpected-nil-object-in-erb/174503)

<div class="topic-metadata">

**Author:** [@ryokamiya](https://www.ruby-forum.com/u/ryokamiya)\
**Replies:** 2\
**Last updated:** [August 29, 2009, 4:37pm UTC](https://www.ruby-forum.com/t/nomethoderror-with-unexpected-nil-object-in-erb/174503 "2009-08-29T16:37:44Z")

</div>

I have created original method and trying to pass newly instantiated object to ERB file, but encountering NoMethodError in ERB file with the following error message. NoMethodError in Products#lookup Showing app/view…

---

## [Default\_error\_messages error with attachment\_fu](https://www.ruby-forum.com/t/default-error-messages-error-with-attachment-fu/174600)

<div class="topic-metadata">

**Author:** [@wsimacek](https://www.ruby-forum.com/u/wsimacek)\
**Replies:** 0\
**Last updated:** [August 29, 2009, 12:57pm UTC](https://www.ruby-forum.com/t/default-error-messages-error-with-attachment-fu/174600 "2009-08-29T12:57:36Z")

</div>

Hi, Just a newbie at Rails. Was looking at uploading images using attachment\_fu and RMagick on a Windows Vista machine, but was getting this error. Any possible way of fixing this problem? ActiveRecord::Errors.defaul…

---

## [Why won't this Ruby/Mechanize HTTP POST work? (the Bank's web server gives Session Timeout response](https://www.ruby-forum.com/t/why-wont-this-ruby-mechanize-http-post-work-the-banks-web-server-gives-session-timeout-response/174599)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 0\
**Last updated:** [August 29, 2009, 12:55pm UTC](https://www.ruby-forum.com/t/why-wont-this-ruby-mechanize-http-post-work-the-banks-web-server-gives-session-timeout-response/174599 "2009-08-29T12:55:31Z")

</div>

Hi, A question for the web/http guru’s out there if I may (who understand cookies, sessions ids, etc). BACKGROUND: I’m writing some Ruby code (using Mechanize) to automate logging into my bank account to check the b…

---

## [Adding New Column](https://www.ruby-forum.com/t/adding-new-column/174515)

<div class="topic-metadata">

**Author:** [@techtimer](https://www.ruby-forum.com/u/techtimer)\
**Replies:** 8\
**Last updated:** [August 29, 2009, 10:42am UTC](https://www.ruby-forum.com/t/adding-new-column/174515 "2009-08-29T10:42:39Z")

</div>

I added a new column using a migration. Once I updated the new.html.erb, edit.html.erb, show.html.erb, and the index.html.erb I brought up my web pages. There was a field to update show. I tried the update and the it…

---

## [Objects in Views](https://www.ruby-forum.com/t/objects-in-views/174582)

<div class="topic-metadata">

**Author:** [@dhruvasagar](https://www.ruby-forum.com/u/dhruvasagar)\
**Replies:** 4\
**Last updated:** [August 29, 2009, 10:30am UTC](https://www.ruby-forum.com/t/objects-in-views/174582 "2009-08-29T10:30:21Z")

</div>

Hi everyone, I have recently experienced a strange behavior (strange from my knowledge) in rails. In my controllers ‘new’ action, I am creating a few instance variables in the following manner : @controllerModel =…

---

## [Application error on Host monster server](https://www.ruby-forum.com/t/application-error-on-host-monster-server/174589)

<div class="topic-metadata">

**Author:** [@dharshannew](https://www.ruby-forum.com/u/dharshannew)\
**Replies:** 1\
**Last updated:** [August 29, 2009, 9:24am UTC](https://www.ruby-forum.com/t/application-error-on-host-monster-server/174589 "2009-08-29T09:24:13Z")

</div>

Hello , I am using Host Monster for my application it gives application error. i can not understand what is going on ?

---

## [Tags with spaces in it issue - acts\_as\_tagged\_on\_steriods](https://www.ruby-forum.com/t/tags-with-spaces-in-it-issue-acts-as-tagged-on-steriods/174583)

<div class="topic-metadata">

**Author:** [@railslist](https://www.ruby-forum.com/u/railslist)\
**Replies:** 0\
**Last updated:** [August 29, 2009, 5:55am UTC](https://www.ruby-forum.com/t/tags-with-spaces-in-it-issue-acts-as-tagged-on-steriods/174583 "2009-08-29T05:55:06Z")

</div>

I am using acts\_as\_tagged\_on\_steriods for tagging which works well for single word tags. When clicking on tags with multiple words (tags with spaces in them - ex: “ruby rails”), spaces are also displayed in URL. How …

---

## [Routing and has\_many](https://www.ruby-forum.com/t/routing-and-has-many/174499)

<div class="topic-metadata">

**Author:** [@hansfh](https://www.ruby-forum.com/u/hansfh)\
**Replies:** 3\
**Last updated:** [August 29, 2009, 5:06am UTC](https://www.ruby-forum.com/t/routing-and-has-many/174499 "2009-08-29T05:06:44Z")

</div>

Hi, im a rails newbie, so please be gentle: let’s say category habtm products and i’ve got a product with the id 7. when i use the url /categories/7/products should the server show me only the categories of product…

---

## [Association extension method](https://www.ruby-forum.com/t/association-extension-method/174584)

<div class="topic-metadata">

**Author:** [@bryan-ash](https://www.ruby-forum.com/u/bryan-ash)\
**Replies:** 2\
**Last updated:** [August 29, 2009, 3:23am UTC](https://www.ruby-forum.com/t/association-extension-method/174584 "2009-08-29T03:23:07Z")

</div>

In my application a user working at a dropzone can manipulate transactions against customer accounts. Here’s my models: class Transaction \< ActiveRecord::Base belongs\_to :account end class Account \< ActiveRecord::B…

---

## [Plugin for running a timer based application](https://www.ruby-forum.com/t/plugin-for-running-a-timer-based-application/174511)

<div class="topic-metadata">

**Author:** [@rubala](https://www.ruby-forum.com/u/rubala)\
**Replies:** 1\
**Last updated:** [August 29, 2009, 2:03am UTC](https://www.ruby-forum.com/t/plugin-for-running-a-timer-based-application/174511 "2009-08-29T02:03:30Z")

</div>

Hi, I am trying to achieve the following… wondering if there is any way to achieve this… Some background: i have an application where the user can request an specific email to be sent at a scheduled time. For e.g. …

---

## [Nil object nightmare](https://www.ruby-forum.com/t/nil-object-nightmare/174580)

<div class="topic-metadata">

**Author:** [@acgreen](https://www.ruby-forum.com/u/acgreen)\
**Replies:** 0\
**Last updated:** [August 29, 2009, 1:19am UTC](https://www.ruby-forum.com/t/nil-object-nightmare/174580 "2009-08-29T01:19:36Z")

</div>

I’m having a real problem with nil objects in a view I’m playing with. if I type … \<%= debug lesson.lesson\_register.attendees %\> I get the following displayed in the browser … !ruby/object:Attendee attributes: en…

---

## [Getting error NoMethodError in Book#new](https://www.ruby-forum.com/t/getting-error-nomethoderror-in-book-new/174452)

<div class="topic-metadata">

**Author:** [@deostroll](https://www.ruby-forum.com/u/deostroll)\
**Replies:** 4\
**Last updated:** [August 28, 2009, 11:04pm UTC](https://www.ruby-forum.com/t/getting-error-nomethoderror-in-book-new/174452 "2009-08-28T23:04:21Z")

</div>

I’m just getting introduced to rails. I’ve started with the tutorials mentioned in tutorialspoint.com. I am getting stuck at creating a view. Tried the code on this page and it gives me the following error: undefin…

---

## [Render :partial erroring with wrong extension](https://www.ruby-forum.com/t/render-partial-erroring-with-wrong-extension/174513)

<div class="topic-metadata">

**Author:** [@eric](https://www.ruby-forum.com/u/eric)\
**Replies:** 1\
**Last updated:** [August 28, 2009, 10:37pm UTC](https://www.ruby-forum.com/t/render-partial-erroring-with-wrong-extension/174513 "2009-08-28T22:37:25Z")

</div>

I’m thinking that for some reason Rails isn’t seeing a content\_type so is falling back to .erb rather than using .html.erb, but I can’t figure out how this would happen or why it’s not able to find the correct file. I…

---

## [New Ajax.Request + :complete =\> + javascript](https://www.ruby-forum.com/t/new-ajax-request-complete-javascript/174571)

<div class="topic-metadata">

**Author:** [@Abhishek\_shukla](https://www.ruby-forum.com/u/Abhishek_shukla)\
**Replies:** 0\
**Last updated:** [August 28, 2009, 10:12pm UTC](https://www.ruby-forum.com/t/new-ajax-request-complete-javascript/174571 "2009-08-28T22:12:50Z")

</div>

Hello friends Action i am making a ajax request from a javascript function and i want to have a spinner ::complete =\> “Element.hide(‘spinner’);”, But not able to insert it, Is there any one who have an idea? Than…

---

## [Cucmber](https://www.ruby-forum.com/t/cucmber/174568)

<div class="topic-metadata">

**Author:** [@douglas](https://www.ruby-forum.com/u/douglas)\
**Replies:** 0\
**Last updated:** [August 28, 2009, 10:06pm UTC](https://www.ruby-forum.com/t/cucmber/174568 "2009-08-28T22:06:31Z")

</div>

A client of mine located in Atlanta is looking for a strong Business Analyst with knowledge of Ruby on Rails and Cucumber. This would be a Full Time position and they would pay relocation. I am not proficient in Cucum…

---

## [Partials redrawing](https://www.ruby-forum.com/t/partials-redrawing/174560)

<div class="topic-metadata">

**Author:** [@RVince](https://www.ruby-forum.com/u/RVince)\
**Replies:** 2\
**Last updated:** [August 28, 2009, 9:48pm UTC](https://www.ruby-forum.com/t/partials-redrawing/174560 "2009-08-28T21:48:15Z")

</div>

I have a select in a partial (\_partialInPartial) , which itself is in a partial (\_partial). \_partialInPartial contains a select. WIthin the select, I have :selected = \> nil so that there is nothing selected. When I r…

---

## [Error connecting to Sybase (odd)](https://www.ruby-forum.com/t/error-connecting-to-sybase-odd/174570)

<div class="topic-metadata">

**Author:** [@trevoke](https://www.ruby-forum.com/u/trevoke)\
**Replies:** 0\
**Last updated:** [August 28, 2009, 9:37pm UTC](https://www.ruby-forum.com/t/error-connecting-to-sybase-odd/174570 "2009-08-28T21:37:59Z")

</div>

I have activerecord-sybase-adapter installed – and Sybase itself, so I have the drivers. In irb or in the rails console, this works: ActiveRecord::Base.establish\_connection( :adapter =\> â€œsybaseâ€, :database =\> â€…

---

## [Get this error: "A copy of \* has been removed from the module tree but is still active!"](https://www.ruby-forum.com/t/get-this-error-a-copy-of-has-been-removed-from-the-module-tree-but-is-still-active/174567)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [August 28, 2009, 8:55pm UTC](https://www.ruby-forum.com/t/get-this-error-a-copy-of-has-been-removed-from-the-module-tree-but-is-still-active/174567 "2009-08-28T20:55:35Z")

</div>

Hi, In one of my javascript functions I do two consecutive GET (ajax) requests in quick succession. I get the following error in Rails version 2.3.3 but not in 2.3.2. If I give a time lag (even 500ms) between to two …

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

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