# Rails

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

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

---

## [Current\_page? inside controller](https://www.ruby-forum.com/t/current-page-inside-controller/194774)

<div class="topic-metadata">

**Author:** [@robertpostill](https://www.ruby-forum.com/u/robertpostill)\
**Replies:** 10\
**Last updated:** [September 13, 2010, 3:42am UTC](https://www.ruby-forum.com/t/current-page-inside-controller/194774 "2010-09-13T03:42:22Z")

</div>

Is there any easy way of using something like current\_page? method from ActionView::Helpers::UrlHelper inside controller ? I have routing like: resources :addresses resources :mailing\_addresses, :controller =\> ‘addre…

---

## [\[ANN\] Call for papers for Conferencia Rails 2010 in Madrid](https://www.ruby-forum.com/t/ann-call-for-papers-for-conferencia-rails-2010-in-madrid/194881)

<div class="topic-metadata">

**Author:** [@javier\_ramirez](https://www.ruby-forum.com/u/javier_ramirez)\
**Replies:** 0\
**Last updated:** [September 13, 2010, 1:45am UTC](https://www.ruby-forum.com/t/ann-call-for-papers-for-conferencia-rails-2010-in-madrid/194881 "2010-09-13T01:45:53Z")

</div>

Hi, For the fifth year in a row, we are pleased to announce this yearâ€™s edition of â€œLa Conferencia Railsâ€, to be held in Madrid, Spain, on Thursday the 4th and Friday the 5th of November 2010. Following the tra…

---

## [\<\<How do I mount virtual rails to Virtual Machine?\>\>](https://www.ruby-forum.com/t/how-do-i-mount-virtual-rails-to-virtual-machine/194877)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [September 13, 2010, 1:25am UTC](https://www.ruby-forum.com/t/how-do-i-mount-virtual-rails-to-virtual-machine/194877 "2010-09-13T01:25:59Z")

</div>

I installed virtual machine on my windows vista operating system and am running linux ubuntu. Then i downloaded virtual rails. i created a virtual hard disk as instructed called virtualrailz001.vdi. whenever I try t…

---

## [Cumulative Sum with will\_paginate and activerecord](https://www.ruby-forum.com/t/cumulative-sum-with-will-paginate-and-activerecord/194775)

<div class="topic-metadata">

**Author:** [@Fidel\_V](https://www.ruby-forum.com/u/Fidel_V)\
**Replies:** 8\
**Last updated:** [September 13, 2010, 12:54am UTC](https://www.ruby-forum.com/t/cumulative-sum-with-will-paginate-and-activerecord/194775 "2010-09-13T00:54:53Z")

</div>

Hi everyone, I am trying to a cumulative sum on each page using will\_paginate. I don’t want the sum of each page, but the cumulative sum. Here is an example: on Page 1 I have: | date | in | out …

---

## [Creating a Scope that joins user\_id with the User Table (user.id) â€” Rails 3](https://www.ruby-forum.com/t/creating-a-scope-that-joins-user-id-with-the-user-table-user-id-a-rails-3/194869)

<div class="topic-metadata">

**Author:** [@nobosh](https://www.ruby-forum.com/u/nobosh)\
**Replies:** 5\
**Last updated:** [September 13, 2010, 12:20am UTC](https://www.ruby-forum.com/t/creating-a-scope-that-joins-user-id-with-the-user-table-user-id-a-rails-3/194869 "2010-09-13T00:20:56Z")

</div>

Hello, I’m using Rails 3 with devise. I have a table books which has a column for user\_id, which is related to the Users table (user.rb) (FK) I’m trying to create a Scope that shows all the books along with the user’…

---

## [Help in making a function inherited by all views](https://www.ruby-forum.com/t/help-in-making-a-function-inherited-by-all-views/194830)

<div class="topic-metadata">

**Author:** [@TEREN](https://www.ruby-forum.com/u/TEREN)\
**Replies:** 10\
**Last updated:** [September 12, 2010, 11:16pm UTC](https://www.ruby-forum.com/t/help-in-making-a-function-inherited-by-all-views/194830 "2010-09-12T23:16:33Z")

</div>

I already asked it in the railsforum.com but it didn’t quite got answered yet so instead of repeating the question heres a link: http://railsforum.com/viewtopic.php?id=40810 feel free answering either here or in the f…

---

## [Couldn't find User without an ID](https://www.ruby-forum.com/t/couldnt-find-user-without-an-id/194821)

<div class="topic-metadata">

**Author:** [@Anders\_P](https://www.ruby-forum.com/u/Anders_P)\
**Replies:** 10\
**Last updated:** [September 12, 2010, 10:06pm UTC](https://www.ruby-forum.com/t/couldnt-find-user-without-an-id/194821 "2010-09-12T22:06:19Z")

</div>

Hello! I’m trying to create a list of user “ads” on my home page in my app. But I don’t get it to work. I’m a rails noob so it might be something trivial. I’m currently running into this error: Couldn’t find User wi…

---

## [Vestal\_versions, user\_id](https://www.ruby-forum.com/t/vestal-versions-user-id/194841)

<div class="topic-metadata">

**Author:** [@nobosh](https://www.ruby-forum.com/u/nobosh)\
**Replies:** 15\
**Last updated:** [September 12, 2010, 9:51pm UTC](https://www.ruby-forum.com/t/vestal-versions-user-id/194841 "2010-09-12T21:51:06Z")

</div>

Anyone using vestal\_versions: How do you set the user\_id in the versions table? tried: in: def update @book.version.user\_id(@current\_user.id) and @book.user\_id(@current\_user.id) both error thanks

---

## [ActiveSupport::TimeWithZone to\_s(:format) not working in view?](https://www.ruby-forum.com/t/activesupport-timewithzone-to-s-format-not-working-in-view/194829)

<div class="topic-metadata">

**Author:** [@Andreas\_Schmidt](https://www.ruby-forum.com/u/Andreas_Schmidt)\
**Replies:** 10\
**Last updated:** [September 12, 2010, 9:06pm UTC](https://www.ruby-forum.com/t/activesupport-timewithzone-to-s-format-not-working-in-view/194829 "2010-09-12T21:06:37Z")

</div>

Hello, i got some strange behaviour here in my app i cannot work out. Maybe here someone knows a soloution for this? In the view: \<% @product.comments.each do |comment| %\> \<%= comment.created\_at.to\_s(:db) %\>…

---

## [Html input strings to database column integers](https://www.ruby-forum.com/t/html-input-strings-to-database-column-integers/194865)

<div class="topic-metadata">

**Author:** [@krat](https://www.ruby-forum.com/u/krat)\
**Replies:** 9\
**Last updated:** [September 12, 2010, 8:57pm UTC](https://www.ruby-forum.com/t/html-input-strings-to-database-column-integers/194865 "2010-09-12T20:57:50Z")

</div>

Hello all, I am pulling my hair out on this. It seems like it should be the easiest thing in the world to do, but it’s just escaping me. I have a rails built form and but I keep getting this error when I submit it: “…

---

## [Manual Rake Tasks Question](https://www.ruby-forum.com/t/manual-rake-tasks-question/194810)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 4\
**Last updated:** [September 12, 2010, 8:27pm UTC](https://www.ruby-forum.com/t/manual-rake-tasks-question/194810 "2010-09-12T20:27:22Z")

</div>

Adapted from Ryan B.: application\_controller.rb def call\_rake(task, os, options = {}) options\[:rails\_env\] ||= Rails.env args = options.map { |n, v| “#{n.to\_s.upcase}=’#{v}’” } system “/usr/bin/rake #{task} #{args.jo…

---

## [Unable to get RAILS 3 recognize the Ruby 1.9.2 on Ubuntu 10.04](https://www.ruby-forum.com/t/unable-to-get-rails-3-recognize-the-ruby-1-9-2-on-ubuntu-10-04/194863)

<div class="topic-metadata">

**Author:** [@srikanth](https://www.ruby-forum.com/u/srikanth)\
**Replies:** 5\
**Last updated:** [September 12, 2010, 6:13pm UTC](https://www.ruby-forum.com/t/unable-to-get-rails-3-recognize-the-ruby-1-9-2-on-ubuntu-10-04/194863 "2010-09-12T18:13:54Z")

</div>

I have fresh install of Ubuntu 10.04. I have installed Ruby 1.9.2 and RAIL 3 as per this blog http://torqueo.net/installing-ruby-192-and-rails-3-stable-on-ubuntu/. When I run "ruby -v’, I see this; srikanth@ubuntu:~$…

---

## [Cookies are not send](https://www.ruby-forum.com/t/cookies-are-not-send/194860)

<div class="topic-metadata">

**Author:** [@Norbert\_M](https://www.ruby-forum.com/u/Norbert_M)\
**Replies:** 0\
**Last updated:** [September 12, 2010, 4:02pm UTC](https://www.ruby-forum.com/t/cookies-are-not-send/194860 "2010-09-12T16:02:13Z")

</div>

Hello! In my production environment there are no cookies sent to the client when using the session hash… Here is the login function: def check u = User.first(:conditions =\> \[“nick = ?”, params\[:user\]\]) if (u != nil…

---

## [Observe\_field for jquery + rails3](https://www.ruby-forum.com/t/observe-field-for-jquery-rails3/194858)

<div class="topic-metadata">

**Author:** [@Guda](https://www.ruby-forum.com/u/Guda)\
**Replies:** 0\
**Last updated:** [September 12, 2010, 3:49pm UTC](https://www.ruby-forum.com/t/observe-field-for-jquery-rails3/194858 "2010-09-12T15:49:20Z")

</div>

I am porting one application to Rails3 and want to know what is the right way to do “observe\_field” with Rails3?

---

## [Resource routes: optional path components](https://www.ruby-forum.com/t/resource-routes-optional-path-components/194853)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 2\
**Last updated:** [September 12, 2010, 3:07pm UTC](https://www.ruby-forum.com/t/resource-routes-optional-path-components/194853 "2010-09-12T15:07:11Z")

</div>

I have a model, Image, with paperclip attachments. The necessary routes are currently simply defined by resources :images As each image is available in different sizes (styles, really), paths effectively look like th…

---

## [Flaw in permalinking system](https://www.ruby-forum.com/t/flaw-in-permalinking-system/194814)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 7\
**Last updated:** [September 12, 2010, 11:41am UTC](https://www.ruby-forum.com/t/flaw-in-permalinking-system/194814 "2010-09-12T11:41:08Z")

</div>

Hi Basically I have a permalink system setup using the to\_param method in the model file. Since I have a system in which categories has\_many tutorials, my URLs look a bit like this: site.com/CatID-Category-Perma/TutI…

---

## [Rails 3 backends](https://www.ruby-forum.com/t/rails-3-backends/194801)

<div class="topic-metadata">

**Author:** [@Kenneth\_D](https://www.ruby-forum.com/u/Kenneth_D)\
**Replies:** 7\
**Last updated:** [September 12, 2010, 10:29am UTC](https://www.ruby-forum.com/t/rails-3-backends/194801 "2010-09-12T10:29:10Z")

</div>

Are there any decent backends for rails 3? passenger is disqualified because of it’s unfriendly install. I have a software distribution system. I don’t compile software on production machines. mongrel2 is disquali…

---

## [DICOM to JPG using Paperclip](https://www.ruby-forum.com/t/dicom-to-jpg-using-paperclip/194837)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 1\
**Last updated:** [September 11, 2010, 11:59pm UTC](https://www.ruby-forum.com/t/dicom-to-jpg-using-paperclip/194837 "2010-09-11T23:59:25Z")

</div>

Is there a way to convert a DICOM file to JPG using Paperclip? Thanks.

---

## [Autotest on Windows](https://www.ruby-forum.com/t/autotest-on-windows/194838)

<div class="topic-metadata">

**Author:** [@zYan1de](https://www.ruby-forum.com/u/zYan1de)\
**Replies:** 0\
**Last updated:** [September 11, 2010, 11:31pm UTC](https://www.ruby-forum.com/t/autotest-on-windows/194838 "2010-09-11T23:31:58Z")

</div>

Hello I use Windows 7 and I can’t run Autotest, When i try to run autotest in my rails app dir, all that gets outputted is “loading autotest/rails” then nothing… No text, no errors, no nothing… Does anybody know wha…

---

## [Adding an associated Table to an Existing Table (Book \> Revision)](https://www.ruby-forum.com/t/adding-an-associated-table-to-an-existing-table-book-revision/194831)

<div class="topic-metadata">

**Author:** [@nobosh](https://www.ruby-forum.com/u/nobosh)\
**Replies:** 7\
**Last updated:** [September 11, 2010, 8:04pm UTC](https://www.ruby-forum.com/t/adding-an-associated-table-to-an-existing-table-book-revision/194831 "2010-09-11T20:04:45Z")

</div>

Hello, newbie here… I have the following models: class Instance \< ActiveRecord::Base has\_many :users has\_many :books end class User \< ActiveRecord::Base belongs\_to :instance end class Book \< ActiveRecord::Base …

---

## [Rails production no public directory](https://www.ruby-forum.com/t/rails-production-no-public-directory/194832)

<div class="topic-metadata">

**Author:** [@heldopslippers](https://www.ruby-forum.com/u/heldopslippers)\
**Replies:** 2\
**Last updated:** [September 11, 2010, 8:01pm UTC](https://www.ruby-forum.com/t/rails-production-no-public-directory/194832 "2010-09-11T20:01:51Z")

</div>

Hi guys… I am deploying a new rails 3 app. For this i am using rails 3, thin and apache. But for hours now i have a problem with the public dir. It cannot be accessed beceause it is filtered by the route file. I hav…

---

## [Connection refused - connect(2)](https://www.ruby-forum.com/t/connection-refused-connect-2/194811)

<div class="topic-metadata">

**Author:** [@anthonys](https://www.ruby-forum.com/u/anthonys)\
**Replies:** 2\
**Last updated:** [September 11, 2010, 7:56pm UTC](https://www.ruby-forum.com/t/connection-refused-connect-2/194811 "2010-09-11T19:56:33Z")

</div>

I got this error this evening while running my specs: Connection refused - connect(2) I’m running under test/development and I’m using SQLite3. I didn’t have this issue yesterday and my code hasn’t changed since then…

---

## [Paperclip - 'identify' command](https://www.ruby-forum.com/t/paperclip-identify-command/194804)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 4\
**Last updated:** [September 11, 2010, 7:25pm UTC](https://www.ruby-forum.com/t/paperclip-identify-command/194804 "2010-09-11T19:25:31Z")

</div>

I’m following this tutorial: http://jimneath.org/2008/04/17/paperclip-attaching-files-in-rails/ When it comes to running the application, I get the following errors: -Photo C:/Users/ABDER-~1/AppData/Local/Temp/stream,…

---

## [Set table value](https://www.ruby-forum.com/t/set-table-value/194805)

<div class="topic-metadata">

**Author:** [@evanoshkithegreat](https://www.ruby-forum.com/u/evanoshkithegreat)\
**Replies:** 2\
**Last updated:** [September 11, 2010, 7:10pm UTC](https://www.ruby-forum.com/t/set-table-value/194805 "2010-09-11T19:10:18Z")

</div>

Hi guys, I’m a newbie in ruby and I would just like to know how you set a value for a field in a table where session\[:user\_id\] matches user.user\_id. I am trying to do this from a submit form in the show.html.erb file …

---

## [Need help on Dicom Image viewer](https://www.ruby-forum.com/t/need-help-on-dicom-image-viewer/194705)

<div class="topic-metadata">

**Author:** [@A\_Sarkar](https://www.ruby-forum.com/u/A_Sarkar)\
**Replies:** 5\
**Last updated:** [September 11, 2010, 6:01pm UTC](https://www.ruby-forum.com/t/need-help-on-dicom-image-viewer/194705 "2010-09-11T18:01:49Z")

</div>

Hi, We are developing an application that requires DICOM image viewer on the server but we can not find a viewer that will work on ROR server. There are no Gems available. Any help will be apreciated. Regards Amit

---

## [After Upgrade to Rails 3.0, all translation missing: en](https://www.ruby-forum.com/t/after-upgrade-to-rails-3-0-all-translation-missing-en/194825)

<div class="topic-metadata">

**Author:** [@artchrst](https://www.ruby-forum.com/u/artchrst)\
**Replies:** 0\
**Last updated:** [September 11, 2010, 4:49pm UTC](https://www.ruby-forum.com/t/after-upgrade-to-rails-3-0-all-translation-missing-en/194825 "2010-09-11T16:49:07Z")

</div>

HI All, I’ve just succeeded to upgrade my rails to 3.0. However, all my translation are missing no matter what locale I set. I can run ‘rake makemo’ and I tried to add and remove the following I18n.backend in my app…

---

## [Rails 3 helper method not called](https://www.ruby-forum.com/t/rails-3-helper-method-not-called/194820)

<div class="topic-metadata">

**Author:** [@bosko](https://www.ruby-forum.com/u/bosko)\
**Replies:** 0\
**Last updated:** [September 11, 2010, 1:13pm UTC](https://www.ruby-forum.com/t/rails-3-helper-method-not-called/194820 "2010-09-11T13:13:52Z")

</div>

While I was trying to port one application from Rail 2 to Rails 3 I’ve noticed that helper methods used for rewriting URL paths are not called. Methods are defined in app/helpers/url\_helper.rb: module UrlHelper def s…

---

## [Need an online payment system - suggestions required](https://www.ruby-forum.com/t/need-an-online-payment-system-suggestions-required/194508)

<div class="topic-metadata">

**Author:** [@zurich\_by\_night](https://www.ruby-forum.com/u/zurich_by_night)\
**Replies:** 3\
**Last updated:** [September 11, 2010, 10:24am UTC](https://www.ruby-forum.com/t/need-an-online-payment-system-suggestions-required/194508 "2010-09-11T10:24:43Z")

</div>

Hello all, We are about to launch our site. One of the features that is missing at the moment is a way for users to fill in their credit card details and click send to purchase our products that we offer on our websit…

---

## [PostgreSQL 8.3 not storing 'Date' field type with Rails 3.0](https://www.ruby-forum.com/t/postgresql-8-3-not-storing-date-field-type-with-rails-3-0/194798)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 1\
**Last updated:** [September 11, 2010, 9:36am UTC](https://www.ruby-forum.com/t/postgresql-8-3-not-storing-date-field-type-with-rails-3-0/194798 "2010-09-11T09:36:09Z")

</div>

Hi there, I’ve searched far and wide for an answer to this. I am using Rails 3.0.0 with Postgresql8.3 and ActiveRecord. Almost everything works fine - I have the normal timestamps, which store correctly, and a field c…

---

## [Passenger can't find apache installation](https://www.ruby-forum.com/t/passenger-cant-find-apache-installation/194815)

<div class="topic-metadata">

**Author:** [@sereno](https://www.ruby-forum.com/u/sereno)\
**Replies:** 0\
**Last updated:** [September 11, 2010, 8:57am UTC](https://www.ruby-forum.com/t/passenger-cant-find-apache-installation/194815 "2010-09-11T08:57:33Z")

</div>

Hi all, I’m trying install passenger to work as a module of my apache 2 server, but the installation script is returning the follow message: Apache 2…not found. I have searched for a hack all day and, every site say…

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

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