# Rails

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

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

---

## [Rake db:migrate hanging w/ oracle](https://www.ruby-forum.com/t/rake-db-migrate-hanging-w-oracle/150482)

<div class="topic-metadata">

**Author:** [@frank\_programmer](https://www.ruby-forum.com/u/frank_programmer)\
**Replies:** 1\
**Last updated:** [October 9, 2008, 10:14pm UTC](https://www.ruby-forum.com/t/rake-db-migrate-hanging-w-oracle/150482 "2008-10-09T22:14:22Z")

</div>

When I run rake db:migrate w/ oracle it hangs on the db:schema:dump part and I am not sure why. E:\\work\\sandbox\\codeReview\>rake db:migrate --trace (in E:/work/sandbox/codeReview) \*\* Invoke db:migrate (first\_time) \*\*…

---

## [PDF-WRITER dpi change](https://www.ruby-forum.com/t/pdf-writer-dpi-change/92365)

<div class="topic-metadata">

**Author:** [@eizesus](https://www.ruby-forum.com/u/eizesus)\
**Replies:** 3\
**Last updated:** [October 9, 2008, 9:42pm UTC](https://www.ruby-forum.com/t/pdf-writer-dpi-change/92365 "2008-10-09T21:42:35Z")

</div>

Hi all, does anyone know how do i increase the DPI output of the PDF Writer gem? i must use 300 and it uses only 72.

---

## [Has\_many validation the Rails way](https://www.ruby-forum.com/t/has-many-validation-the-rails-way/150555)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [October 9, 2008, 9:39pm UTC](https://www.ruby-forum.com/t/has-many-validation-the-rails-way/150555 "2008-10-09T21:39:37Z")

</div>

Okay, this is something I run into a lot and don’t really have a great solution. Here is a simple example: class Blog \< ActiveRecord::Base has\_many :posts validates\_presence\_of :name end class Post \< ActiveRecor…

---

## [Tableless models in Rails](https://www.ruby-forum.com/t/tableless-models-in-rails/150528)

<div class="topic-metadata">

**Author:** [@jsn1](https://www.ruby-forum.com/u/jsn1)\
**Replies:** 3\
**Last updated:** [October 9, 2008, 8:59pm UTC](https://www.ruby-forum.com/t/tableless-models-in-rails/150528 "2008-10-09T20:59:04Z")

</div>

Hi all I am looking for some informaiton about how to create forms using tableless models. What do you recommend?

---

## [Beyond Scaffold](https://www.ruby-forum.com/t/beyond-scaffold/150503)

<div class="topic-metadata">

**Author:** [@Vern](https://www.ruby-forum.com/u/Vern)\
**Replies:** 2\
**Last updated:** [October 9, 2008, 8:48pm UTC](https://www.ruby-forum.com/t/beyond-scaffold/150503 "2008-10-09T20:48:30Z")

</div>

Most Ruby on Rails books and tutorials, or at least all the ones I have read, start with a simple application with modest requirements and show how to create and migrate the database and how to generate a scaffold bas…

---

## [New controller actions and url\_for](https://www.ruby-forum.com/t/new-controller-actions-and-url-for/150483)

<div class="topic-metadata">

**Author:** [@amrita](https://www.ruby-forum.com/u/amrita)\
**Replies:** 2\
**Last updated:** [October 9, 2008, 7:48pm UTC](https://www.ruby-forum.com/t/new-controller-actions-and-url-for/150483 "2008-10-09T19:48:37Z")

</div>

Hi, I just defined a new controller action “list” for one of my controllers, let’s call it “species”. To routes.rb, I added the following entry: map.resource :species, :member =\> { :list =\> :get } I have a helper me…

---

## [How to get the urls to public folder](https://www.ruby-forum.com/t/how-to-get-the-urls-to-public-folder/150538)

<div class="topic-metadata">

**Author:** [@Theo\_R](https://www.ruby-forum.com/u/Theo_R)\
**Replies:** 1\
**Last updated:** [October 9, 2008, 5:58pm UTC](https://www.ruby-forum.com/t/how-to-get-the-urls-to-public-folder/150538 "2008-10-09T17:58:47Z")

</div>

Hi all, I’m building an app where I keep a large number of files on the harddisk such as RAILS\_ROOT/public/data/foo.bin etc… Within my database I have a field that gives me foo.bin. In a view how do I get a fully qua…

---

## [How to integrate existing rails project into a new rails project](https://www.ruby-forum.com/t/how-to-integrate-existing-rails-project-into-a-new-rails-project/150355)

<div class="topic-metadata">

**Author:** [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Replies:** 1\
**Last updated:** [October 9, 2008, 5:47pm UTC](https://www.ruby-forum.com/t/how-to-integrate-existing-rails-project-into-a-new-rails-project/150355 "2008-10-09T17:47:37Z")

</div>

how to integrate existing rails project into a new rails project? i want to use Yahoobb pack (http://github.com/xdite/yahoobb-pack/tree/ master) as plugin or third party lib for a new rails project. but i dont know ho…

---

## [Rails Partial Tests](https://www.ruby-forum.com/t/rails-partial-tests/150181)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 2\
**Last updated:** [October 9, 2008, 5:07pm UTC](https://www.ruby-forum.com/t/rails-partial-tests/150181 "2008-10-09T17:07:04Z")

</div>

\[A preview of my next blog entry\] Testing Rails Partials One important metric, under Test Driven Development, is the distance between a test case and its target code. Test cases use assertions to observe events insi…

---

## [OT: What happened to Rspec Google group?](https://www.ruby-forum.com/t/ot-what-happened-to-rspec-google-group/150291)

<div class="topic-metadata">

**Author:** [@John\_I](https://www.ruby-forum.com/u/John_I)\
**Replies:** 6\
**Last updated:** [October 9, 2008, 3:03pm UTC](https://www.ruby-forum.com/t/ot-what-happened-to-rspec-google-group/150291 "2008-10-09T15:03:56Z")

</div>

It disappeared over the weekend. Anybody know what happened? http://groups.google.com/group/rspec/ John I

---

## [Strange observe\_field/partial functioning](https://www.ruby-forum.com/t/strange-observe-field-partial-functioning/150417)

<div class="topic-metadata">

**Author:** [@jicksta](https://www.ruby-forum.com/u/jicksta)\
**Replies:** 18\
**Last updated:** [October 9, 2008, 2:33pm UTC](https://www.ruby-forum.com/t/strange-observe-field-partial-functioning/150417 "2008-10-09T14:33:49Z")

</div>

Hi I hava a page where there is two combo box displayed and one updates the other and it uses observe\_field and partials. The page is not the index page so its link is http://localhost:3000/user/online\_booking. But wh…

---

## [How to consume a nested singular resource?](https://www.ruby-forum.com/t/how-to-consume-a-nested-singular-resource/150524)

<div class="topic-metadata">

**Author:** [@mfeadler](https://www.ruby-forum.com/u/mfeadler)\
**Replies:** 0\
**Last updated:** [October 9, 2008, 2:08pm UTC](https://www.ruby-forum.com/t/how-to-consume-a-nested-singular-resource/150524 "2008-10-09T14:08:31Z")

</div>

Hi, We have a RESTful server application which exposes the following routes using the following rules, but when trying to consume those resources from a client application the routes are not generated correctly. And w…

---

## [Serving a PDF document](https://www.ruby-forum.com/t/serving-a-pdf-document/150502)

<div class="topic-metadata">

**Author:** [@sijomo](https://www.ruby-forum.com/u/sijomo)\
**Replies:** 2\
**Last updated:** [October 9, 2008, 1:46pm UTC](https://www.ruby-forum.com/t/serving-a-pdf-document/150502 "2008-10-09T13:46:47Z")

</div>

Hi all, Been banging my head against this for a little while so figured I see if anyone here could light the way. Our site receives input from fillable pdfs as XML (XFDF to be precise) and processes the information.…

---

## [When i use rspec(with built-in mock framework) ,errof occurs](https://www.ruby-forum.com/t/when-i-use-rspec-with-built-in-mock-framework-errof-occurs/150510)

<div class="topic-metadata">

**Author:** [@guofeng](https://www.ruby-forum.com/u/guofeng)\
**Replies:** 1\
**Last updated:** [October 9, 2008, 1:45pm UTC](https://www.ruby-forum.com/t/when-i-use-rspec-with-built-in-mock-framework-errof-occurs/150510 "2008-10-09T13:45:01Z")

</div>

I use rspec\_scaffold generate a example as below: it "should expose a newly created awarding\_body as @awarding\_body" do AwardingBody.should\_receive(:new).with(:these =\>‘params’).and\_return(mock\_awarding\_body(:save …

---

## [Swfupload with active\_record\_store? Or any other 'mass'-uploader?](https://www.ruby-forum.com/t/swfupload-with-active-record-store-or-any-other-mass-uploader/148887)

<div class="topic-metadata">

**Author:** [@joergbattermann](https://www.ruby-forum.com/u/joergbattermann)\
**Replies:** 5\
**Last updated:** [October 9, 2008, 12:21pm UTC](https://www.ruby-forum.com/t/swfupload-with-active-record-store-or-any-other-mass-uploader/148887 "2008-10-09T12:21:19Z")

</div>

Hello there, Has anyone successfully integrated swfupload into his/her rails (2.x) project using a non cookie based session store? I am asking because with the active\_record\_store (let alone stefan kaes’ sql\_session\_…

---

## [InvalidAuthenticityToken with w3m or lynx](https://www.ruby-forum.com/t/invalidauthenticitytoken-with-w3m-or-lynx/150520)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 0\
**Last updated:** [October 9, 2008, 12:16pm UTC](https://www.ruby-forum.com/t/invalidauthenticitytoken-with-w3m-or-lynx/150520 "2008-10-09T12:16:59Z")

</div>

Hello, Is that normal I get an InvalidAuthenticityToken error after a simple form submit with w3m or lynx browser. And not any error on Opera, Firefox or Safari. Thanks.

---

## [Microsoft beats us to official JQuery support, Do we care?](https://www.ruby-forum.com/t/microsoft-beats-us-to-official-jquery-support-do-we-care/149730)

<div class="topic-metadata">

**Author:** [@ChessMess](https://www.ruby-forum.com/u/ChessMess)\
**Replies:** 6\
**Last updated:** [October 9, 2008, 12:07pm UTC](https://www.ruby-forum.com/t/microsoft-beats-us-to-official-jquery-support-do-we-care/149730 "2008-10-09T12:07:10Z")

</div>

Is it of any concern that more and more take up the JQuery banner? Why didn’t they pick Prototype and Scriptaculous? Seems like we jumped on the REST bandwagon pretty quick but we hold to P&S in face of its ever growi…

---

## [Keeping Admin Code Seperate](https://www.ruby-forum.com/t/keeping-admin-code-seperate/150504)

<div class="topic-metadata">

**Author:** [@cyrus](https://www.ruby-forum.com/u/cyrus)\
**Replies:** 1\
**Last updated:** [October 9, 2008, 11:26am UTC](https://www.ruby-forum.com/t/keeping-admin-code-seperate/150504 "2008-10-09T11:26:38Z")

</div>

Hello All, Can anybody suggest me in rails how to keep admin code seperate from front end…?

---

## [Updating plugins](https://www.ruby-forum.com/t/updating-plugins/150506)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [October 9, 2008, 11:14am UTC](https://www.ruby-forum.com/t/updating-plugins/150506 "2008-10-09T11:14:51Z")

</div>

Just wondering, when I want to update a plugin, do I have to reinstall it and do everything over again or is there any easier way?

---

## [What's diffrence between ({:these=\>"params"}) and ({"these"](https://www.ruby-forum.com/t/whats-diffrence-between-these-params-and-these/150513)

<div class="topic-metadata">

**Author:** [@guofeng](https://www.ruby-forum.com/u/guofeng)\
**Replies:** 1\
**Last updated:** [October 9, 2008, 11:09am UTC](https://www.ruby-forum.com/t/whats-diffrence-between-these-params-and-these/150513 "2008-10-09T11:09:33Z")

</div>

When i use rspec(with built-in mock framework) ,error occurs. I use rspec\_scaffold generate a example as below: it "should expose a newly created awarding\_body as @awarding\_body" do AwardingBody.should\_receive(:new…

---

## [HABTM & Many through association](https://www.ruby-forum.com/t/habtm-many-through-association/150224)

<div class="topic-metadata">

**Author:** [@RoR\_Nb](https://www.ruby-forum.com/u/RoR_Nb)\
**Replies:** 9\
**Last updated:** [October 9, 2008, 10:16am UTC](https://www.ruby-forum.com/t/habtm-many-through-association/150224 "2008-10-09T10:16:38Z")

</div>

Hi there, I am trying to create some sort of a blog and i’m trying to create is a method that takes care of the creation/removal of the records in the join table. So i have a blog that has many “tags” (join table) I…

---

## [Email signup/splash page](https://www.ruby-forum.com/t/email-signup-splash-page/78374)

<div class="topic-metadata">

**Author:** [@mshah](https://www.ruby-forum.com/u/mshah)\
**Replies:** 3\
**Last updated:** [October 9, 2008, 8:30am UTC](https://www.ruby-forum.com/t/email-signup-splash-page/78374 "2008-10-09T08:30:15Z")

</div>

Does anyone know the easiest way to put up a splash page where people can add their email addresses to be notified when the site is ready? I want regular visitors to be directed to this page. How can i have this and …

---

## [Redirecting to uploaded files directory](https://www.ruby-forum.com/t/redirecting-to-uploaded-files-directory/150497)

<div class="topic-metadata">

**Author:** [@sal](https://www.ruby-forum.com/u/sal)\
**Replies:** 1\
**Last updated:** [October 9, 2008, 7:22am UTC](https://www.ruby-forum.com/t/redirecting-to-uploaded-files-directory/150497 "2008-10-09T07:22:03Z")

</div>

All, I’m running into a bit of a newb issue here. I’ve created an app with attachment\_fu which by default created a directory within public as “public/#{tablename}”. But now when I try and browse to my default action…

---

## [How to use Rails' exception handling mechanism in a background thread?](https://www.ruby-forum.com/t/how-to-use-rails-exception-handling-mechanism-in-a-background-thread/150498)

<div class="topic-metadata">

**Author:** [@Myron\_M](https://www.ruby-forum.com/u/Myron_M)\
**Replies:** 0\
**Last updated:** [October 9, 2008, 6:45am UTC](https://www.ruby-forum.com/t/how-to-use-rails-exception-handling-mechanism-in-a-background-thread/150498 "2008-10-09T06:45:08Z")

</div>

I have some simple asynchronous processing that my app needs to do, and I wanted something a bit lighter weight than any of the gems or plugins I’ve run across that handle background processing. I decided to roll my …

---

## [Updating attribute in model](https://www.ruby-forum.com/t/updating-attribute-in-model/150494)

<div class="topic-metadata">

**Author:** [@hangingclowns](https://www.ruby-forum.com/u/hangingclowns)\
**Replies:** 3\
**Last updated:** [October 9, 2008, 4:27am UTC](https://www.ruby-forum.com/t/updating-attribute-in-model/150494 "2008-10-09T04:27:25Z")

</div>

I’m trying to make a change to a field in the model whenever someone accesses it and it’s incorrect. So I have the following in my ActiveRecord class: def status prev\_status = read\_attribute(:status) if end\_date \< D…

---

## [\[question\]How to install rubygem-cobbler](https://www.ruby-forum.com/t/question-how-to-install-rubygem-cobbler/150320)

<div class="topic-metadata">

**Author:** [@Nikki](https://www.ruby-forum.com/u/Nikki)\
**Replies:** 4\
**Last updated:** [October 9, 2008, 4:11am UTC](https://www.ruby-forum.com/t/question-how-to-install-rubygem-cobbler/150320 "2008-10-09T04:11:19Z")

</div>

Hi ALL, I am newcomer and also a freshman to Ruby. Would anyone have the experience about installing rubygem-cobbler? I tried to run some ruby programs.It prompts “Could not find Ruby Gem cobbler(\>= 0)(Gem::LoadError…

---

## [Display a form with selected values from URL](https://www.ruby-forum.com/t/display-a-form-with-selected-values-from-url/150443)

<div class="topic-metadata">

**Author:** [@robertderosny](https://www.ruby-forum.com/u/robertderosny)\
**Replies:** 3\
**Last updated:** [October 9, 2008, 4:02am UTC](https://www.ruby-forum.com/t/display-a-form-with-selected-values-from-url/150443 "2008-10-09T04:02:32Z")

</div>

Hi there, I have an author model and a book model. I’m trying to create a “add new book” link for each author from the authors index page, that would point to a new book page, with the the author select field already…

---

## [:find conditions using hour value of saved DateTime object](https://www.ruby-forum.com/t/find-conditions-using-hour-value-of-saved-datetime-object/150492)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 1\
**Last updated:** [October 9, 2008, 3:52am UTC](https://www.ruby-forum.com/t/find-conditions-using-hour-value-of-saved-datetime-object/150492 "2008-10-09T03:52:35Z")

</div>

I am wondering if it is possible to use a find condition to find objects according to the hour, ignoring the date. For example, i have a date field storing DateTime objects in the database and I want to find all obje…

---

## [Why find\_by\_sql works and find(args) doesn't](https://www.ruby-forum.com/t/why-find-by-sql-works-and-find-args-doesnt/150488)

<div class="topic-metadata">

**Author:** [@jicksta](https://www.ruby-forum.com/u/jicksta)\
**Replies:** 1\
**Last updated:** [October 9, 2008, 3:48am UTC](https://www.ruby-forum.com/t/why-find-by-sql-works-and-find-args-doesnt/150488 "2008-10-09T03:48:29Z")

</div>

I’m trying to use Campsite.find(:all, :condition =\> \[‘walk\_id = ?’,params\[:walks\]\[:id\]\]) but fails and instead, if I use Campsite.find\_by\_sql("select \* from campsites where walk\_id = "+params\[:walks\]\[:id\]), it works f…

---

## [Finding out how many assets each user has](https://www.ruby-forum.com/t/finding-out-how-many-assets-each-user-has/150489)

<div class="topic-metadata">

**Author:** [@AtsoK](https://www.ruby-forum.com/u/AtsoK)\
**Replies:** 1\
**Last updated:** [October 9, 2008, 3:31am UTC](https://www.ruby-forum.com/t/finding-out-how-many-assets-each-user-has/150489 "2008-10-09T03:31:26Z")

</div>

I’m sure this is a dumb question, but how could I find out how many assets (or anything that belongs to a user) each user has? I can only think of looping through each user and adding the asset size to an array, but w…

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

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