# Rails

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

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

---

## [Simple Generated Component Suddenly Gives Errors](https://www.ruby-forum.com/t/simple-generated-component-suddenly-gives-errors/137110)

<div class="topic-metadata">

**Author:** [@ror\_arch](https://www.ruby-forum.com/u/ror_arch)\
**Replies:** 5\
**Last updated:** [May 9, 2008, 2:47pm UTC](https://www.ruby-forum.com/t/simple-generated-component-suddenly-gives-errors/137110 "2008-05-09T14:47:22Z")

</div>

What am I doing wrong here when I wrote a very simple component so : C:\\ruby\\letter4sure\>ruby script\\generate scaffold pso\_printers printing\_setting\_id:integer pso\_id:integer exists app/models/ exists app/controlle…

---

## [Depot Application not working](https://www.ruby-forum.com/t/depot-application-not-working/196675)

<div class="topic-metadata">

**Author:** [@vijay](https://www.ruby-forum.com/u/vijay)\
**Replies:** 3\
**Last updated:** [May 9, 2008, 2:41pm UTC](https://www.ruby-forum.com/t/depot-application-not-working/196675 "2008-05-09T14:41:41Z")

</div>

Hello All, I am doing the depot appliction. I was first installed Instant Rails 2.0 on my machine. got error in getting scaffold :product then after searching in forum took the 1.2.6 version using the below command …

---

## [NoMethodError in ClassifiedController#update](https://www.ruby-forum.com/t/nomethoderror-in-classifiedcontroller-update/137146)

<div class="topic-metadata">

**Author:** [@manika](https://www.ruby-forum.com/u/manika)\
**Replies:** 0\
**Last updated:** [May 9, 2008, 12:11pm UTC](https://www.ruby-forum.com/t/nomethoderror-in-classifiedcontroller-update/137146 "2008-05-09T12:11:40Z")

</div>

My project was working when I add new field category It is showing the error in create form and edit form i am sending u controller file as attechment this is my model(category.rb) dor category file class Category \< …

---

## [A Model Belongs to Many Model](https://www.ruby-forum.com/t/a-model-belongs-to-many-model/136871)

<div class="topic-metadata">

**Author:** [@baros119](https://www.ruby-forum.com/u/baros119)\
**Replies:** 6\
**Last updated:** [May 9, 2008, 12:10pm UTC](https://www.ruby-forum.com/t/a-model-belongs-to-many-model/136871 "2008-05-09T12:10:50Z")

</div>

Hi, I have a design question. I have 4 models, Photo, Trip, Destination, and Hotel. I want Trip, Destination, and Hotel to have Photos. A Photo always belongs to a Destination but at the same time it can belongs to T…

---

## [Attachment\_Fu : how to remove thumbnails only and regenerate](https://www.ruby-forum.com/t/attachment-fu-how-to-remove-thumbnails-only-and-regenerate/137145)

<div class="topic-metadata">

**Author:** [@jags](https://www.ruby-forum.com/u/jags)\
**Replies:** 0\
**Last updated:** [May 9, 2008, 11:49am UTC](https://www.ruby-forum.com/t/attachment-fu-how-to-remove-thumbnails-only-and-regenerate/137145 "2008-05-09T11:49:55Z")

</div>

hello guys i am using attachment\_fu for product images i have hundreds of products and their images with thumbnails :thumbnails =\> { :thumb =\> ‘100x100\>’ } now we have decided to have thumbnails of size 50x50\> only. …

---

## [Attr\_accessor\_with\_default funny](https://www.ruby-forum.com/t/attr-accessor-with-default-funny/137140)

<div class="topic-metadata">

**Author:** [@matthew](https://www.ruby-forum.com/u/matthew)\
**Replies:** 2\
**Last updated:** [May 9, 2008, 11:13am UTC](https://www.ruby-forum.com/t/attr-accessor-with-default-funny/137140 "2008-05-09T11:13:29Z")

</div>

I created some virtual attributes in a model in order to store intermediate calculated values. I wanted to use attr\_accessor\_with\_default so that I could give the calculated values an initial value to allow me to use…

---

## [Testers wanted](https://www.ruby-forum.com/t/testers-wanted/137139)

<div class="topic-metadata">

**Author:** [@mydecisionhelper](https://www.ruby-forum.com/u/mydecisionhelper)\
**Replies:** 0\
**Last updated:** [May 9, 2008, 9:44am UTC](https://www.ruby-forum.com/t/testers-wanted/137139 "2008-05-09T09:44:31Z")

</div>

Hi, guys I’ve already posted about this site. http://www.mydecisionhelper.com Please, review and test one more Rails site. It’s a Decision Engine. You can use a lot of already created decision from library, or crea…

---

## [Getting an error when trying to create a new application](https://www.ruby-forum.com/t/getting-an-error-when-trying-to-create-a-new-application/137115)

<div class="topic-metadata">

**Author:** [@nbafan](https://www.ruby-forum.com/u/nbafan)\
**Replies:** 2\
**Last updated:** [May 9, 2008, 9:08am UTC](https://www.ruby-forum.com/t/getting-an-error-when-trying-to-create-a-new-application/137115 "2008-05-09T09:08:55Z")

</div>

I’m new to Ruby/Ruby on Rails. I’m trying to create an application and am getting this error: C:\\InstantRails\\rails\_apps\>rails demo C:/InstantRails/ruby/lib/ruby/site\_ruby/1.8/rubygems.rb:379:in report\_activate\_ erro…

---

## [Could RAW\_POST\_DATA be altered?](https://www.ruby-forum.com/t/could-raw-post-data-be-altered/137117)

<div class="topic-metadata">

**Author:** [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Replies:** 1\
**Last updated:** [May 9, 2008, 8:51am UTC](https://www.ruby-forum.com/t/could-raw-post-data-be-altered/137117 "2008-05-09T08:51:12Z")

</div>

I’ve been working on a very low-level issue on RubyAMF. In a nutshell, I need to figure out if its at all possible that rails’ request.env\[‘RAW\_POST\_DATA’\] or request.raw\_post for that matter could possibly be interpr…

---

## [Test Unit can't change data](https://www.ruby-forum.com/t/test-unit-cant-change-data/137127)

<div class="topic-metadata">

**Author:** [@malioboro](https://www.ruby-forum.com/u/malioboro)\
**Replies:** 1\
**Last updated:** [May 9, 2008, 8:45am UTC](https://www.ruby-forum.com/t/test-unit-cant-change-data/137127 "2008-05-09T08:45:56Z")

</div>

I have converted my engine from myISAM to InnoDB, the matter now in Test Unit, the table cant do any changes for CRUD. Any advice? But if I convert it back, the CRUD can run very smooth and data value in attributes ch…

---

## [File\_column: No such file or directory](https://www.ruby-forum.com/t/file-column-no-such-file-or-directory/136538)

<div class="topic-metadata">

**Author:** [@steveluscher](https://www.ruby-forum.com/u/steveluscher)\
**Replies:** 5\
**Last updated:** [May 9, 2008, 8:40am UTC](https://www.ruby-forum.com/t/file-column-no-such-file-or-directory/136538 "2008-05-09T08:40:40Z")

</div>

Hi All - I just installed file\_column and am trying to make the simplest example work. I have one file upload control and I’m getting the following puzzling error. It’s complaining about a missing file or directory,…

---

## [File validations](https://www.ruby-forum.com/t/file-validations/196674)

<div class="topic-metadata">

**Author:** [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Replies:** 0\
**Last updated:** [May 9, 2008, 6:45am UTC](https://www.ruby-forum.com/t/file-validations/196674 "2008-05-09T06:45:53Z")

</div>

i am developing one application in which user uploaded one csv template to my system(file). but we have to take care that user should uploaded .csv file only if he trying to upload another file we have to restrict it. …

---

## [New RJS naming convention](https://www.ruby-forum.com/t/new-rjs-naming-convention/137059)

<div class="topic-metadata">

**Author:** [@normelton](https://www.ruby-forum.com/u/normelton)\
**Replies:** 2\
**Last updated:** [May 9, 2008, 5:06am UTC](https://www.ruby-forum.com/t/new-rjs-naming-convention/137059 "2008-05-09T05:06:55Z")

</div>

I’ve renamed my .rhtml files to .html.erb and everything works fine. Renaming .rjs to .js.rjs; however, does not. Pages don’t render unless I specifically tell them to using render :template. Any thoughts? Is the .js.…

---

## [Trouble with gems on Ubuntu](https://www.ruby-forum.com/t/trouble-with-gems-on-ubuntu/137111)

<div class="topic-metadata">

**Author:** [@taro](https://www.ruby-forum.com/u/taro)\
**Replies:** 4\
**Last updated:** [May 9, 2008, 4:47am UTC](https://www.ruby-forum.com/t/trouble-with-gems-on-ubuntu/137111 "2008-05-09T04:47:58Z")

</div>

I’m trying to install rails in my laptop, ubuntu partition, but gems won’t work. This is what it says: $ sudo gem update --system /usr/bin/gem:23: uninitialized constant Gem::GemRunner (NameError) Obviously, the error…

---

## [$80/hr - rails developer and mentor + active scaffold](https://www.ruby-forum.com/t/80-hr-rails-developer-and-mentor-active-scaffold/137122)

<div class="topic-metadata">

**Author:** [@James\_Burrett](https://www.ruby-forum.com/u/James_Burrett)\
**Replies:** 0\
**Last updated:** [May 9, 2008, 3:56am UTC](https://www.ruby-forum.com/t/80-hr-rails-developer-and-mentor-active-scaffold/137122 "2008-05-09T03:56:37Z")

</div>

$80/hr - rails developer and mentor + active scaffold

---

## [Styling the date\_select objects](https://www.ruby-forum.com/t/styling-the-date-select-objects/137101)

<div class="topic-metadata">

**Author:** [@joel](https://www.ruby-forum.com/u/joel)\
**Replies:** 1\
**Last updated:** [May 9, 2008, 3:20am UTC](https://www.ruby-forum.com/t/styling-the-date-select-objects/137101 "2008-05-09T03:20:58Z")

</div>

Hello People, jsut wanted to know how I could add style to the date\_select helper objects. I’m currently using the style option ( :style =\> ‘’ … " ) but this isn’t working. Anyone could help me with that issue. Best …

---

## [Has\_many :through polymorphic with STI in the polymorphic target tables](https://www.ruby-forum.com/t/has-many-through-polymorphic-with-sti-in-the-polymorphic-target-tables/137002)

<div class="topic-metadata">

**Author:** [@makkura](https://www.ruby-forum.com/u/makkura)\
**Replies:** 4\
**Last updated:** [May 9, 2008, 3:17am UTC](https://www.ruby-forum.com/t/has-many-through-polymorphic-with-sti-in-the-polymorphic-target-tables/137002 "2008-05-09T03:17:27Z")

</div>

has\_many :through polymorphic with STI in the polymorphic target tables Hello, In our data model we have Users that can be members of Schools, Organizations, etc. The Schools table uses STI to support Colleges and H…

---

## [How to send SMS using textmarks](https://www.ruby-forum.com/t/how-to-send-sms-using-textmarks/136027)

<div class="topic-metadata">

**Author:** [@vicky](https://www.ruby-forum.com/u/vicky)\
**Replies:** 1\
**Last updated:** [May 9, 2008, 2:08am UTC](https://www.ruby-forum.com/t/how-to-send-sms-using-textmarks/136027 "2008-05-09T02:08:28Z")

</div>

Does any body know how to send SMS using textmarks in ruby on rails. I have got the API key. how to make it using HTTP request Post.??

---

## [A Little Help with Hpricot Parsing](https://www.ruby-forum.com/t/a-little-help-with-hpricot-parsing/137073)

<div class="topic-metadata">

**Author:** [@karlshea](https://www.ruby-forum.com/u/karlshea)\
**Replies:** 1\
**Last updated:** [May 9, 2008, 12:17am UTC](https://www.ruby-forum.com/t/a-little-help-with-hpricot-parsing/137073 "2008-05-09T00:17:10Z")

</div>

I need to scrape out the name, address, city, state, zip, etc. from site. Due to their wonderful coding, they didn’t put lines of text in tags. So Hpricot doesn't see the address (et al) as an element, but it does see…

---

## [Extract and assign xml values to variable](https://www.ruby-forum.com/t/extract-and-assign-xml-values-to-variable/136654)

<div class="topic-metadata">

**Author:** [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Replies:** 7\
**Last updated:** [May 9, 2008, 12:00am UTC](https://www.ruby-forum.com/t/extract-and-assign-xml-values-to-variable/136654 "2008-05-09T00:00:43Z")

</div>

hi, how can we assign an xml element value to some variable in controller? e.g. if we have 1 abc xyz and if we want value of name i.e. ‘abc’ to be assigned in a variable declared in a controller, say order\_con…

---

## [Noob question regarding site and table naming structure](https://www.ruby-forum.com/t/noob-question-regarding-site-and-table-naming-structure/137058)

<div class="topic-metadata">

**Author:** [@blzabub](https://www.ruby-forum.com/u/blzabub)\
**Replies:** 1\
**Last updated:** [May 8, 2008, 11:33pm UTC](https://www.ruby-forum.com/t/noob-question-regarding-site-and-table-naming-structure/137058 "2008-05-08T23:33:12Z")

</div>

I’m a newbie at Rails and Ruby so please bear with me: I’m trying to build a simple application that has an administration system that manages organizations and products. I want the model/views/ controllers for ‘organ…

---

## [2 helpers, same method name?](https://www.ruby-forum.com/t/2-helpers-same-method-name/137093)

<div class="topic-metadata">

**Author:** [@dr\_j](https://www.ruby-forum.com/u/dr_j)\
**Replies:** 1\
**Last updated:** [May 8, 2008, 10:24pm UTC](https://www.ruby-forum.com/t/2-helpers-same-method-name/137093 "2008-05-08T22:24:50Z")

</div>

I have 2 controllers, say, “A”, and “B”. Associated with this, then, are 2 views, as well as 2 helpers. Is it possible to have a helper method in a\_helper.rb and a method of the same name in b\_helper.rb? A little mor…

---

## [Cookie Problem on Safari](https://www.ruby-forum.com/t/cookie-problem-on-safari/136701)

<div class="topic-metadata">

**Author:** [@pkoebbe](https://www.ruby-forum.com/u/pkoebbe)\
**Replies:** 8\
**Last updated:** [May 8, 2008, 9:17pm UTC](https://www.ruby-forum.com/t/cookie-problem-on-safari/136701 "2008-05-08T21:17:05Z")

</div>

I have a 2.0.2 app that I’m developing locally using Mongrel. I’m using active\_record\_store for sessions and have uncommented the secret in the protect\_from\_forgery call. Everything works fine locally. I uploaded th…

---

## [User input - spit code to browser](https://www.ruby-forum.com/t/user-input-spit-code-to-browser/137080)

<div class="topic-metadata">

**Author:** [@jrun](https://www.ruby-forum.com/u/jrun)\
**Replies:** 5\
**Last updated:** [May 8, 2008, 8:36pm UTC](https://www.ruby-forum.com/t/user-input-spit-code-to-browser/137080 "2008-05-08T20:36:28Z")

</div>

Hi, I am having trouble figuring out how to do this… I am developing a new ruby on rails project and I am trying figure out how to write code so that when a user inputs their info into a form and they click on submit …

---

## [Disabling forgery protection](https://www.ruby-forum.com/t/disabling-forgery-protection/137081)

<div class="topic-metadata">

**Author:** [@mr\_tibs](https://www.ruby-forum.com/u/mr_tibs)\
**Replies:** 1\
**Last updated:** [May 8, 2008, 8:29pm UTC](https://www.ruby-forum.com/t/disabling-forgery-protection/137081 "2008-05-08T20:29:13Z")

</div>

Hi, I have to enable batch uploads to my website with CURL and forgery protection in ApplicationController is standing in my way. I do use the restful authentication plugin and I do call login\_required on all actions…

---

## [Weakness of Transaction in Rails](https://www.ruby-forum.com/t/weakness-of-transaction-in-rails/137070)

<div class="topic-metadata">

**Author:** [@malioboro](https://www.ruby-forum.com/u/malioboro)\
**Replies:** 11\
**Last updated:** [May 8, 2008, 8:07pm UTC](https://www.ruby-forum.com/t/weakness-of-transaction-in-rails/137070 "2008-05-08T20:07:46Z")

</div>

Dear All: I have done my test for 2 actions do simultaneously for the same command. Here is my approvement. Window DOS 1 F:\\ruby\\tiesto\> ruby test/unit/item\_test.rb Loaded suite test/unit/item\_test Started . Fin…

---

## [Routing error for .css, .js, image files. Others fine](https://www.ruby-forum.com/t/routing-error-for-css-js-image-files-others-fine/134646)

<div class="topic-metadata">

**Author:** [@ebdb](https://www.ruby-forum.com/u/ebdb)\
**Replies:** 3\
**Last updated:** [May 8, 2008, 8:04pm UTC](https://www.ruby-forum.com/t/routing-error-for-css-js-image-files-others-fine/134646 "2008-05-08T20:04:47Z")

</div>

I have a Rails 2.0.2 app that’s working fine locally on my Mac using Webrick. However, deployed to my CentOS 5 production server I’m getting routing errors for .css files, .js, and for images. The actions are working …

---

## [How To Modify / Update a Table?](https://www.ruby-forum.com/t/how-to-modify-update-a-table/137066)

<div class="topic-metadata">

**Author:** [@ror\_arch](https://www.ruby-forum.com/u/ror_arch)\
**Replies:** 5\
**Last updated:** [May 8, 2008, 7:29pm UTC](https://www.ruby-forum.com/t/how-to-modify-update-a-table/137066 "2008-05-08T19:29:44Z")

</div>

Ok this is a general query. How do I update or modify a table and its accompanying files? For example : I do a ruby script/generate scaffold TABLE\_NAME FIELD\_NAME1:TYPE FIELD\_NAME2:TYPE I then do a rake db:migrate a…

---

## [Can I add a singleton action to @controller in a test?](https://www.ruby-forum.com/t/can-i-add-a-singleton-action-to-controller-in-a-test/136973)

<div class="topic-metadata">

**Author:** [@kuma](https://www.ruby-forum.com/u/kuma)\
**Replies:** 2\
**Last updated:** [May 8, 2008, 7:13pm UTC](https://www.ruby-forum.com/t/can-i-add-a-singleton-action-to-controller-in-a-test/136973 "2008-05-08T19:13:03Z")

</div>

All, I want to create a mock action to test a filter in a functional test, e.g.: Simplified example def test\_my\_filter # Singleton action def @controller.foo assert # something end ActionController::Routing::Rout…

---

## [Rails and PHP Under the Same Domain Name with Fast CGI](https://www.ruby-forum.com/t/rails-and-php-under-the-same-domain-name-with-fast-cgi/136982)

<div class="topic-metadata">

**Author:** [@emmanuel](https://www.ruby-forum.com/u/emmanuel)\
**Replies:** 1\
**Last updated:** [May 8, 2008, 6:30pm UTC](https://www.ruby-forum.com/t/rails-and-php-under-the-same-domain-name-with-fast-cgi/136982 "2008-05-08T18:30:33Z")

</div>

Hello, Inspired by this post, I created the following Apache vhost to be able to run Rails and, inside /app/public, the PHP posh app. \<VirtualHost \*:80\> ServerName dev.example.com DocumentRoot “/home/www/projets.exa…

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

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