# Rails

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

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

---

## [Its ok to store image sized files into mysql isn't it?](https://www.ruby-forum.com/t/its-ok-to-store-image-sized-files-into-mysql-isnt-it/145281)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 2\
**Last updated:** [August 7, 2008, 9:38pm UTC](https://www.ruby-forum.com/t/its-ok-to-store-image-sized-files-into-mysql-isnt-it/145281 "2008-08-07T21:38:56Z")

</div>

Hi, Can I assume for a web app with low number of users it’s OK to store image files in the mysql database? Makes it easy to setup/back etc then. Perhaps this is how the plugins like upload\_fu work (i.e. upload str…

---

## [Duplicate comments using remote\_form\_for](https://www.ruby-forum.com/t/duplicate-comments-using-remote-form-for/145257)

<div class="topic-metadata">

**Author:** [@chunkyslink](https://www.ruby-forum.com/u/chunkyslink)\
**Replies:** 3\
**Last updated:** [August 7, 2008, 7:52pm UTC](https://www.ruby-forum.com/t/duplicate-comments-using-remote-form-for/145257 "2008-08-07T19:52:37Z")

</div>

Is there a best practice way to prevent duplicate comments (or whatever the model may be) submissions from a remote\_form\_for? Maybe a time-based validation, like the way WordPress seems to prevent comments being poste…

---

## [To\_json on array of hashes](https://www.ruby-forum.com/t/to-json-on-array-of-hashes/145306)

<div class="topic-metadata">

**Author:** [@sgudibanda](https://www.ruby-forum.com/u/sgudibanda)\
**Replies:** 0\
**Last updated:** [August 7, 2008, 7:47pm UTC](https://www.ruby-forum.com/t/to-json-on-array-of-hashes/145306 "2008-08-07T19:47:13Z")

</div>

Hi, I need to convert my array of hashes to json: edu\_items.each do |edu| @education\[i\] = { "degree" =\> "xxx", "major" =\> "xxx", "name" =\> "yyy", "start\_date" =\> "Xxxx", …

---

## [Masochism plugin with mod\_rails?](https://www.ruby-forum.com/t/masochism-plugin-with-mod-rails/145305)

<div class="topic-metadata">

**Author:** [@amcmanus](https://www.ruby-forum.com/u/amcmanus)\
**Replies:** 0\
**Last updated:** [August 7, 2008, 7:38pm UTC](https://www.ruby-forum.com/t/masochism-plugin-with-mod-rails/145305 "2008-08-07T19:38:17Z")

</div>

Anyone successfully using mod\_rails (Phusion Passenger) with the masochism plugin? I simply can’t get the plugin to be used under mod\_rails, but it works flawlessly under swiftiplied mongrels. What am I missing? Than…

---

## [\[Solved\] Reinstalled Ruby and Rails](https://www.ruby-forum.com/t/solved-reinstalled-ruby-and-rails/145300)

<div class="topic-metadata">

**Author:** [@messismore](https://www.ruby-forum.com/u/messismore)\
**Replies:** 0\
**Last updated:** [August 7, 2008, 6:36pm UTC](https://www.ruby-forum.com/t/solved-reinstalled-ruby-and-rails/145300 "2008-08-07T18:36:47Z")

</div>

Couldn’t find any help, so I reinstalled and started from scratch.

---

## [Assert to check contents of a div](https://www.ruby-forum.com/t/assert-to-check-contents-of-a-div/145297)

<div class="topic-metadata">

**Author:** [@Franz\_S](https://www.ruby-forum.com/u/Franz_S)\
**Replies:** 0\
**Last updated:** [August 7, 2008, 6:19pm UTC](https://www.ruby-forum.com/t/assert-to-check-contents-of-a-div/145297 "2008-08-07T18:19:48Z")

</div>

Hi guys, Is there an assert method I can use in my functional test to see if a certain gets updated correctly? Thanks in advance. Franz

---

## [How to debug Rails application?](https://www.ruby-forum.com/t/how-to-debug-rails-application/145256)

<div class="topic-metadata">

**Author:** [@dharmdip](https://www.ruby-forum.com/u/dharmdip)\
**Replies:** 6\
**Last updated:** [August 7, 2008, 5:49pm UTC](https://www.ruby-forum.com/t/how-to-debug-rails-application/145256 "2008-08-07T17:49:20Z")

</div>

I want to know flow of an application , what are the values of objects ? how they pass through actions . Is there any way to debug ROR application ?

---

## [Wiki.rubyonrails.org](https://www.ruby-forum.com/t/wiki-rubyonrails-org/143270)

<div class="topic-metadata">

**Author:** [@tim\_o](https://www.ruby-forum.com/u/tim_o)\
**Replies:** 12\
**Last updated:** [August 7, 2008, 5:34pm UTC](https://www.ruby-forum.com/t/wiki-rubyonrails-org/143270 "2008-08-07T17:34:40Z")

</div>

Anybody else having trouble with wiki.rubyonrails.org? I’ve been getting 503s since yesterday :frowning:

---

## [Migration from ActiveRecord to DataMapper. Who tried it?](https://www.ruby-forum.com/t/migration-from-activerecord-to-datamapper-who-tried-it/145292)

<div class="topic-metadata">

**Author:** [@stefan](https://www.ruby-forum.com/u/stefan)\
**Replies:** 1\
**Last updated:** [August 7, 2008, 5:29pm UTC](https://www.ruby-forum.com/t/migration-from-activerecord-to-datamapper-who-tried-it/145292 "2008-08-07T17:29:23Z")

</div>

Hey there, the Datamapper ORM had my attention lately and the syntax and methods seem quite similar to activerecord. Even validations could be converted without much hassle. The migration-free model changes sound lik…

---

## [Making \<tr\> a link\_to?](https://www.ruby-forum.com/t/making-tr-a-link-to/145228)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 6\
**Last updated:** [August 7, 2008, 5:24pm UTC](https://www.ruby-forum.com/t/making-tr-a-link-to/145228 "2008-08-07T17:24:37Z")

</div>

Hi, wondering how I could make a call an action or something like that =) Thanks

---

## [Spam protection & call for moderator(s)](https://www.ruby-forum.com/t/spam-protection-call-for-moderator-s/145298)

<div class="topic-metadata">

**Author:** [@robby247365](https://www.ruby-forum.com/u/robby247365)\
**Replies:** 0\
**Last updated:** [August 7, 2008, 5:24pm UTC](https://www.ruby-forum.com/t/spam-protection-call-for-moderator-s/145298 "2008-08-07T17:24:06Z")

</div>

Hello all! In an effort to reduce the amount of spam, I’ve set a rule that the first post by a new member should be reviewed by a moderator. I added this about two weeks ago and have caught about 30 spam messages to …

---

## [Git remote branches for deployment](https://www.ruby-forum.com/t/git-remote-branches-for-deployment/145296)

<div class="topic-metadata">

**Author:** [@robby247365](https://www.ruby-forum.com/u/robby247365)\
**Replies:** 0\
**Last updated:** [August 7, 2008, 5:19pm UTC](https://www.ruby-forum.com/t/git-remote-branches-for-deployment/145296 "2008-08-07T17:19:25Z")

</div>

Hey there, This is possibly a better question for the Git community, but thought that I’d ask here first. I’m having a little trouble figuring out a sane way of managing remote branches for deployment. Mainly due to …

---

## [Displaying foreign key value](https://www.ruby-forum.com/t/displaying-foreign-key-value/145291)

<div class="topic-metadata">

**Author:** [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Replies:** 2\
**Last updated:** [August 7, 2008, 4:43pm UTC](https://www.ruby-forum.com/t/displaying-foreign-key-value/145291 "2008-08-07T16:43:46Z")

</div>

Hi i have a has\_many app. Imagine Projects \<\> Tasks. Creating a new tasks i can select from the dropdown the desired Project. that works. Editing the taks , which means changing the project association again via drop…

---

## [Check existence of variable or object](https://www.ruby-forum.com/t/check-existence-of-variable-or-object/145285)

<div class="topic-metadata">

**Author:** [@shuaib85](https://www.ruby-forum.com/u/shuaib85)\
**Replies:** 2\
**Last updated:** [August 7, 2008, 4:08pm UTC](https://www.ruby-forum.com/t/check-existence-of-variable-or-object/145285 "2008-08-07T16:08:31Z")

</div>

Dear I have faced a new type of problem I pass params\[:place\] as POST in a url like localhost:3000/navigate if you press on the button to navigate, it will redirect you to this like, but if you type the link and pres…

---

## [\[ADV/ANN\] Create a premium content sites with Radiant CMS Rails Kit](https://www.ruby-forum.com/t/adv-ann-create-a-premium-content-sites-with-radiant-cms-rails-kit/145289)

<div class="topic-metadata">

**Author:** [@Benjamin\_C](https://www.ruby-forum.com/u/Benjamin_C)\
**Replies:** 0\
**Last updated:** [August 7, 2008, 3:25pm UTC](https://www.ruby-forum.com/t/adv-ann-create-a-premium-content-sites-with-radiant-cms-rails-kit/145289 "2008-08-07T15:25:02Z")

</div>

Today I’m releasing the CMS Rails Kit http://railskits.com/cms/, a Radianthttp://radiantcms.orgextension that makes it easy to add a pay wall to your content site. Built on the same recurring billing code as the SaaS…

---

## [How to get missing months](https://www.ruby-forum.com/t/how-to-get-missing-months/145145)

<div class="topic-metadata">

**Author:** [@srinathbtech](https://www.ruby-forum.com/u/srinathbtech)\
**Replies:** 4\
**Last updated:** [August 7, 2008, 3:18pm UTC](https://www.ruby-forum.com/t/how-to-get-missing-months/145145 "2008-08-07T15:18:00Z")

</div>

Hi, i am using a Rails count method like this : start\_date = Date.civil(y=2008,m=1) @users\_count = User.count(:all, :conditions =\> \[“last\_updated BETWEEN ? and ?”, start\_date.\>\>(Date.today.month - 8), Date.today\], :g…

---

## [Best production environment for 2008!](https://www.ruby-forum.com/t/best-production-environment-for-2008/145254)

<div class="topic-metadata">

**Author:** [@Sean\_CSHess](https://www.ruby-forum.com/u/Sean_CSHess)\
**Replies:** 5\
**Last updated:** [August 7, 2008, 3:16pm UTC](https://www.ruby-forum.com/t/best-production-environment-for-2008/145254 "2008-08-07T15:16:15Z")

</div>

Hi, I’m not sure if I’m just not googling the right things, but I can’t find a post about a production environment any later than early 2007. Things seem to change so fast in the rails world, what with mod\_rails out …

---

## [Place draggable boxes in grid](https://www.ruby-forum.com/t/place-draggable-boxes-in-grid/145288)

<div class="topic-metadata">

**Author:** [@remco](https://www.ruby-forum.com/u/remco)\
**Replies:** 0\
**Last updated:** [August 7, 2008, 3:14pm UTC](https://www.ruby-forum.com/t/place-draggable-boxes-in-grid/145288 "2008-08-07T15:14:32Z")

</div>

Hi, I have 3 draggable boxes, wich default horizontal positioned. A \<%= draggable\_element :a%\> B \<%= draggable\_element :b%\> C \<%= draggable\_element :c %\> The boxes can me move arround on the homepage. I also …

---

## [Getting hard-drive data into a Rails app: Pre-loading DB table\[s\] works; how about file access?](https://www.ruby-forum.com/t/getting-hard-drive-data-into-a-rails-app-pre-loading-db-table-s-works-how-about-file-access/145234)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 2\
**Last updated:** [August 7, 2008, 2:46pm UTC](https://www.ruby-forum.com/t/getting-hard-drive-data-into-a-rails-app-pre-loading-db-table-s-works-how-about-file-access/145234 "2008-08-07T14:46:59Z")

</div>

Hi, I’m writing a Bridge (card game) tester for myself and my partner in order to improve our bidding. I don’t feel like writing a bunch of SQL Inserts. I could write a Ruby formatter to take data in the format I l…

---

## [Alias\_method\_chain fails](https://www.ruby-forum.com/t/alias-method-chain-fails/145284)

<div class="topic-metadata">

**Author:** [@linojon](https://www.ruby-forum.com/u/linojon)\
**Replies:** 2\
**Last updated:** [August 7, 2008, 2:34pm UTC](https://www.ruby-forum.com/t/alias-method-chain-fails/145284 "2008-08-07T14:34:40Z")

</div>

I’m getting this weird undefined method error with alias\_method\_chain. Same if I change find to save or whatever. It fixes if I move the alias\_method\_chain out of the module (see bottom of this email). What could be …

---

## [Rmagick is not working](https://www.ruby-forum.com/t/rmagick-is-not-working/145282)

<div class="topic-metadata">

**Author:** [@ganana\_srishti](https://www.ruby-forum.com/u/ganana_srishti)\
**Replies:** 0\
**Last updated:** [August 7, 2008, 2:33pm UTC](https://www.ruby-forum.com/t/rmagick-is-not-working/145282 "2008-08-07T14:33:38Z")

</div>

Hi, I have already installed rmagick in my system… it is showing the error like no such file to load --rmagick Please reply me

---

## [Redirect\_to() says "undefined local variable or method \`request'"](https://www.ruby-forum.com/t/redirect-to-says-undefined-local-variable-or-method-request/145266)

<div class="topic-metadata">

**Author:** [@snitko](https://www.ruby-forum.com/u/snitko)\
**Replies:** 2\
**Last updated:** [August 7, 2008, 2:25pm UTC](https://www.ruby-forum.com/t/redirect-to-says-undefined-local-variable-or-method-request/145266 "2008-08-07T14:25:52Z")

</div>

I’ve been doing my plugin and testing it with rspec. Let me show the spec code first: http://pastie.org/249050 So, this spec lies in vendor/plugins/myplugin/spec/lib The reason I set @controller, @request and @respons…

---

## [Attachment\_fu, minimum width and height, how?](https://www.ruby-forum.com/t/attachment-fu-minimum-width-and-height-how/145279)

<div class="topic-metadata">

**Author:** [@xdmx](https://www.ruby-forum.com/u/xdmx)\
**Replies:** 0\
**Last updated:** [August 7, 2008, 2:03pm UTC](https://www.ruby-forum.com/t/attachment-fu-minimum-width-and-height-how/145279 "2008-08-07T14:03:03Z")

</div>

Hi guys, i’m using attachment\_fu for uploading images, but i’ve to check that the width and the height are at least 200px, how can i do this? I’ve tried to do a validate errors.add(:width, ‘’) if self.parent\_id.nil? a…

---

## [A probelm about generate a rails project](https://www.ruby-forum.com/t/a-probelm-about-generate-a-rails-project/196773)

<div class="topic-metadata">

**Author:** [@terrytie](https://www.ruby-forum.com/u/terrytie)\
**Replies:** 0\
**Last updated:** [August 7, 2008, 1:35pm UTC](https://www.ruby-forum.com/t/a-probelm-about-generate-a-rails-project/196773 "2008-08-07T13:35:29Z")

</div>

D:\\app\>rails mm create create app/controllers create app/helpers create app/models create app/views/layouts create config/environments create config/initializers create db create doc create lib create…

---

## [Searching problem!](https://www.ruby-forum.com/t/searching-problem/145275)

<div class="topic-metadata">

**Author:** [@dharmdip](https://www.ruby-forum.com/u/dharmdip)\
**Replies:** 1\
**Last updated:** [August 7, 2008, 1:33pm UTC](https://www.ruby-forum.com/t/searching-problem/145275 "2008-08-07T13:33:43Z")

</div>

Hi , i have customize function for search text. in controller CONTROLLER\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ def search if (query = params\[:q\] ) @postjob = Postjob.fi…

---

## [Dont want to display all column created by scaffold](https://www.ruby-forum.com/t/dont-want-to-display-all-column-created-by-scaffold/145270)

<div class="topic-metadata">

**Author:** [@dharmdip](https://www.ruby-forum.com/u/dharmdip)\
**Replies:** 4\
**Last updated:** [August 7, 2008, 1:31pm UTC](https://www.ruby-forum.com/t/dont-want-to-display-all-column-created-by-scaffold/145270 "2008-08-07T13:31:57Z")

</div>

hi i have generated page with scaffolding but i don want to show all column which are showed by default using scaffolding utility . is there any way ? to view customize display tables columns apart from this in show m…

---

## [A probelm about generate a rails project](https://www.ruby-forum.com/t/a-probelm-about-generate-a-rails-project/145276)

<div class="topic-metadata">

**Author:** [@terrytie](https://www.ruby-forum.com/u/terrytie)\
**Replies:** 0\
**Last updated:** [August 7, 2008, 1:31pm UTC](https://www.ruby-forum.com/t/a-probelm-about-generate-a-rails-project/145276 "2008-08-07T13:31:22Z")

</div>

D:\\app\>rails mm create create app/controllers create app/helpers create app/models create app/views/layouts create config/environments create config/initializers create db create doc create lib create…

---

## [Problems with very basic auto\_complete](https://www.ruby-forum.com/t/problems-with-very-basic-auto-complete/144863)

<div class="topic-metadata">

**Author:** [@pepa007](https://www.ruby-forum.com/u/pepa007)\
**Replies:** 4\
**Last updated:** [August 7, 2008, 1:06pm UTC](https://www.ruby-forum.com/t/problems-with-very-basic-auto-complete/144863 "2008-08-07T13:06:43Z")

</div>

Guys, I’m running rails 2.1 and have problems implementing even the very basic auto\_complete. It basically does nothing Here’s what I have #controller auto\_complete\_for :general, :title #view \<% form\_tag generals\_…

---

## [Migrations from different Rails versions](https://www.ruby-forum.com/t/migrations-from-different-rails-versions/145204)

<div class="topic-metadata">

**Author:** [@Abel](https://www.ruby-forum.com/u/Abel)\
**Replies:** 3\
**Last updated:** [August 7, 2008, 12:56pm UTC](https://www.ruby-forum.com/t/migrations-from-different-rails-versions/145204 "2008-08-07T12:56:08Z")

</div>

I started my project with Rails 2.0 and created two migrations (wich I applied with rake db:migrate as usual). So I have these two files under db/migrate: 001\_create\_ads.rb 002\_rename\_description\_column.rb Last week…

---

## [Rake and Subversion](https://www.ruby-forum.com/t/rake-and-subversion/145069)

<div class="topic-metadata">

**Author:** [@Ibon\_Castilla](https://www.ruby-forum.com/u/Ibon_Castilla)\
**Replies:** 2\
**Last updated:** [August 7, 2008, 12:12pm UTC](https://www.ruby-forum.com/t/rake-and-subversion/145069 "2008-08-07T12:12:46Z")

</div>

Hi there: I was looking for any possibility of using rake integrated with svn. Just something like “–svn” at “script/generate”. Anyone in the list know something about this?. I found something at Google, but seems to…

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

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