# Rails

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

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

---

## [Questions on this controller](https://www.ruby-forum.com/t/questions-on-this-controller/193275)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 1\
**Last updated:** [August 14, 2010, 4:48pm UTC](https://www.ruby-forum.com/t/questions-on-this-controller/193275 "2010-08-14T16:48:32Z")

</div>

At: Getting Started with Rails — Ruby on Rails Guides Under: 7.4 Generating a Controller I have some questions about this controller: class CommentsController \< ApplicationController def create @post = Post.find(par…

---

## ["uninitialized constant" Error for CalendarHelpper](https://www.ruby-forum.com/t/uninitialized-constant-error-for-calendarhelpper/193216)

<div class="topic-metadata">

**Author:** [@defeliz](https://www.ruby-forum.com/u/defeliz)\
**Replies:** 5\
**Last updated:** [August 14, 2010, 3:39pm UTC](https://www.ruby-forum.com/t/uninitialized-constant-error-for-calendarhelpper/193216 "2010-08-14T15:39:21Z")

</div>

After installing calendar\_helper-0.2.3 gem, application using CalendarHelper works fine. Then I tried to test using rake command which gave me the following error. Why does these messages appear evenif the application…

---

## [Ruby PRAWN PDF generatiog values from controller](https://www.ruby-forum.com/t/ruby-prawn-pdf-generatiog-values-from-controller/193212)

<div class="topic-metadata">

**Author:** [@rorjeff](https://www.ruby-forum.com/u/rorjeff)\
**Replies:** 3\
**Last updated:** [August 14, 2010, 12:26pm UTC](https://www.ruby-forum.com/t/ruby-prawn-pdf-generatiog-values-from-controller/193212 "2010-08-14T12:26:21Z")

</div>

I have a file named report.pdf.prawn, which is the view part of my PDF file where we can edit the contents of the PDF file like \>\>\> pdf=Prawn::Document.new(:page\_layout =\>:landscape,:page\_size =\> ‘A4’) pdf.text"Hello…

---

## [Problem with changing from mySql to PostrgreSql with rails](https://www.ruby-forum.com/t/problem-with-changing-from-mysql-to-postrgresql-with-rails/193147)

<div class="topic-metadata">

**Author:** [@mohammed\_a](https://www.ruby-forum.com/u/mohammed_a)\
**Replies:** 10\
**Last updated:** [August 14, 2010, 12:09pm UTC](https://www.ruby-forum.com/t/problem-with-changing-from-mysql-to-postrgresql-with-rails/193147 "2010-08-14T12:09:21Z")

</div>

I have this statement running Ok in my development mode @users = User.paginate :joins =\> :properties ,:group =\> ‘users.id’, :page =\> params\[:page\], :order =\> ‘count(properties.id) DESC’,:conditions =\> \[‘users.id != 1’…

---

## [Searchlogic #order with NULLS LAST](https://www.ruby-forum.com/t/searchlogic-order-with-nulls-last/193263)

<div class="topic-metadata">

**Author:** [@RaW](https://www.ruby-forum.com/u/RaW)\
**Replies:** 0\
**Last updated:** [August 14, 2010, 11:55am UTC](https://www.ruby-forum.com/t/searchlogic-order-with-nulls-last/193263 "2010-08-14T11:55:54Z")

</div>

Anyone with an idea how to use Searchlogic::RailsHelpers#order method with NULLS LAST?

---

## [Can't Dump file - paperclip with workling and starling](https://www.ruby-forum.com/t/cant-dump-file-paperclip-with-workling-and-starling/193259)

<div class="topic-metadata">

**Author:** [@df-sean](https://www.ruby-forum.com/u/df-sean)\
**Replies:** 0\
**Last updated:** [August 14, 2010, 9:42am UTC](https://www.ruby-forum.com/t/cant-dump-file-paperclip-with-workling-and-starling/193259 "2010-08-14T09:42:49Z")

</div>

here is my controller action: def create UploadWorker.async\_send\_file(params\[:image\]) flash\[:notice\] = “uploading file” redirect\_to root\_url end class UploadWorker \< Workling::Base def send\_file(options) @image =…

---

## [Does Ruby have standard container like C++?](https://www.ruby-forum.com/t/does-ruby-have-standard-container-like-c/193257)

<div class="topic-metadata">

**Author:** [@cnguyen](https://www.ruby-forum.com/u/cnguyen)\
**Replies:** 1\
**Last updated:** [August 14, 2010, 9:05am UTC](https://www.ruby-forum.com/t/does-ruby-have-standard-container-like-c/193257 "2010-08-14T09:05:00Z")

</div>

Hi everyone, I’m a newbie to Ruby. I’ve just started learning Ruby for a week, but I love it :slight\_smile: so much. I wonder is there any website to look up standard library like C++? And does Ruby have some standar…

---

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

<div class="topic-metadata">

**Author:** [@sam](https://www.ruby-forum.com/u/sam)\
**Replies:** 3\
**Last updated:** [August 14, 2010, 8:14am UTC](https://www.ruby-forum.com/t/script-server-problem/193177 "2010-08-14T08:14:39Z")

</div>

root@essc-openvpn:/websites/teambox.mydomain.com/teambox# sudo script/ server -e development /usr/lib/ruby/gems/1.8/gems/bundler-1.0.0.rc.5/lib/bundler/runtime.rb: 132: warning: Insecure world writable dir /usr/bin in…

---

## [How do I unit test this?](https://www.ruby-forum.com/t/how-do-i-unit-test-this/193253)

<div class="topic-metadata">

**Author:** [@coolmenu](https://www.ruby-forum.com/u/coolmenu)\
**Replies:** 0\
**Last updated:** [August 14, 2010, 4:40am UTC](https://www.ruby-forum.com/t/how-do-i-unit-test-this/193253 "2010-08-14T04:40:30Z")

</div>

I’ve got a cache sweeper running observing a model “after\_validation\_on\_update”. Inside that filter method, a call to “controller.current\_user” is made to access that application\_controller method (to get the current…

---

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

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 2\
**Last updated:** [August 14, 2010, 4:15am UTC](https://www.ruby-forum.com/t/routes-rb/193242 "2010-08-14T04:15:32Z")

</div>

I’m following the tutorial here: And, so far, I have the following in the routes.rb file: get “home/index” resources :posts root :to =\> “home#index” I know what "root :to =\> “home#index” is. But, what is the use o…

---

## [Why do I get the DEFAULT rails page](https://www.ruby-forum.com/t/why-do-i-get-the-default-rails-page/193226)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 7\
**Last updated:** [August 13, 2010, 11:12pm UTC](https://www.ruby-forum.com/t/why-do-i-get-the-default-rails-page/193226 "2010-08-13T23:12:14Z")

</div>

I’m following the tutorial here: And have set the route as: root :to =\> “home#index” But, always get the DEFAULT Rails page. What could I be missing? Thanks.

---

## [What Advice Would You Give A Rails Newbie?](https://www.ruby-forum.com/t/what-advice-would-you-give-a-rails-newbie/192895)

<div class="topic-metadata">

**Author:** [@xagyg](https://www.ruby-forum.com/u/xagyg)\
**Replies:** 8\
**Last updated:** [August 13, 2010, 10:30pm UTC](https://www.ruby-forum.com/t/what-advice-would-you-give-a-rails-newbie/192895 "2010-08-13T22:30:01Z")

</div>

I’m new to Ruby and to Rails, but have been very impressed by the tutorials I’ve gone through for each. They have convinced me that these are the best tools for the solutions I need to create, but before I really got…

---

## [Scaffolding working...kinda](https://www.ruby-forum.com/t/scaffolding-working-kinda/193189)

<div class="topic-metadata">

**Author:** [@slembcke](https://www.ruby-forum.com/u/slembcke)\
**Replies:** 10\
**Last updated:** [August 13, 2010, 10:17pm UTC](https://www.ruby-forum.com/t/scaffolding-working-kinda/193189 "2010-08-13T22:17:08Z")

</div>

Hello all. I’ve been working through some online tutorials, learning ROR and have a question on scaffolding. Through the command promt i’ve ran the command: $ script/generate scaffold Albums This created the controll…

---

## [Drag and drop image upload](https://www.ruby-forum.com/t/drag-and-drop-image-upload/193239)

<div class="topic-metadata">

**Author:** [@yogendra](https://www.ruby-forum.com/u/yogendra)\
**Replies:** 1\
**Last updated:** [August 13, 2010, 10:13pm UTC](https://www.ruby-forum.com/t/drag-and-drop-image-upload/193239 "2010-08-13T22:13:37Z")

</div>

Is there anyway to drag the image from desktop and drop to web page and image should store in server by droping.

---

## [How to query the schema of a ActiveRecord class?](https://www.ruby-forum.com/t/how-to-query-the-schema-of-a-activerecord-class/193185)

<div class="topic-metadata">

**Author:** [@trapper](https://www.ruby-forum.com/u/trapper)\
**Replies:** 4\
**Last updated:** [August 13, 2010, 9:37pm UTC](https://www.ruby-forum.com/t/how-to-query-the-schema-of-a-activerecord-class/193185 "2010-08-13T21:37:38Z")

</div>

When I enter the name of a ActiveRecord class to irb, the schema of the record is displayed: Art Art(id: integer, name: string, created\_at: datetime, updated\_at: datetime) How to query that vir ruby code?

---

## [:limit text mysql](https://www.ruby-forum.com/t/limit-text-mysql/193230)

<div class="topic-metadata">

**Author:** [@conornugent](https://www.ruby-forum.com/u/conornugent)\
**Replies:** 10\
**Last updated:** [August 13, 2010, 9:26pm UTC](https://www.ruby-forum.com/t/limit-text-mysql/193230 "2010-08-13T21:26:11Z")

</div>

I have a rails 3.rc app that I’m developing. I have a text entry in one my models that can sometimes be quite big. I tried setting :limit =\> 4294967296 on the text column in my migration file but this doesn’t seem to …

---

## [The ideal RoR environment](https://www.ruby-forum.com/t/the-ideal-ror-environment/193227)

<div class="topic-metadata">

**Author:** [@bob](https://www.ruby-forum.com/u/bob)\
**Replies:** 17\
**Last updated:** [August 13, 2010, 9:06pm UTC](https://www.ruby-forum.com/t/the-ideal-ror-environment/193227 "2010-08-13T21:06:16Z")

</div>

I’m currently taking some time to re-examine my environment and wanted to get the input from the minds that read these forums in an attempt to piece together an ideal RoR environment. I’m trying to break out each nec…

---

## [Rails 2 and Rails 3 in the same gemset leads to errors](https://www.ruby-forum.com/t/rails-2-and-rails-3-in-the-same-gemset-leads-to-errors/193234)

<div class="topic-metadata">

**Author:** [@turkan](https://www.ruby-forum.com/u/turkan)\
**Replies:** 0\
**Last updated:** [August 13, 2010, 8:02pm UTC](https://www.ruby-forum.com/t/rails-2-and-rails-3-in-the-same-gemset-leads-to-errors/193234 "2010-08-13T20:02:27Z")

</div>

Hi. I am pretty new to ruby (and those gems) and rails… Until now I thought that all rails application have some kind of integrated version management (RAILS\_GEM\_VERSION in Rails 2 and gem ‘rails’ in Rails 3). And th…

---

## [SQL/Paginate help needed for has\_many :through relationship](https://www.ruby-forum.com/t/sql-paginate-help-needed-for-has-many-through-relationship/186807)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 4\
**Last updated:** [August 13, 2010, 5:19pm UTC](https://www.ruby-forum.com/t/sql-paginate-help-needed-for-has-many-through-relationship/186807 "2010-08-13T17:19:28Z")

</div>

Hey all. I’m doing a paginated find with will\_paginate, with a fairly complex set of associations and ordering clauses. Here’s the associations relevant to this example: Question belongs\_to :subject #standard acts\_…

---

## [Databases allow bad foreign keys from Rails Fixtures](https://www.ruby-forum.com/t/databases-allow-bad-foreign-keys-from-rails-fixtures/193222)

<div class="topic-metadata">

**Author:** [@ferreira](https://www.ruby-forum.com/u/ferreira)\
**Replies:** 4\
**Last updated:** [August 13, 2010, 4:56pm UTC](https://www.ruby-forum.com/t/databases-allow-bad-foreign-keys-from-rails-fixtures/193222 "2010-08-13T16:56:54Z")

</div>

Hi, I am using Rails Fixtures to load some test data to my database and accidentally I introduced a foreign key out of range. To my surprise, the database accepted it despite having referential integrity constraints …

---

## [Configuration to set username optional during signup](https://www.ruby-forum.com/t/configuration-to-set-username-optional-during-signup/193176)

<div class="topic-metadata">

**Author:** [@madhu](https://www.ruby-forum.com/u/madhu)\
**Replies:** 7\
**Last updated:** [August 13, 2010, 4:20pm UTC](https://www.ruby-forum.com/t/configuration-to-set-username-optional-during-signup/193176 "2010-08-13T16:20:18Z")

</div>

Hello, I am quite new to rails and I am implementing authlogic as authentication system in my first project. I want to have username optional during signup, is there any configuration options to set this? I just w…

---

## [Help geting started](https://www.ruby-forum.com/t/help-geting-started/193108)

<div class="topic-metadata">

**Author:** [@neigaard](https://www.ruby-forum.com/u/neigaard)\
**Replies:** 6\
**Last updated:** [August 13, 2010, 3:53pm UTC](https://www.ruby-forum.com/t/help-geting-started/193108 "2010-08-13T15:53:03Z")

</div>

Hi I am reading O’Reilly Rails Cookbook, but I can not get the examples working. Here is what I have done so far: rails mytest --database=mysql ruby script/generate migration build\_db –BuildDb class– class BuildDb \<…

---

## [\[rails3.0.0.beta4\] extend form\_tag to always include a hidden field](https://www.ruby-forum.com/t/rails3-0-0-beta4-extend-form-tag-to-always-include-a-hidden-field/193224)

<div class="topic-metadata">

**Author:** [@joahking](https://www.ruby-forum.com/u/joahking)\
**Replies:** 0\
**Last updated:** [August 13, 2010, 3:03pm UTC](https://www.ruby-forum.com/t/rails3-0-0-beta4-extend-form-tag-to-always-include-a-hidden-field/193224 "2010-08-13T15:03:52Z")

</div>

hi there, I want every form in the site to add a hidden\_field, basically I want them to always submit the I18n.locale, I’ve tried to alias form\_tag\_html method of ActionView::Helpers::FormTagHelper like this: in #…

---

## [\<\<help with installing rails with ruby gems\>\>](https://www.ruby-forum.com/t/help-with-installing-rails-with-ruby-gems/193206)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [August 13, 2010, 12:16pm UTC](https://www.ruby-forum.com/t/help-with-installing-rails-with-ruby-gems/193206 "2010-08-13T12:16:27Z")

</div>

ok so i am running virtual machine with virtual rails on my laptop…OS is Linux Mint…I have followed the steps in the tutorial and this is what I’ve done so far: sudo apt-get install ruby ruby1.8-dev irb sudo apt-get …

---

## [\[Rails 3\] How to test routes urls in console](https://www.ruby-forum.com/t/rails-3-how-to-test-routes-urls-in-console/193157)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 4\
**Last updated:** [August 13, 2010, 12:04pm UTC](https://www.ruby-forum.com/t/rails-3-how-to-test-routes-urls-in-console/193157 "2010-08-13T12:04:44Z")

</div>

I tried require ‘url\_writer’ but this is not the trick what should be required/included to test the routes urls ? thanks erwin

---

## [MySQL not Connected ...... \*pull hair\*](https://www.ruby-forum.com/t/mysql-not-connected-pull-hair/191014)

<div class="topic-metadata">

**Author:** [@sp00nyg](https://www.ruby-forum.com/u/sp00nyg)\
**Replies:** 22\
**Last updated:** [August 13, 2010, 12:04pm UTC](https://www.ruby-forum.com/t/mysql-not-connected-pull-hair/191014 "2010-08-13T12:04:23Z")

</div>

I’m trying to run " rake db:migrate " and im getting an error back: C:\\wamp\\www\\demoproject\>rake db:migrate (in C:/wamp/www/demoproject) rake aborted! Mysql::Error: query: not connected: CREATE TABLE schema\_migratio…

---

## [\[ANN\] rails3-maven-plugins and more](https://www.ruby-forum.com/t/ann-rails3-maven-plugins-and-more/193220)

<div class="topic-metadata">

**Author:** [@mkristian](https://www.ruby-forum.com/u/mkristian)\
**Replies:** 0\
**Last updated:** [August 13, 2010, 11:07am UTC](https://www.ruby-forum.com/t/ann-rails3-maven-plugins-and-more/193220 "2010-08-13T11:07:22Z")

</div>

hello, there is new version for the people who know maven from their former life and want to explore how to use it to manage ruby and/or rails projects with maven. you can generate a mavenized rails3 application: ht…

---

## [\[ANN\] jquery\_rails3 beta 2 released](https://www.ruby-forum.com/t/ann-jquery-rails3-beta-2-released/193217)

<div class="topic-metadata">

**Author:** [@internet2cash](https://www.ruby-forum.com/u/internet2cash)\
**Replies:** 0\
**Last updated:** [August 13, 2010, 11:06am UTC](https://www.ruby-forum.com/t/ann-jquery-rails3-beta-2-released/193217 "2010-08-13T11:06:47Z")

</div>

I have released the jquery\_rails3 gem beta 2. This gem is a rails3 generator to add the jquery rails.js and jquery to an rails app. To install: gem install jquery\_rails3 --pre To add jquery inside a rails3 app: rai…

---

## [Sharing cookies for dyanmic domain](https://www.ruby-forum.com/t/sharing-cookies-for-dyanmic-domain/193219)

<div class="topic-metadata">

**Author:** [@atin](https://www.ruby-forum.com/u/atin)\
**Replies:** 0\
**Last updated:** [August 13, 2010, 11:06am UTC](https://www.ruby-forum.com/t/sharing-cookies-for-dyanmic-domain/193219 "2010-08-13T11:06:47Z")

</div>

Hi folks, i have two websites example.com and a mob version m.example.com so waht i want is that if a user is logged in example.com then when he switches to m.example.com he wont have to login again… Is there any me…

---

## [Plugin i18n rails for netbeans 6.9](https://www.ruby-forum.com/t/plugin-i18n-rails-for-netbeans-6-9/193215)

<div class="topic-metadata">

**Author:** [@Luis\_Zandonadi](https://www.ruby-forum.com/u/Luis_Zandonadi)\
**Replies:** 0\
**Last updated:** [August 13, 2010, 11:05am UTC](https://www.ruby-forum.com/t/plugin-i18n-rails-for-netbeans-6-9/193215 "2010-08-13T11:05:36Z")

</div>

hi friends, I developed a netbeans plugin to edit yml configuration files in a ruby on rails projects Just see my blog to more informations http://luiszandonadi.heroku.com/en/articles/netbeans/2010-07-11-i18n-rails-w…

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

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