# Rails

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

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

---

## [Created modified fields](https://www.ruby-forum.com/t/created-modified-fields/128822)

<div class="topic-metadata">

**Author:** [@rogwei](https://www.ruby-forum.com/u/rogwei)\
**Replies:** 1\
**Last updated:** [February 11, 2008, 11:59pm UTC](https://www.ruby-forum.com/t/created-modified-fields/128822 "2008-02-11T23:59:43Z")

</div>

If this has been discussed before, pardon me. My search skills might not be up to the task of finding it. Does Rails have automagic support for created/modified columns like cakePHP does? Thanks in advance.

---

## [Deploying for dummies](https://www.ruby-forum.com/t/deploying-for-dummies/128800)

<div class="topic-metadata">

**Author:** [@reacher](https://www.ruby-forum.com/u/reacher)\
**Replies:** 4\
**Last updated:** [February 11, 2008, 10:38pm UTC](https://www.ruby-forum.com/t/deploying-for-dummies/128800 "2008-02-11T22:38:58Z")

</div>

I’m kinda newb when it comes to apache. I’ve been tasked with creating a website to manage some local web applications. This site will be running just on our local LAN (it will never be accessed from outside this LA…

---

## [Method from string?](https://www.ruby-forum.com/t/method-from-string/128700)

<div class="topic-metadata">

**Author:** [@phil](https://www.ruby-forum.com/u/phil)\
**Replies:** 4\
**Last updated:** [February 11, 2008, 10:29pm UTC](https://www.ruby-forum.com/t/method-from-string/128700 "2008-02-11T22:29:59Z")

</div>

I am sure this is doable but I can’t find a specific example and my brain is frazzled. Basically, I am doing a whole load of in-place editing and need methods to support the updates. Here is what I am doing now: def…

---

## [How to refence to other table items](https://www.ruby-forum.com/t/how-to-refence-to-other-table-items/128763)

<div class="topic-metadata">

**Author:** [@KTU](https://www.ruby-forum.com/u/KTU)\
**Replies:** 4\
**Last updated:** [February 11, 2008, 10:26pm UTC](https://www.ruby-forum.com/t/how-to-refence-to-other-table-items/128763 "2008-02-11T22:26:22Z")

</div>

Hi Since I am noob with ruby still I have question. This is my setup. 2 tables and their fields. Users table login imitem\_id Imitems table id groupname Now all users have several Imitems and those are saved on use…

---

## [Is it possible to post multi-part forms using rails/ruby](https://www.ruby-forum.com/t/is-it-possible-to-post-multi-part-forms-using-rails-ruby/128758)

<div class="topic-metadata">

**Author:** [@iqbalhyd](https://www.ruby-forum.com/u/iqbalhyd)\
**Replies:** 2\
**Last updated:** [February 11, 2008, 8:04pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-post-multi-part-forms-using-rails-ruby/128758 "2008-02-11T20:04:58Z")

</div>

Hi, I need to provide functionality to upload files to blip.tv which means programmatically posting multi-part form to blip, is it possible to do so in ruby (Net::HTTP only provides simple form posting). …

---

## [Static scaffolding in Rails2](https://www.ruby-forum.com/t/static-scaffolding-in-rails2/128451)

<div class="topic-metadata">

**Author:** [@harryspier](https://www.ruby-forum.com/u/harryspier)\
**Replies:** 8\
**Last updated:** [February 11, 2008, 7:56pm UTC](https://www.ruby-forum.com/t/static-scaffolding-in-rails2/128451 "2008-02-11T19:56:51Z")

</div>

Hi, I am looking for a replacement for the static scaffolding of Rails 1.2.x. Rails 2.x has stopped proving the scaffolding. Specifically I want to generate a controller from an existing model and I want to have and…

---

## [Best way to turn off callbacks](https://www.ruby-forum.com/t/best-way-to-turn-off-callbacks/128785)

<div class="topic-metadata">

**Author:** [@sp00nyg](https://www.ruby-forum.com/u/sp00nyg)\
**Replies:** 2\
**Last updated:** [February 11, 2008, 7:56pm UTC](https://www.ruby-forum.com/t/best-way-to-turn-off-callbacks/128785 "2008-02-11T19:56:07Z")

</div>

I use callbacks (after\_save, etc.) extensively to rebuild model relationships. However, there are times when I don’t want them to execute, and I don’t want the caller to know about it. For example, if I have a model…

---

## [Installation problems, mongrel ruby 1.8.6](https://www.ruby-forum.com/t/installation-problems-mongrel-ruby-1-8-6/128812)

<div class="topic-metadata">

**Author:** [@jenlindner](https://www.ruby-forum.com/u/jenlindner)\
**Replies:** 0\
**Last updated:** [February 11, 2008, 7:38pm UTC](https://www.ruby-forum.com/t/installation-problems-mongrel-ruby-1-8-6/128812 "2008-02-11T19:38:09Z")

</div>

can anyone help with this? i installed mongrel clusters with my dev environment and upgraded to ruby 1.8.6, but now rake fails in my app. i can boot the app fine, but the testing fails. so i uninstalled mongrel\_cluste…

---

## [Will RoR Scale?](https://www.ruby-forum.com/t/will-ror-scale/128563)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 24\
**Last updated:** [February 11, 2008, 7:37pm UTC](https://www.ruby-forum.com/t/will-ror-scale/128563 "2008-02-11T19:37:54Z")

</div>

I’m trying to decide which path to go down for developing a new web app. Scalability in the long run is a huge requirement, but without sacrificing the development time. The rails community is huge, there’s support e…

---

## [Forms help](https://www.ruby-forum.com/t/forms-help/128728)

<div class="topic-metadata">

**Author:** [@athel](https://www.ruby-forum.com/u/athel)\
**Replies:** 8\
**Last updated:** [February 11, 2008, 6:55pm UTC](https://www.ruby-forum.com/t/forms-help/128728 "2008-02-11T18:55:27Z")

</div>

Ok, so in the middle of learning Ruby, things jumped to 2.0.2 and now i’m having to relearn. I can’t find any answers on this. in new.rhtml.erb I have the following code: \<%= error\_messages\_for :failure %\> \<% form\_f…

---

## [Check if space exists on the value and if yes prompt for error](https://www.ruby-forum.com/t/check-if-space-exists-on-the-value-and-if-yes-prompt-for-error/128692)

<div class="topic-metadata">

**Author:** [@KTU](https://www.ruby-forum.com/u/KTU)\
**Replies:** 3\
**Last updated:** [February 11, 2008, 6:54pm UTC](https://www.ruby-forum.com/t/check-if-space-exists-on-the-value-and-if-yes-prompt-for-error/128692 "2008-02-11T18:54:16Z")

</div>

Hi How I can check on models controller if item has space on it and if yes then return error ? ie. on form you have textbox myitem and if users fills in there like: xxx yyyy (ie. space on middle or end of value) the…

---

## [Embeding Flash With Ruby](https://www.ruby-forum.com/t/embeding-flash-with-ruby/127468)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [February 11, 2008, 6:38pm UTC](https://www.ruby-forum.com/t/embeding-flash-with-ruby/127468 "2008-02-11T18:38:19Z")

</div>

Hi, All, i am working on an application that will allow my users to upload files and then display these files on a generated page. file types that they will be uploading include flash SWF files. is there any way of i…

---

## [Time value for Session?](https://www.ruby-forum.com/t/time-value-for-session/128805)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 0\
**Last updated:** [February 11, 2008, 6:35pm UTC](https://www.ruby-forum.com/t/time-value-for-session/128805 "2008-02-11T18:35:58Z")

</div>

What’s the syntax to acquire the updated\_at value of a session stored in a db? session.updated\_at doesn’t work. can’t find any docs on this. – gw

---

## [Dynamically loaded SWFs - dimensions?](https://www.ruby-forum.com/t/dynamically-loaded-swfs-dimensions/127249)

<div class="topic-metadata">

**Author:** [@cbnewman](https://www.ruby-forum.com/u/cbnewman)\
**Replies:** 1\
**Last updated:** [February 11, 2008, 6:33pm UTC](https://www.ruby-forum.com/t/dynamically-loaded-swfs-dimensions/127249 "2008-02-11T18:33:27Z")

</div>

Anyone know a way to get the dimensions of a SWF using ruby on rails. Similar php’s getImageSize() function that can read swf files. i know about this for images; jpg, gif, png: http://snippets.dzone.com/posts/show/80…

---

## [How to pass a hash as an argument to a function?](https://www.ruby-forum.com/t/how-to-pass-a-hash-as-an-argument-to-a-function/128708)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [February 11, 2008, 6:23pm UTC](https://www.ruby-forum.com/t/how-to-pass-a-hash-as-an-argument-to-a-function/128708 "2008-02-11T18:23:37Z")

</div>

Hi, I want to pass the “params” hash to a function, @users = User.search(params) but clearly the below is not the way to do it … def self.search(\*search) conditions = \[\] if !search\[:user\_type\_id\].is\_blank? conditio…

---

## [Append HTTP Status Codes to XML](https://www.ruby-forum.com/t/append-http-status-codes-to-xml/128804)

<div class="topic-metadata">

**Author:** [@ss\_1982](https://www.ruby-forum.com/u/ss_1982)\
**Replies:** 0\
**Last updated:** [February 11, 2008, 6:17pm UTC](https://www.ruby-forum.com/t/append-http-status-codes-to-xml/128804 "2008-02-11T18:17:12Z")

</div>

Hi, I am in the middle of putting a RESTful api together for a new app. I was wondering if anyone has any suggestions or experience with adding a status code to all xml output? So that a response that looks like \<a…

---

## [Convention for using sequences](https://www.ruby-forum.com/t/convention-for-using-sequences/128797)

<div class="topic-metadata">

**Author:** [@bhus](https://www.ruby-forum.com/u/bhus)\
**Replies:** 0\
**Last updated:** [February 11, 2008, 5:24pm UTC](https://www.ruby-forum.com/t/convention-for-using-sequences/128797 "2008-02-11T17:24:45Z")

</div>

Rookie question, I know, but I googled around and couldn’t find a quick answer … How do I get the next value in a sequence? I’ve noticed Rails’ migrations use a single-row entry table to store the current version (Sc…

---

## [Cache with format](https://www.ruby-forum.com/t/cache-with-format/128507)

<div class="topic-metadata">

**Author:** [@pierre](https://www.ruby-forum.com/u/pierre)\
**Replies:** 2\
**Last updated:** [February 11, 2008, 5:13pm UTC](https://www.ruby-forum.com/t/cache-with-format/128507 "2008-02-11T17:13:28Z")

</div>

Hello, I am using a iphone optimized version of my Rails app as explained here : Everything is going well, the only problem that I have is with caching. Because Rails is caching iphone format with the extension .htm…

---

## [Trouble with "namespace" in routes.rb file](https://www.ruby-forum.com/t/trouble-with-namespace-in-routes-rb-file/128741)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [February 11, 2008, 4:47pm UTC](https://www.ruby-forum.com/t/trouble-with-namespace-in-routes-rb-file/128741 "2008-02-11T16:47:36Z")

</div>

Hi, Following some of AndyV’s useful advice, I added this map.namespace :admin do |adm| adm.resources :client end to my config/routes.rb file. However, when I visit http://mydomain.com/admin/client/search I get th…

---

## [Trouble launching my RoR server on startup](https://www.ruby-forum.com/t/trouble-launching-my-ror-server-on-startup/128703)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [February 11, 2008, 4:43pm UTC](https://www.ruby-forum.com/t/trouble-launching-my-ror-server-on-startup/128703 "2008-02-11T16:43:29Z")

</div>

Hi, I created this script to launch my RoR server ==============begin script======================== #!/bin/bash . /etc/rc.d/init.d/functions RETVAL=$? EASYRXHOME="/usr/local/apache2/htdocs/easyrx" case “$1” in s…

---

## [How can I selectively turn of validations](https://www.ruby-forum.com/t/how-can-i-selectively-turn-of-validations/128743)

<div class="topic-metadata">

**Author:** [@iqbalhyd](https://www.ruby-forum.com/u/iqbalhyd)\
**Replies:** 5\
**Last updated:** [February 11, 2008, 4:29pm UTC](https://www.ruby-forum.com/t/how-can-i-selectively-turn-of-validations/128743 "2008-02-11T16:29:27Z")

</div>

Hi, I need to selectively turn off validations for example, I want to make sure that password and password\_confirmation fields are equal when user first signs up or changes his password from his profile, but not i…

---

## [Where are the commercial database adapters in Rails 2.0?](https://www.ruby-forum.com/t/where-are-the-commercial-database-adapters-in-rails-2-0/128789)

<div class="topic-metadata">

**Author:** [@John\_Siedlicki](https://www.ruby-forum.com/u/John_Siedlicki)\
**Replies:** 1\
**Last updated:** [February 11, 2008, 4:11pm UTC](https://www.ruby-forum.com/t/where-are-the-commercial-database-adapters-in-rails-2-0/128789 "2008-02-11T16:11:26Z")

</div>

When Rails 2.0 was released they mentioned putting the commercial database adapters in their own gems named activerecord-XYZ-adapter. Of the previous commercial adapters, I can only see the activerecord- interbase-ada…

---

## [Database update how to prevent duplicates](https://www.ruby-forum.com/t/database-update-how-to-prevent-duplicates/128771)

<div class="topic-metadata">

**Author:** [@KTU](https://www.ruby-forum.com/u/KTU)\
**Replies:** 2\
**Last updated:** [February 11, 2008, 3:40pm UTC](https://www.ruby-forum.com/t/database-update-how-to-prevent-duplicates/128771 "2008-02-11T15:40:35Z")

</div>

Hi database schema has items login groupid Now when database is updated how can I check if there is entry already with same information example: new item is created with values login=doe groupid=10 and if such item …

---

## [Nested with scope problem](https://www.ruby-forum.com/t/nested-with-scope-problem/128734)

<div class="topic-metadata">

**Author:** [@veil](https://www.ruby-forum.com/u/veil)\
**Replies:** 1\
**Last updated:** [February 11, 2008, 3:09pm UTC](https://www.ruby-forum.com/t/nested-with-scope-problem/128734 "2008-02-11T15:09:41Z")

</div>

hello there, im a beginner in ruby on rails. i have 3 tables: timetable --contains–\> id, class1\_id, subject\_id, etc student --contains–\> id, class1\_id, etc class1 --contains–\> id, classname now, i wanted to view st…

---

## [Actionmailer and mailer\_name](https://www.ruby-forum.com/t/actionmailer-and-mailer-name/128540)

<div class="topic-metadata">

**Author:** [@harm](https://www.ruby-forum.com/u/harm)\
**Replies:** 3\
**Last updated:** [February 11, 2008, 3:03pm UTC](https://www.ruby-forum.com/t/actionmailer-and-mailer-name/128540 "2008-02-11T15:03:13Z")

</div>

Dear list, I am trying to sent mails through ActionMailer. As I have done in the past. However I now get this really strange message; ActionView::ActionViewError (Due to changes in ActionMailer, you need to provide t…

---

## [Can't update my data base using "update\_attributes"](https://www.ruby-forum.com/t/cant-update-my-data-base-using-update-attributes/197316)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 3\
**Last updated:** [February 11, 2008, 2:28pm UTC](https://www.ruby-forum.com/t/cant-update-my-data-base-using-update-attributes/197316 "2008-02-11T14:28:14Z")

</div>

Hello, I have this problem that my rails application works fine in development environment on my local Linux and windows system but when I uploaded it to work on the server in production environment I have this proble…

---

## [Globalize plugin is broken with rails trunk](https://www.ruby-forum.com/t/globalize-plugin-is-broken-with-rails-trunk/128779)

<div class="topic-metadata">

**Author:** [@nhm\_tanveer\_hossain](https://www.ruby-forum.com/u/nhm_tanveer_hossain)\
**Replies:** 0\
**Last updated:** [February 11, 2008, 2:19pm UTC](https://www.ruby-forum.com/t/globalize-plugin-is-broken-with-rails-trunk/128779 "2008-02-11T14:19:57Z")

</div>

today, i was trying to use r8857 from rails trunk, perhaps something has gone horribly different. my code with globalize plugin was working with rails 2.0.2 but not anymore with this revision. it seems like current tr…

---

## [Scaffolding again after new columns in table](https://www.ruby-forum.com/t/scaffolding-again-after-new-columns-in-table/128777)

<div class="topic-metadata">

**Author:** [@hashpipe](https://www.ruby-forum.com/u/hashpipe)\
**Replies:** 1\
**Last updated:** [February 11, 2008, 2:16pm UTC](https://www.ruby-forum.com/t/scaffolding-again-after-new-columns-in-table/128777 "2008-02-11T14:16:52Z")

</div>

Hi, I am a newbie to RoR, and wanted to know how-to go about adding a new column to a table. Once if I add the table, then is it necessary to scaffold again, and how to be sure that I do not regenerate my controllers…

---

## [REST Web Service ActionController::InvalidAuthenticityToken](https://www.ruby-forum.com/t/rest-web-service-actioncontroller-invalidauthenticitytoken/126255)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 1\
**Last updated:** [February 11, 2008, 2:14pm UTC](https://www.ruby-forum.com/t/rest-web-service-actioncontroller-invalidauthenticitytoken/126255 "2008-02-11T14:14:38Z")

</div>

I am trying to write a REST web service testing locally is fine but whane I deploy the server and try test it via curl curl -i -X POST -H ‘Content-Type:application/xml’ -d ‘’ http://mytesteddomain.tld/user/posts/crea…

---

## [Deploy Rails apps in 4 mins and 37 secs](https://www.ruby-forum.com/t/deploy-rails-apps-in-4-mins-and-37-secs/128778)

<div class="topic-metadata">

**Author:** [@Macel](https://www.ruby-forum.com/u/Macel)\
**Replies:** 0\
**Last updated:** [February 11, 2008, 2:10pm UTC](https://www.ruby-forum.com/t/deploy-rails-apps-in-4-mins-and-37-secs/128778 "2008-02-11T14:10:30Z")

</div>

Sneak preview: - YouTube. If you find this worthy to share, please do so. If you think I’m violating posting rules, I apologize. I just want to share this new way of deploying Rails apps. Think of how much you can sav…

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

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