# Rails

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

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

---

## [Does anyone want a new job?](https://www.ruby-forum.com/t/does-anyone-want-a-new-job/163390)

<div class="topic-metadata">

**Author:** [@abecker08](https://www.ruby-forum.com/u/abecker08)\
**Replies:** 2\
**Last updated:** [March 19, 2009, 10:56pm UTC](https://www.ruby-forum.com/t/does-anyone-want-a-new-job/163390 "2009-03-19T22:56:23Z")

</div>

THIS POSITION IS LOCATED IN DALLAS TX!!! Software Developer Are you looking for a stable company to work for in these hard times? Would you like to be a part of a close nit team working on cutting edge technologies? …

---

## [Very simple authenticatation](https://www.ruby-forum.com/t/very-simple-authenticatation/163351)

<div class="topic-metadata">

**Author:** [@johnsonmlw](https://www.ruby-forum.com/u/johnsonmlw)\
**Replies:** 7\
**Last updated:** [March 19, 2009, 10:43pm UTC](https://www.ruby-forum.com/t/very-simple-authenticatation/163351 "2009-03-19T22:43:17Z")

</div>

Could someone help me with this. It really only needs to be this simple. I don’t need user models or plugins etc. I think it’s clear what I’d like (either admin or slt to authenticate), but it’s obviously flawed and l…

---

## [Run a script in the console?](https://www.ruby-forum.com/t/run-a-script-in-the-console/163396)

<div class="topic-metadata">

**Author:** [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Replies:** 1\
**Last updated:** [March 19, 2009, 10:14pm UTC](https://www.ruby-forum.com/t/run-a-script-in-the-console/163396 "2009-03-19T22:14:08Z")

</div>

I am trying to run a script in the script/console…but I dont think im doing it right. can some one help? I am typing: rake /lib/tasks/my\_rake\_file.rake into the console and I get: SyntaxError: compile error (irb):2…

---

## [Generate csv from ruby object](https://www.ruby-forum.com/t/generate-csv-from-ruby-object/163378)

<div class="topic-metadata">

**Author:** [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Replies:** 2\
**Last updated:** [March 19, 2009, 10:10pm UTC](https://www.ruby-forum.com/t/generate-csv-from-ruby-object/163378 "2009-03-19T22:10:37Z")

</div>

hi all, is there any method/way to generate a csv from an object directly? e.g. @object.to\_csv that will create a csv file with whatever data that object holds? the object that i have is a parsed xml response like @r…

---

## [How to check for a real person?](https://www.ruby-forum.com/t/how-to-check-for-a-real-person/163365)

<div class="topic-metadata">

**Author:** [@sultan](https://www.ruby-forum.com/u/sultan)\
**Replies:** 3\
**Last updated:** [March 19, 2009, 10:09pm UTC](https://www.ruby-forum.com/t/how-to-check-for-a-real-person/163365 "2009-03-19T22:09:59Z")

</div>

Some sites have some checks to make sure that the data is being sent by a real person. Something like this: See this code? \[there is a image here with random letters and numbers\] Re-type it here \[you have to enter …

---

## [HABTM, select box and array issue](https://www.ruby-forum.com/t/habtm-select-box-and-array-issue/163394)

<div class="topic-metadata">

**Author:** [@Guha](https://www.ruby-forum.com/u/Guha)\
**Replies:** 1\
**Last updated:** [March 19, 2009, 10:08pm UTC](https://www.ruby-forum.com/t/habtm-select-box-and-array-issue/163394 "2009-03-19T22:08:50Z")

</div>

Product model is as follows class Product \< ActiveRecord::Base belongs\_to :product\_category has\_and\_belongs\_to\_many :variant\_parameters I am displaying a collection of variant parameters for the product. Can be mo…

---

## [Mobile Fu not redirecting](https://www.ruby-forum.com/t/mobile-fu-not-redirecting/163395)

<div class="topic-metadata">

**Author:** [@pimeamark](https://www.ruby-forum.com/u/pimeamark)\
**Replies:** 0\
**Last updated:** [March 19, 2009, 10:06pm UTC](https://www.ruby-forum.com/t/mobile-fu-not-redirecting/163395 "2009-03-19T22:06:11Z")

</div>

Hi, I was wondering if anyone with experience with this plugin can help me get it going. I did everything required in what i found online, and I made all the .mobile.erb views and spreadsheets. Everything gets redirec…

---

## [Does anyone need a new job?](https://www.ruby-forum.com/t/does-anyone-need-a-new-job/163371)

<div class="topic-metadata">

**Author:** [@abecker08](https://www.ruby-forum.com/u/abecker08)\
**Replies:** 2\
**Last updated:** [March 19, 2009, 10:00pm UTC](https://www.ruby-forum.com/t/does-anyone-need-a-new-job/163371 "2009-03-19T22:00:40Z")

</div>

Software Developer Are you looking for a stable company to work for in these hard times? Would you like to be a part of a close nit team working on cutting edge technologies? Do you enjoy working on the dynamic, open …

---

## [Two models with restful\_authentication](https://www.ruby-forum.com/t/two-models-with-restful-authentication/163318)

<div class="topic-metadata">

**Author:** [@indu](https://www.ruby-forum.com/u/indu)\
**Replies:** 3\
**Last updated:** [March 19, 2009, 8:58pm UTC](https://www.ruby-forum.com/t/two-models-with-restful-authentication/163318 "2009-03-19T20:58:59Z")

</div>

Hai everyone, I am using restful\_authentication plugin in my project. The relation between the category and user is has\_and\_belongs\_to\_many. So I created another table category\_users with category\_id and user\_id as fi…

---

## [Console truncates system call returns ....?](https://www.ruby-forum.com/t/console-truncates-system-call-returns/163382)

<div class="topic-metadata">

**Author:** [@soroe](https://www.ruby-forum.com/u/soroe)\
**Replies:** 2\
**Last updated:** [March 19, 2009, 8:37pm UTC](https://www.ruby-forum.com/t/console-truncates-system-call-returns/163382 "2009-03-19T20:37:30Z")

</div>

Hey Guys, The following system call (in Ubuntu 8.04) gets the associated result. $\> ps aux | grep myProgram 1000 15152 59.2 1.3 33244 28652 pts/1 S 10:48 0:02 ruby /home/workplace/fireknife/script/runne…

---

## [Getting proxy\_options from named\_scopes](https://www.ruby-forum.com/t/getting-proxy-options-from-named-scopes/163354)

<div class="topic-metadata">

**Author:** [@jonatas](https://www.ruby-forum.com/u/jonatas)\
**Replies:** 2\
**Last updated:** [March 19, 2009, 8:02pm UTC](https://www.ruby-forum.com/t/getting-proxy-options-from-named-scopes/163354 "2009-03-19T20:02:25Z")

</div>

Hi, I have been using named\_scopes and works great! but I need to get the sql conditions to send for my iReport =) when I do User.valid.proxy\_options returns ok but User.valid.created\_by(‘jonatas’).proxy\_options re…

---

## [Semi-colons](https://www.ruby-forum.com/t/semi-colons/163357)

<div class="topic-metadata">

**Author:** [@lazer\_rash](https://www.ruby-forum.com/u/lazer_rash)\
**Replies:** 6\
**Last updated:** [March 19, 2009, 7:21pm UTC](https://www.ruby-forum.com/t/semi-colons/163357 "2009-03-19T19:21:29Z")

</div>

I know…Semi-colons are evil. But, what if I have an application that has moved from one server to the next and it has Rails 2.0. I want the application to roll forward, so I don’t want to just freeze the app and st…

---

## [Whats the difference between "\<%= abc %\>" and "\<%= abc -%\>"](https://www.ruby-forum.com/t/whats-the-difference-between-abc-and-abc/163248)

<div class="topic-metadata">

**Author:** [@sultan](https://www.ruby-forum.com/u/sultan)\
**Replies:** 8\
**Last updated:** [March 19, 2009, 7:19pm UTC](https://www.ruby-forum.com/t/whats-the-difference-between-abc-and-abc/163248 "2009-03-19T19:19:43Z")

</div>

What difference does the “-” at the end make?

---

## [Run a rake file from command line and view what is happening](https://www.ruby-forum.com/t/run-a-rake-file-from-command-line-and-view-what-is-happening/163372)

<div class="topic-metadata">

**Author:** [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Replies:** 1\
**Last updated:** [March 19, 2009, 7:18pm UTC](https://www.ruby-forum.com/t/run-a-rake-file-from-command-line-and-view-what-is-happening/163372 "2009-03-19T19:18:32Z")

</div>

I have the following code that I want to run but I can’t seem to figure out how to view the variable’s content someobj = AnotherObj.find(:all, :conditions =\> {:col\_10 =\> nil, :col\_12 =\> nil, :col\_5 =\> “12345”}) puts …

---

## [Call Model Method](https://www.ruby-forum.com/t/call-model-method/159398)

<div class="topic-metadata">

**Author:** [@cyrus](https://www.ruby-forum.com/u/cyrus)\
**Replies:** 3\
**Last updated:** [March 19, 2009, 6:26pm UTC](https://www.ruby-forum.com/t/call-model-method/159398 "2009-03-19T18:26:52Z")

</div>

Hello Everyone any one know how to call model method in controller ? I have one method that is in model and want to call from another controller please help me thanks

---

## [Stopping acts\_as\_list creating the versioned table](https://www.ruby-forum.com/t/stopping-acts-as-list-creating-the-versioned-table/163373)

<div class="topic-metadata">

**Author:** [@ben](https://www.ruby-forum.com/u/ben)\
**Replies:** 0\
**Last updated:** [March 19, 2009, 6:04pm UTC](https://www.ruby-forum.com/t/stopping-acts-as-list-creating-the-versioned-table/163373 "2009-03-19T18:04:31Z")

</div>

I’m wanting to use the acts\_as\_versioned plugin on a versioned table that I’ve already created and populated with data, but the create\_versioned\_table method is attempting to create the versioned table and is failing …

---

## [Triple join asking for trouble?](https://www.ruby-forum.com/t/triple-join-asking-for-trouble/163375)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 1\
**Last updated:** [March 19, 2009, 6:01pm UTC](https://www.ruby-forum.com/t/triple-join-asking-for-trouble/163375 "2009-03-19T18:01:36Z")

</div>

Model.scoped\_by\_body\_type\_id ( event.body\_type\_ids ).scoped\_by\_skin\_color\_id ( event.skin\_color\_ids ).find( :all, :conditions =\> \[‘weight\_pounds \<= ? AND total\_height\_inches \>= ? AND minimum\_pay \<= ? AND job\_types.id…

---

## [Form\_tag params hash doesn't contain form data](https://www.ruby-forum.com/t/form-tag-params-hash-doesnt-contain-form-data/163374)

<div class="topic-metadata">

**Author:** [@RailSoft](https://www.ruby-forum.com/u/RailSoft)\
**Replies:** 1\
**Last updated:** [March 19, 2009, 6:01pm UTC](https://www.ruby-forum.com/t/form-tag-params-hash-doesnt-contain-form-data/163374 "2009-03-19T18:01:35Z")

</div>

Hi, I have a check box in a non - model based form and when I submit the form with ‘Un Checked’ check box the params hash doesn’t contain the check box. Whenever I submit the form with the check box ‘Checked’, I see…

---

## [Select helper and issues with :selected](https://www.ruby-forum.com/t/select-helper-and-issues-with-selected/163362)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 7\
**Last updated:** [March 19, 2009, 5:35pm UTC](https://www.ruby-forum.com/t/select-helper-and-issues-with-selected/163362 "2009-03-19T17:35:15Z")

</div>

I have this code: \<%= select ‘stuff’, ‘id’, Stuff.find\_by\_sql( “SELECT stuffs.value, stuffs.id from stuffs WHERE account\_id = " + @account.id.to\_s + " ORDER BY stuffs.value ASC” ).collect{ |a| \[a.value, a.id\] }, {:inc…

---

## [How to convert UploadedStringIO or UploadedTempfile object to File object](https://www.ruby-forum.com/t/how-to-convert-uploadedstringio-or-uploadedtempfile-object-to-file-object/163369)

<div class="topic-metadata">

**Author:** [@Kentaro\_Imai](https://www.ruby-forum.com/u/Kentaro_Imai)\
**Replies:** 0\
**Last updated:** [March 19, 2009, 5:22pm UTC](https://www.ruby-forum.com/t/how-to-convert-uploadedstringio-or-uploadedtempfile-object-to-file-object/163369 "2009-03-19T17:22:57Z")

</div>

Hi, I want to upload user-uploaded files to another web server from rails application. Is there any way to convert UploadedStringIO or UploadedTempfile object to File object? Thanks in advance, Kentaro Imai

---

## [\[ANN\] Moonshine: Rails deployment and configuration management done right](https://www.ruby-forum.com/t/ann-moonshine-rails-deployment-and-configuration-management-done-right/163368)

<div class="topic-metadata">

**Author:** [@jnewland](https://www.ruby-forum.com/u/jnewland)\
**Replies:** 0\
**Last updated:** [March 19, 2009, 5:06pm UTC](https://www.ruby-forum.com/t/ann-moonshine-rails-deployment-and-configuration-management-done-right/163368 "2009-03-19T17:06:27Z")

</div>

Hey everyone - I’ve just released Moonshine, a Rails plugin for automated deployment and configuration management that includes complete configuration of an opinionated Rails stack: Passenger, Rails, and MySQL on Ubun…

---

## [(easy:) Installing plugin from folder](https://www.ruby-forum.com/t/easy-installing-plugin-from-folder/163361)

<div class="topic-metadata">

**Author:** [@venut](https://www.ruby-forum.com/u/venut)\
**Replies:** 3\
**Last updated:** [March 19, 2009, 5:05pm UTC](https://www.ruby-forum.com/t/easy-installing-plugin-from-folder/163361 "2009-03-19T17:05:52Z")

</div>

Can’t find any details on this on the web, so I try on the forum. For whatever reason, “ruby script/plugin …” doesn’t work for me. What i then do is: Download the plugin (.zip), unzip it. Place the folder in vendor/p…

---

## [HABTM and radio\_button](https://www.ruby-forum.com/t/habtm-and-radio-button/163045)

<div class="topic-metadata">

**Author:** [@elliottg](https://www.ruby-forum.com/u/elliottg)\
**Replies:** 9\
**Last updated:** [March 19, 2009, 4:42pm UTC](https://www.ruby-forum.com/t/habtm-and-radio-button/163045 "2009-03-19T16:42:21Z")

</div>

Hello. Stuck on some HABTM stuff here… I’m new to rails and I’m kinda lost on this topic. FYI This is all within the context of a working restful\_authentication and role\_requirement setup. I am simply adding a radio…

---

## [ActiveRecord shared models](https://www.ruby-forum.com/t/activerecord-shared-models/163358)

<div class="topic-metadata">

**Author:** [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Replies:** 2\
**Last updated:** [March 19, 2009, 4:24pm UTC](https://www.ruby-forum.com/t/activerecord-shared-models/163358 "2009-03-19T16:24:19Z")

</div>

I’m attempting to build a somewhat non-standard architecture around the Rails apps that I’m building for a customer. We’re looking for a way to be able to share models across projects using RubyGems. The reasons we w…

---

## [Restful\_authentication and relation specification](https://www.ruby-forum.com/t/restful-authentication-and-relation-specification/163356)

<div class="topic-metadata">

**Author:** [@indu](https://www.ruby-forum.com/u/indu)\
**Replies:** 2\
**Last updated:** [March 19, 2009, 3:52pm UTC](https://www.ruby-forum.com/t/restful-authentication-and-relation-specification/163356 "2009-03-19T15:52:52Z")

</div>

Hello everyone Trying to use restful\_authentication in my project. country\_id,state\_id,city\_id is the attributes of the user model. I specified the relation has\_many :users in in three of the model files and in the u…

---

## [Rails 2.3 deleting sessions](https://www.ruby-forum.com/t/rails-2-3-deleting-sessions/163350)

<div class="topic-metadata">

**Author:** [@jay](https://www.ruby-forum.com/u/jay)\
**Replies:** 2\
**Last updated:** [March 19, 2009, 3:51pm UTC](https://www.ruby-forum.com/t/rails-2-3-deleting-sessions/163350 "2009-03-19T15:51:12Z")

</div>

The following line no longer works in 2.3: ActiveRecord::SessionStore.delete\_all \[‘updated\_at \< ?’, 24.hours.ago\] Does anyone know how to do this in 2.3? Thanks, Jay

---

## [String manipulation utf8](https://www.ruby-forum.com/t/string-manipulation-utf8/163355)

<div class="topic-metadata">

**Author:** [@rgagnon](https://www.ruby-forum.com/u/rgagnon)\
**Replies:** 0\
**Last updated:** [March 19, 2009, 3:03pm UTC](https://www.ruby-forum.com/t/string-manipulation-utf8/163355 "2009-03-19T15:03:12Z")

</div>

I’m trying to upcase a string that contains utf8 chars. But I have some weird behavior. Here is a = “rÃ©mi” a = “rÃ©mi” =\> “rÃ©mi” a.chars.upcase a.chars.upcase =\> “RÃ©mi” any ideas? RÃ©mi

---

## [Where is my message](https://www.ruby-forum.com/t/where-is-my-message/163349)

<div class="topic-metadata">

**Author:** [@ther](https://www.ruby-forum.com/u/ther)\
**Replies:** 4\
**Last updated:** [March 19, 2009, 2:41pm UTC](https://www.ruby-forum.com/t/where-is-my-message/163349 "2009-03-19T14:41:46Z")

</div>

I am using this model validation: class Mailadress \< ActiveRecord::Base belongs\_to :maillist validates\_size\_of :desc, :maximum =\> 50, :message =\> ‘Description too long!’ end When I try to update with inproper size…

---

## [Videos](https://www.ruby-forum.com/t/videos/163332)

<div class="topic-metadata">

**Author:** [@napster](https://www.ruby-forum.com/u/napster)\
**Replies:** 2\
**Last updated:** [March 19, 2009, 2:19pm UTC](https://www.ruby-forum.com/t/videos/163332 "2009-03-19T14:19:30Z")

</div>

hi guys i am newbie to rails and in my app i need to upload user videos and how to do that? how to do the uploading videos in rails?

---

## [Lightly used mongrel process - mysql connection](https://www.ruby-forum.com/t/lightly-used-mongrel-process-mysql-connection/163347)

<div class="topic-metadata">

**Author:** [@alberto](https://www.ruby-forum.com/u/alberto)\
**Replies:** 0\
**Last updated:** [March 19, 2009, 2:15pm UTC](https://www.ruby-forum.com/t/lightly-used-mongrel-process-mysql-connection/163347 "2009-03-19T14:15:23Z")

</div>

I noticed that in one of my apps that are lightly used, we had a background process that would only contact the DB if some condition was met. If not, it would not contact the DB. It could go for days without establish…

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

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