# Rails

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

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

---

## [Script/generate cucumber fails in Rails 2.3.5 and Ruby 1.9.1](https://www.ruby-forum.com/t/script-generate-cucumber-fails-in-rails-2-3-5-and-ruby-1-9-1/180871)

<div class="topic-metadata">

**Author:** [@rorra](https://www.ruby-forum.com/u/rorra)\
**Replies:** 0\
**Last updated:** [December 30, 2009, 11:32pm UTC](https://www.ruby-forum.com/t/script-generate-cucumber-fails-in-rails-2-3-5-and-ruby-1-9-1/180871 "2009-12-30T23:32:21Z")

</div>

Hey there, I need a quick help in here. I have a full working rails environment. I just installed cucumber. sudo gem install cucumber cucumber-rails on my app folder i tried, script/generate cucumber; this is the re…

---

## [Framework choice for a new app](https://www.ruby-forum.com/t/framework-choice-for-a-new-app/180850)

<div class="topic-metadata">

**Author:** [@martinos](https://www.ruby-forum.com/u/martinos)\
**Replies:** 1\
**Last updated:** [December 30, 2009, 11:24pm UTC](https://www.ruby-forum.com/t/framework-choice-for-a-new-app/180850 "2009-12-30T23:24:44Z")

</div>

Hello, I’m going to start development of a new app and I’m wondering which way to go on the framework choice. I was leaning towards merb but since merb and rails are merging I’m unsure. What I’m mostly interested in…

---

## [Attachment\_fu replace thumbnail](https://www.ruby-forum.com/t/attachment-fu-replace-thumbnail/151789)

<div class="topic-metadata">

**Author:** [@xinu](https://www.ruby-forum.com/u/xinu)\
**Replies:** 1\
**Last updated:** [December 30, 2009, 9:58pm UTC](https://www.ruby-forum.com/t/attachment-fu-replace-thumbnail/151789 "2009-12-30T21:58:52Z")

</div>

hi. I use attachement\_fu and create this two thubnails of an image. :thumbnails =\> { :medium =\> ‘380x\>’, :thumb =\> ‘x100\>’ } Is it possible to replace the existing :thumb image with another image? The main Image a…

---

## [Tutorial - Creating a Custom Google In-site Search for Rails](https://www.ruby-forum.com/t/tutorial-creating-a-custom-google-in-site-search-for-rails/180865)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 0\
**Last updated:** [December 30, 2009, 7:43pm UTC](https://www.ruby-forum.com/t/tutorial-creating-a-custom-google-in-site-search-for-rails/180865 "2009-12-30T19:43:15Z")

</div>

Tutorial Purpose: This tutorial will help you create an in-site search box that users can type in to search within your site. The search will utilize google’s api search to find anything within your site, and return …

---

## [Controller named /2010](https://www.ruby-forum.com/t/controller-named-2010/180862)

<div class="topic-metadata">

**Author:** [@theduz](https://www.ruby-forum.com/u/theduz)\
**Replies:** 5\
**Last updated:** [December 30, 2009, 6:51pm UTC](https://www.ruby-forum.com/t/controller-named-2010/180862 "2009-12-30T18:51:22Z")

</div>

Hi, I’ve been asked to create a controller called 2010 on rails 2.3.2 but script/generate controller 2010 fails with wrong constant name 2010Helper I tried creating everything manually, but still receive a ‘wrong co…

---

## [Can i write programs in rails without scaffolding](https://www.ruby-forum.com/t/can-i-write-programs-in-rails-without-scaffolding/180855)

<div class="topic-metadata">

**Author:** [@basil](https://www.ruby-forum.com/u/basil)\
**Replies:** 4\
**Last updated:** [December 30, 2009, 5:21pm UTC](https://www.ruby-forum.com/t/can-i-write-programs-in-rails-without-scaffolding/180855 "2009-12-30T17:21:32Z")

</div>

hai friends i am fresher in rails and i want to know can i write application i ruby without scaffoldining plz post some links or any applications without using scffolding… – You received this message because you ar…

---

## [Mail now in ActionMailer](https://www.ruby-forum.com/t/mail-now-in-actionmailer/180834)

<div class="topic-metadata">

**Author:** [@Mikel\_L](https://www.ruby-forum.com/u/Mikel_L)\
**Replies:** 2\
**Last updated:** [December 30, 2009, 4:11pm UTC](https://www.ruby-forum.com/t/mail-now-in-actionmailer/180834 "2009-12-30T16:11:40Z")

</div>

OK everyone, so we finally have Mail merged into ActionMailer replacing out TMail This is for the 3.0 release, and not part of the 2.x tree. I am the TMail maintainer and I decided this year to write a ruby email ha…

---

## [Good RoR Oursourcing company](https://www.ruby-forum.com/t/good-ror-oursourcing-company/180792)

<div class="topic-metadata">

**Author:** [@bburcham](https://www.ruby-forum.com/u/bburcham)\
**Replies:** 10\
**Last updated:** [December 30, 2009, 2:56pm UTC](https://www.ruby-forum.com/t/good-ror-oursourcing-company/180792 "2009-12-30T14:56:06Z")

</div>

We are a startup in the US and want an application built in RoR. We area all business people and not IT people and we aren’t ready to bring software development in house. Anyone have good experiences with outsourced …

---

## [How to do collection\_select pulldown style="width:200px"?](https://www.ruby-forum.com/t/how-to-do-collection-select-pulldown-style-width-200px/79796)

<div class="topic-metadata">

**Author:** [@dan](https://www.ruby-forum.com/u/dan)\
**Replies:** 6\
**Last updated:** [December 30, 2009, 2:23pm UTC](https://www.ruby-forum.com/t/how-to-do-collection-select-pulldown-style-width-200px/79796 "2009-12-30T14:23:08Z")

</div>

Here’s an example of the code I’m trying to get working… \<%= collection\_select(‘book’, ‘book\_type\_id’, all\_book\_types, ‘id’, ‘name’, :prompt =\> “Select Book Type…”, :style =\> “width:200px” ) %\> I’ve tried a bunch of d…

---

## [Uploadify is not a function](https://www.ruby-forum.com/t/uploadify-is-not-a-function/176910)

<div class="topic-metadata">

**Author:** [@td919](https://www.ruby-forum.com/u/td919)\
**Replies:** 2\
**Last updated:** [December 30, 2009, 12:20pm UTC](https://www.ruby-forum.com/t/uploadify-is-not-a-function/176910 "2009-12-30T12:20:44Z")

</div>

I’ve been trying to get uploadify to work, but can’t. I am following the tutorial by John Nunemaker. Mine seems to be quite basic, but I just can’t figure why it wouldn’t work… In my layouts/application.html.erb \<%…

---

## [Rails i18n or globalization plugin](https://www.ruby-forum.com/t/rails-i18n-or-globalization-plugin/180848)

<div class="topic-metadata">

**Author:** [@sathish](https://www.ruby-forum.com/u/sathish)\
**Replies:** 0\
**Last updated:** [December 30, 2009, 11:24am UTC](https://www.ruby-forum.com/t/rails-i18n-or-globalization-plugin/180848 "2009-12-30T11:24:53Z")

</div>

Hi,I have been trying to adopt the globalization plug-in or Using Rails I18n for my application to make it internationalization. In both of the I18n and globalization,I have figured out the translation was done in mos…

---

## [Question on CRON](https://www.ruby-forum.com/t/question-on-cron/180838)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 3\
**Last updated:** [December 30, 2009, 10:36am UTC](https://www.ruby-forum.com/t/question-on-cron/180838 "2009-12-30T10:36:11Z")

</div>

Dear All, i m running cron task in my application using whenever gem. the below code runs the rake every month. every 1.month, :at =\> ‘11:55pm’ do but i want to run this rake on 1st date of every month. how can i do…

---

## [Do we use Rails ActiveRecord as a Hybrid Structure, i.e. Data Structure+Object?](https://www.ruby-forum.com/t/do-we-use-rails-activerecord-as-a-hybrid-structure-i-e-data-structure-object/180845)

<div class="topic-metadata">

**Author:** [@nasir](https://www.ruby-forum.com/u/nasir)\
**Replies:** 0\
**Last updated:** [December 30, 2009, 9:05am UTC](https://www.ruby-forum.com/t/do-we-use-rails-activerecord-as-a-hybrid-structure-i-e-data-structure-object/180845 "2009-12-30T09:05:28Z")

</div>

Hi Guys, I have posted the question whether we use Rails ActiveRecord as a Hybrid Structure, i.e. Data Structure+Objec, here What are your thoughts on this? It doesn’t matter whether we hijack the conversation here …

---

## [Best approach to pass hash type data in string form from Rails/Ruby to a C# app?](https://www.ruby-forum.com/t/best-approach-to-pass-hash-type-data-in-string-form-from-rails-ruby-to-a-c-app/180827)

<div class="topic-metadata">

**Author:** [@greghauptmann](https://www.ruby-forum.com/u/greghauptmann)\
**Replies:** 7\
**Last updated:** [December 30, 2009, 3:12am UTC](https://www.ruby-forum.com/t/best-approach-to-pass-hash-type-data-in-string-form-from-rails-ruby-to-a-c-app/180827 "2009-12-30T03:12:32Z")

</div>

Hi, I need to pass (via string content of a HTTP request/response body) name value pairs of data (like a hash) back from a Ruby on Rails server to a C# client. Anyone happen to know offhand what would be the best for…

---

## [SQL query problem](https://www.ruby-forum.com/t/sql-query-problem/180351)

<div class="topic-metadata">

**Author:** [@Learn\_by\_D](https://www.ruby-forum.com/u/Learn_by_D)\
**Replies:** 4\
**Last updated:** [December 30, 2009, 2:46am UTC](https://www.ruby-forum.com/t/sql-query-problem/180351 "2009-12-30T02:46:12Z")

</div>

Please help me with finding a SQL select statement for the following problems. I have two classes: Site and Link Table Link has two columns: linking\_site\_id, and linked\_site\_id I would like to find all the links in t…

---

## [AutoCompleter without the AutoComplete](https://www.ruby-forum.com/t/autocompleter-without-the-autocomplete/180831)

<div class="topic-metadata">

**Author:** [@Ruby\_on\_RailsS\_Talk](https://www.ruby-forum.com/u/Ruby_on_RailsS_Talk)\
**Replies:** 1\
**Last updated:** [December 30, 2009, 2:40am UTC](https://www.ruby-forum.com/t/autocompleter-without-the-autocomplete/180831 "2009-12-30T02:40:20Z")

</div>

Hi I’ve written a system which requires the entry of lots of customers. Trusting this to an OAP (I know!!!) it appears that I now have lots of duplicate customers … which is going to cause issues. I know I can use th…

---

## [How to interpret the log file's "View:" and "DB:" numbers?](https://www.ruby-forum.com/t/how-to-interpret-the-log-files-view-and-db-numbers/180833)

<div class="topic-metadata">

**Author:** [@robb](https://www.ruby-forum.com/u/robb)\
**Replies:** 1\
**Last updated:** [December 30, 2009, 2:36am UTC](https://www.ruby-forum.com/t/how-to-interpret-the-log-files-view-and-db-numbers/180833 "2009-12-30T02:36:14Z")

</div>

I’m seeing weird numbers come up in my production log. I’ve looked for some kind of authoritative document describing what they mean, but haven’t found it yet. Here are my best guesses: “Completed in 125ms (View: 40…

---

## [Windows XP - MySQL installed thru XAMPP](https://www.ruby-forum.com/t/windows-xp-mysql-installed-thru-xampp/180825)

<div class="topic-metadata">

**Author:** [@jamie](https://www.ruby-forum.com/u/jamie)\
**Replies:** 0\
**Last updated:** [December 29, 2009, 11:50pm UTC](https://www.ruby-forum.com/t/windows-xp-mysql-installed-thru-xampp/180825 "2009-12-29T23:50:33Z")

</div>

Hi, I’m a newbie, trying to get rails up and running on my Windows environment. I have previously installed XAMPP and have been using MySQL through that installation. Now that I’ve installed rails, I’m trying to run…

---

## [\[ANN\] Mongo3 - rule your mongoDB clusters!](https://www.ruby-forum.com/t/ann-mongo3-rule-your-mongodb-clusters/180824)

<div class="topic-metadata">

**Author:** [@derailed](https://www.ruby-forum.com/u/derailed)\
**Replies:** 0\
**Last updated:** [December 29, 2009, 10:45pm UTC](https://www.ruby-forum.com/t/ann-mongo3-rule-your-mongodb-clusters/180824 "2009-12-29T22:45:35Z")

</div>

If you mongo, please try mongo3 (www.mongo3.com) ! Mongo3 is a web app to administer you mongoDB clusters. Features: o Visualize your mongo landscape o Manage your dbs, collections and indexes o Bundled as a gem for…

---

## [Error when using facebooker](https://www.ruby-forum.com/t/error-when-using-facebooker/180805)

<div class="topic-metadata">

**Author:** [@fajrian](https://www.ruby-forum.com/u/fajrian)\
**Replies:** 1\
**Last updated:** [December 29, 2009, 10:19pm UTC](https://www.ruby-forum.com/t/error-when-using-facebooker/180805 "2009-12-29T22:19:45Z")

</div>

hi all, i am rails newbie. so, please be merciful if you found this question stupid :smiley: i want to ADD facebook capability to my project. fyi, my project is using prototype and openlayer. the amount of work done …

---

## [Missed elements in array](https://www.ruby-forum.com/t/missed-elements-in-array/180803)

<div class="topic-metadata">

**Author:** [@LeonS](https://www.ruby-forum.com/u/LeonS)\
**Replies:** 3\
**Last updated:** [December 29, 2009, 7:48pm UTC](https://www.ruby-forum.com/t/missed-elements-in-array/180803 "2009-12-29T19:48:13Z")

</div>

Hi, i despair in case of an array. I’ll take some data into an array, but when i iterate the array some elements of the array seems to be missed, but the missing element are displayed in the view. I’m using the Plug…

---

## [Showing the items visited for a non-logedin users](https://www.ruby-forum.com/t/showing-the-items-visited-for-a-non-logedin-users/180793)

<div class="topic-metadata">

**Author:** [@Wilhelm\_Longshanks](https://www.ruby-forum.com/u/Wilhelm_Longshanks)\
**Replies:** 1\
**Last updated:** [December 29, 2009, 7:14pm UTC](https://www.ruby-forum.com/t/showing-the-items-visited-for-a-non-logedin-users/180793 "2009-12-29T19:14:31Z")

</div>

Hi - I would like to implement a feature similar to “Items you have visited” in Amazon. The requirement is that the feature is also available for those who are not logged-in. I have a User and Item models. I use Rail…

---

## [Hello, help required](https://www.ruby-forum.com/t/hello-help-required/180809)

<div class="topic-metadata">

**Author:** [@Saj](https://www.ruby-forum.com/u/Saj)\
**Replies:** 1\
**Last updated:** [December 29, 2009, 6:07pm UTC](https://www.ruby-forum.com/t/hello-help-required/180809 "2009-12-29T18:07:32Z")

</div>

Hello I am new to Ruby on Rail. I am looking for some internet based resource, an eBook or a tutorials on RoR. I shall be thankful if someone help me out. Or If you want to suggest any alternative path to learn fast,…

---

## [Controller belongs\_to model?](https://www.ruby-forum.com/t/controller-belongs-to-model/180807)

<div class="topic-metadata">

**Author:** [@philswenson](https://www.ruby-forum.com/u/philswenson)\
**Replies:** 1\
**Last updated:** [December 29, 2009, 3:54pm UTC](https://www.ruby-forum.com/t/controller-belongs-to-model/180807 "2009-12-29T15:54:16Z")

</div>

I’ve never seen this before: class Admin::PaymentsController \< Admin::BaseController belongs\_to :order end What does this mean, exactly?! (This code is from Spree) Thanks! – You received this message because you …

---

## [Help with WebBrick](https://www.ruby-forum.com/t/help-with-webbrick/180801)

<div class="topic-metadata">

**Author:** [@RoRoRo](https://www.ruby-forum.com/u/RoRoRo)\
**Replies:** 1\
**Last updated:** [December 29, 2009, 3:08pm UTC](https://www.ruby-forum.com/t/help-with-webbrick/180801 "2009-12-29T15:08:01Z")

</div>

Anyone knows how to fix that? \[…\] /set.rb:202: \[BUG\] Segmentation fault ruby 1.8.7 (2009-06-12 patchlevel 174) \[i686-linux\] Aborted \[…\] and server shut down :frowning: – You received this message because you are …

---

## [How to get parameters to controller from view using \<input tag?](https://www.ruby-forum.com/t/how-to-get-parameters-to-controller-from-view-using-input-tag/180759)

<div class="topic-metadata">

**Author:** [@veronika](https://www.ruby-forum.com/u/veronika)\
**Replies:** 2\
**Last updated:** [December 29, 2009, 1:39pm UTC](https://www.ruby-forum.com/t/how-to-get-parameters-to-controller-from-view-using-input-tag/180759 "2009-12-29T13:39:39Z")

</div>

Hello! I’m everywhere searching the answer for my question. How to get parameters to controller from view using \<input tag. But I want to do this without db. I have the code: class TranslateController \< ApplicationCon…

---

## [Not equal to query](https://www.ruby-forum.com/t/not-equal-to-query/180799)

<div class="topic-metadata">

**Author:** [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Replies:** 6\
**Last updated:** [December 29, 2009, 11:35am UTC](https://www.ruby-forum.com/t/not-equal-to-query/180799 "2009-12-29T11:35:05Z")

</div>

Hi Champs, Hanging out with a problem… I can find out the name of cities with City.find(:all)… I can find out the Bangalore city with City.find\_by\_name(“Bangalore”). But what query i have to write to find the name of…

---

## [Handling initial user setup (authlogic)](https://www.ruby-forum.com/t/handling-initial-user-setup-authlogic/180737)

<div class="topic-metadata">

**Author:** [@brianp](https://www.ruby-forum.com/u/brianp)\
**Replies:** 2\
**Last updated:** [December 29, 2009, 10:04am UTC](https://www.ruby-forum.com/t/handling-initial-user-setup-authlogic/180737 "2009-12-29T10:04:50Z")

</div>

Hey, I was just wondering what you do to handle the initial user setup with a project using authlogic. I’m still in development but what i find annoying is the create new users function is obviously kept in the admin…

---

## [Problems with thumbnails, attachment\_fu](https://www.ruby-forum.com/t/problems-with-thumbnails-attachment-fu/180795)

<div class="topic-metadata">

**Author:** [@brianp](https://www.ruby-forum.com/u/brianp)\
**Replies:** 0\
**Last updated:** [December 29, 2009, 9:58am UTC](https://www.ruby-forum.com/t/problems-with-thumbnails-attachment-fu/180795 "2009-12-29T09:58:59Z")

</div>

Hey, I’ve had this problem for about 2 months and never solved it. Image model: has\_attachment :content\_type =\> :image, :max\_size =\> 7.megabytes, :resize\_to =\> ‘1000x100\>’, :storage =\> :file\_system, :thumbnails…

---

## [Has\_many with different primary key](https://www.ruby-forum.com/t/has-many-with-different-primary-key/126760)

<div class="topic-metadata">

**Author:** [@patched](https://www.ruby-forum.com/u/patched)\
**Replies:** 13\
**Last updated:** [December 29, 2009, 9:55am UTC](https://www.ruby-forum.com/t/has-many-with-different-primary-key/126760 "2009-12-29T09:55:05Z")

</div>

I’ve got quite the ActiveRecord challenge, any help would be appreciated. In my current project Companies can have many reviews. class Company \< ActiveRecord::Base has\_many :reviews, :as =\> :reviewable end However,…

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

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