# Rails

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

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

---

## [URL rewrite to force 'www' and '.html'](https://www.ruby-forum.com/t/url-rewrite-to-force-www-and-html/158025)

<div class="topic-metadata">

**Author:** [@adeel](https://www.ruby-forum.com/u/adeel)\
**Replies:** 1\
**Last updated:** [January 18, 2009, 2:10pm UTC](https://www.ruby-forum.com/t/url-rewrite-to-force-www-and-html/158025 "2009-01-18T14:10:18Z")

</div>

For SEO, I need to force the URL to contain ‘www’ so my app always appears in the browser as www.example.com and not ‘example.com’. I also need the filename (ex. index.html) to appear completely, and not be hidden. C…

---

## [OT: hosted full text search](https://www.ruby-forum.com/t/ot-hosted-full-text-search/158022)

<div class="topic-metadata">

**Author:** [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Replies:** 1\
**Last updated:** [January 18, 2009, 1:35pm UTC](https://www.ruby-forum.com/t/ot-hosted-full-text-search/158022 "2009-01-18T13:35:34Z")

</div>

Does anyone know of a hosted full text search solution with an api for indexing arbitrary data? I’ve seen lots of stuff for web indexing, but that’s all I can find. Chris

---

## [No call funtion](https://www.ruby-forum.com/t/no-call-funtion/157987)

<div class="topic-metadata">

**Author:** [@maite](https://www.ruby-forum.com/u/maite)\
**Replies:** 3\
**Last updated:** [January 18, 2009, 12:20pm UTC](https://www.ruby-forum.com/t/no-call-funtion/157987 "2009-01-18T12:20:57Z")

</div>

hello everybody I have this in my view \<tr id= "id\_\<%= x.nombre%\>"\> \<td width="200"\>\<%= x.nombre%\>\</td\> \<td width="10"\>\<%= link\_to\_remote image\_tag("delete.png"), :url=\>{:controller=\>“merca\_usuarios”, :actio…

---

## [After\_save -- stack level too deep](https://www.ruby-forum.com/t/after-save-stack-level-too-deep/158030)

<div class="topic-metadata">

**Author:** [@Neal\_L](https://www.ruby-forum.com/u/Neal_L)\
**Replies:** 2\
**Last updated:** [January 18, 2009, 7:55am UTC](https://www.ruby-forum.com/t/after-save-stack-level-too-deep/158030 "2009-01-18T07:55:46Z")

</div>

Hi all, I’m running into a brick wall trying to figure out my problem here. I have a model that has a boolean property called “paid”. I’d like to add the following to my model: def after\_save self.amount == self.s…

---

## [Session\[:user\]](https://www.ruby-forum.com/t/session-user/109575)

<div class="topic-metadata">

**Author:** [@PatRoy](https://www.ruby-forum.com/u/PatRoy)\
**Replies:** 3\
**Last updated:** [January 18, 2009, 7:52am UTC](https://www.ruby-forum.com/t/session-user/109575 "2009-01-18T07:52:15Z")

</div>

Hi, When I log in from a form post to session/create there’s a call to User.authenticate (which in turn puts a :user variable in the session from the self.current\_user call. My issue is when I call self.current\_user …

---

## [Class method finder and undefined method from association](https://www.ruby-forum.com/t/class-method-finder-and-undefined-method-from-association/157474)

<div class="topic-metadata">

**Author:** [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Replies:** 2\
**Last updated:** [January 18, 2009, 7:28am UTC](https://www.ruby-forum.com/t/class-method-finder-and-undefined-method-from-association/157474 "2009-01-18T07:28:51Z")

</div>

I’m trying to create a method on a model (Note) that finds a subset of records, but banging my head against a brick wall. The code so far: class Note belongs\_to :person def self.can\_be\_viewed find(:all, :conditions …

---

## [User Profiles Not Working in Production](https://www.ruby-forum.com/t/user-profiles-not-working-in-production/158031)

<div class="topic-metadata">

**Author:** [@Leximo](https://www.ruby-forum.com/u/Leximo)\
**Replies:** 0\
**Last updated:** [January 18, 2009, 6:01am UTC](https://www.ruby-forum.com/t/user-profiles-not-working-in-production/158031 "2009-01-18T06:01:11Z")

</div>

I have an app that lets users have profiles. Everything works fine in development, but its not working in production. When you navigate to a user profile, an error occurs. For example “http://leximo.org/users/Druwerd” …

---

## [ActionMailer v2.x changes to formatting?](https://www.ruby-forum.com/t/actionmailer-v2-x-changes-to-formatting/158026)

<div class="topic-metadata">

**Author:** [@lunaclaire](https://www.ruby-forum.com/u/lunaclaire)\
**Replies:** 0\
**Last updated:** [January 18, 2009, 4:39am UTC](https://www.ruby-forum.com/t/actionmailer-v2-x-changes-to-formatting/158026 "2009-01-18T04:39:59Z")

</div>

I’ve been trying to track down a formatting problem in my plain text emails that I’m sending out. After a couple hours, I think it might be due to the version of ActionMailer that’s being used… The problem is that whe…

---

## [ActiveResource and file uploads](https://www.ruby-forum.com/t/activeresource-and-file-uploads/158028)

<div class="topic-metadata">

**Author:** [@liquideclm](https://www.ruby-forum.com/u/liquideclm)\
**Replies:** 0\
**Last updated:** [January 18, 2009, 4:35am UTC](https://www.ruby-forum.com/t/activeresource-and-file-uploads/158028 "2009-01-18T04:35:18Z")

</div>

I am trying to figure out how I could ActiveResource with one of my web services. I have a desktop application which basically sends and receives data to and from the server via AMF. (It is an Adobe AIR application fo…

---

## [Whats wrong with my collection\_select](https://www.ruby-forum.com/t/whats-wrong-with-my-collection-select/157989)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 4\
**Last updated:** [January 18, 2009, 4:14am UTC](https://www.ruby-forum.com/t/whats-wrong-with-my-collection-select/157989 "2009-01-18T04:14:31Z")

</div>

Hi I have two tables Projects and Tasks each with their own respective Ms Vs and Cs In my add task view I want to have a drop down box with Project names. I cant get it to work though. Ive read posts here, the api and…

---

## [Request type error thrown on delete request](https://www.ruby-forum.com/t/request-type-error-thrown-on-delete-request/158023)

<div class="topic-metadata">

**Author:** [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Replies:** 0\
**Last updated:** [January 18, 2009, 2:46am UTC](https://www.ruby-forum.com/t/request-type-error-thrown-on-delete-request/158023 "2009-01-18T02:46:48Z")

</div>

For some odd reason when I make javascript delete requests the destroy is performed, but then I get an error message back saying that only get, delete and put requests are allowed. Here is some global js that binds al…

---

## [My first deployment - and yes I read the tutorials (=?)](https://www.ruby-forum.com/t/my-first-deployment-and-yes-i-read-the-tutorials/156163)

<div class="topic-metadata">

**Author:** [@ryanoverton](https://www.ruby-forum.com/u/ryanoverton)\
**Replies:** 1\
**Last updated:** [January 18, 2009, 1:49am UTC](https://www.ruby-forum.com/t/my-first-deployment-and-yes-i-read-the-tutorials/156163 "2009-01-18T01:49:28Z")

</div>

So I have been tinkering with Rails all week - I’m a designer, not a developer, but I’m looking to expand my knowledge. I created an instance of Radiant, the cms, and am looking to fiddle with it and then try putting …

---

## [HABTM and Check Boxes (Yet Another thread on this)](https://www.ruby-forum.com/t/habtm-and-check-boxes-yet-another-thread-on-this/157834)

<div class="topic-metadata">

**Author:** [@enzor](https://www.ruby-forum.com/u/enzor)\
**Replies:** 4\
**Last updated:** [January 17, 2009, 9:05pm UTC](https://www.ruby-forum.com/t/habtm-and-check-boxes-yet-another-thread-on-this/157834 "2009-01-17T21:05:27Z")

</div>

Hi there, it’s an afternoon that i’m destroying my head on this, and i’ve decided to ask to you all . I’ve got to do some check box lists for a modified substruct version i’m doing, right now, i’m interested to inser…

---

## [Question on Data Concurrency](https://www.ruby-forum.com/t/question-on-data-concurrency/158001)

<div class="topic-metadata">

**Author:** [@srj](https://www.ruby-forum.com/u/srj)\
**Replies:** 1\
**Last updated:** [January 17, 2009, 5:51pm UTC](https://www.ruby-forum.com/t/question-on-data-concurrency/158001 "2009-01-17T17:51:49Z")

</div>

In Rails 2.2.2, if I retrieve a record using a Model.find method (any of the finds), make changes to it, and then save it, is there a possibility that another user (on a different thread, maybe a faster machine) coul…

---

## [Take a picture from the webcam and save it into the database](https://www.ruby-forum.com/t/take-a-picture-from-the-webcam-and-save-it-into-the-database/157999)

<div class="topic-metadata">

**Author:** [@consider](https://www.ruby-forum.com/u/consider)\
**Replies:** 0\
**Last updated:** [January 17, 2009, 5:12pm UTC](https://www.ruby-forum.com/t/take-a-picture-from-the-webcam-and-save-it-into-the-database/157999 "2009-01-17T17:12:06Z")

</div>

Hi everyone, I’m trying to create an application to take pictures from the users’ webcam and save them into the database. This is my actionscript code : Code : import flash.display.BitmapData; localCamera = Camera.…

---

## [Created\_at date/time if off by UTC-5 hours?](https://www.ruby-forum.com/t/created-at-date-time-if-off-by-utc-5-hours/157995)

<div class="topic-metadata">

**Author:** [@srj](https://www.ruby-forum.com/u/srj)\
**Replies:** 0\
**Last updated:** [January 17, 2009, 3:40pm UTC](https://www.ruby-forum.com/t/created-at-date-time-if-off-by-utc-5-hours/157995 "2009-01-17T15:40:13Z")

</div>

Hello - My model has created\_at and updated\_at which get set automatically, as expected, but the time is 5 hours off. For example, if I create a new record at 7:15:25 AM the created\_at time shows 12:15:25. I suspect…

---

## [Install older version of rails FAILED](https://www.ruby-forum.com/t/install-older-version-of-rails-failed/157992)

<div class="topic-metadata">

**Author:** [@roseanne](https://www.ruby-forum.com/u/roseanne)\
**Replies:** 5\
**Last updated:** [January 17, 2009, 2:45pm UTC](https://www.ruby-forum.com/t/install-older-version-of-rails-failed/157992 "2009-01-17T14:45:52Z")

</div>

Help! I need your help!!! I have an old rail app which I made a few years ago. Never touched rails since. Now, I need to make it work again. I used the above command to install rails, but I still get rails 2.1.1 gem…

---

## [Any webiste available for posting ruby on rails articles](https://www.ruby-forum.com/t/any-webiste-available-for-posting-ruby-on-rails-articles/157955)

<div class="topic-metadata">

**Author:** [@lostwarrior](https://www.ruby-forum.com/u/lostwarrior)\
**Replies:** 1\
**Last updated:** [January 17, 2009, 2:19pm UTC](https://www.ruby-forum.com/t/any-webiste-available-for-posting-ruby-on-rails-articles/157955 "2009-01-17T14:19:52Z")

</div>

where to submit ruby on rails articles in net.for asp.net i have seen some sites like vbdotnetheaven.Is there any webiste available for posting ruby on rails articles

---

## [Newbie to Ruby on Rails](https://www.ruby-forum.com/t/newbie-to-ruby-on-rails/157944)

<div class="topic-metadata">

**Author:** [@ramya](https://www.ruby-forum.com/u/ramya)\
**Replies:** 3\
**Last updated:** [January 17, 2009, 2:11pm UTC](https://www.ruby-forum.com/t/newbie-to-ruby-on-rails/157944 "2009-01-17T14:11:03Z")

</div>

Hi there, I am a newbie to ruby on rails.I have started with Ruby syntax and kind of done with it. I am jumping to Ruby on Rails can any one send me some real good pdf or tutorials for me start. Regards Ramya

---

## [Problem while i submit the form](https://www.ruby-forum.com/t/problem-while-i-submit-the-form/157981)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 2\
**Last updated:** [January 17, 2009, 12:26pm UTC](https://www.ruby-forum.com/t/problem-while-i-submit-the-form/157981 "2009-01-17T12:26:44Z")

</div>

Hi In my form i m using link\_to helper to pass the user\_id and user\_type.like below i used \<%= link\_to(‘assign’,{ :action =\> :privilege\_assign,:id =\> user.id, :type =\> “1” } ) -%\> it passes like below http://192.16…

---

## [How to refresh Image through ajax request](https://www.ruby-forum.com/t/how-to-refresh-image-through-ajax-request/157979)

<div class="topic-metadata">

**Author:** [@sauravsuman012](https://www.ruby-forum.com/u/sauravsuman012)\
**Replies:** 1\
**Last updated:** [January 17, 2009, 12:21pm UTC](https://www.ruby-forum.com/t/how-to-refresh-image-through-ajax-request/157979 "2009-01-17T12:21:51Z")

</div>

Hi all , I am very new for ruby. I am using Ajax Request(Rmagick in controller) for changing image on my DIV but the problem is it refresh for first time only then after i have to refresh the browser always. If anybod…

---

## [Database and singularity issues](https://www.ruby-forum.com/t/database-and-singularity-issues/157978)

<div class="topic-metadata">

**Author:** [@awhayes](https://www.ruby-forum.com/u/awhayes)\
**Replies:** 1\
**Last updated:** [January 17, 2009, 12:18pm UTC](https://www.ruby-forum.com/t/database-and-singularity-issues/157978 "2009-01-17T12:18:16Z")

</div>

I’m writing my first rails app and following a tutorial to guide me. I really like what I see until… I get to the part where it tells me I have to follow a certain naming scheme for my database. Here’s my questions: …

---

## [Problem with blog demo app](https://www.ruby-forum.com/t/problem-with-blog-demo-app/157829)

<div class="topic-metadata">

**Author:** [@technology](https://www.ruby-forum.com/u/technology)\
**Replies:** 3\
**Last updated:** [January 17, 2009, 12:12pm UTC](https://www.ruby-forum.com/t/problem-with-blog-demo-app/157829 "2009-01-17T12:12:21Z")

</div>

http://guides.rubyonrails.org/getting\_started\_with\_rails.html The command “rake db.create” shown in section “6.1. Running a migration” is failing as follows: bash-3.2$ pwd /Users/jander/work/blog bash-3.2$ rake db.c…

---

## [Problem with will\_paginate](https://www.ruby-forum.com/t/problem-with-will-paginate/156249)

<div class="topic-metadata">

**Author:** [@nihil\_chauhan](https://www.ruby-forum.com/u/nihil_chauhan)\
**Replies:** 6\
**Last updated:** [January 17, 2009, 9:00am UTC](https://www.ruby-forum.com/t/problem-with-will-paginate/156249 "2009-01-17T09:00:41Z")

</div>

hiii all i am new to ruby on rails. i am facing a problem with pagination. i have a page on which i have three partial and all have pagination. if i click on one partial’s next page it will update all the three parti…

---

## [How do i merge records together](https://www.ruby-forum.com/t/how-do-i-merge-records-together/157951)

<div class="topic-metadata">

**Author:** [@timdunn2](https://www.ruby-forum.com/u/timdunn2)\
**Replies:** 2\
**Last updated:** [January 17, 2009, 6:13am UTC](https://www.ruby-forum.com/t/how-do-i-merge-records-together/157951 "2009-01-17T06:13:42Z")

</div>

Hi I am Tim Dunn and am working on a web app to help people research their family history. I am wondering how to merge records from the same table into one record based on if they are exact or partial matches in any g…

---

## [Aggregation: problem with uninitialized composed\_of object](https://www.ruby-forum.com/t/aggregation-problem-with-uninitialized-composed-of-object/157940)

<div class="topic-metadata">

**Author:** [@Adriano](https://www.ruby-forum.com/u/Adriano)\
**Replies:** 1\
**Last updated:** [January 17, 2009, 2:18am UTC](https://www.ruby-forum.com/t/aggregation-problem-with-uninitialized-composed-of-object/157940 "2009-01-17T02:18:39Z")

</div>

Hi, I’m getting this error: p = Plan.new p.amount TypeError: wrong argument type String (expected Fixnum) Apparently this happens because the aggregation isn’t initialized. Here’s the code: class Plan \< Active…

---

## [ActiveRecord support for find by regular expressions? Is this possible? / Is there a plugin for thi](https://www.ruby-forum.com/t/activerecord-support-for-find-by-regular-expressions-is-this-possible-is-there-a-plugin-for-thi/157858)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 4\
**Last updated:** [January 17, 2009, 1:38am UTC](https://www.ruby-forum.com/t/activerecord-support-for-find-by-regular-expressions-is-this-possible-is-there-a-plugin-for-thi/157858 "2009-01-17T01:38:51Z")

</div>

Hi, Is there any way of extending ActiveRecord to do something like: \<model\_object\>find\_by\_description\_regex(/.find this.) ?? That is ActiveRecord support for find via use of regular expressions? Perhaps a plugin? …

---

## [RedCloth gem/pluging not working in production mode](https://www.ruby-forum.com/t/redcloth-gem-pluging-not-working-in-production-mode/157727)

<div class="topic-metadata">

**Author:** [@ptremblett](https://www.ruby-forum.com/u/ptremblett)\
**Replies:** 4\
**Last updated:** [January 17, 2009, 12:38am UTC](https://www.ruby-forum.com/t/redcloth-gem-pluging-not-working-in-production-mode/157727 "2009-01-17T00:38:37Z")

</div>

Hi, I installed RedCloth 4.1.1 using - gem install RedCloth - This has worked fine on my development (webbrick) machine. I then did the same on my production machine which is using Apache and Passenger. However the p…

---

## [Extending a wizard](https://www.ruby-forum.com/t/extending-a-wizard/157456)

<div class="topic-metadata">

**Author:** [@Commander\_J](https://www.ruby-forum.com/u/Commander_J)\
**Replies:** 3\
**Last updated:** [January 16, 2009, 11:58pm UTC](https://www.ruby-forum.com/t/extending-a-wizard/157456 "2009-01-16T23:58:11Z")

</div>

Hi, I’ve created a simple wizard that collects data in 3 steps and then posts it to a Create action. Validation is only performed when the data is posted. However, I would like the individual steps to be validated …

---

## [Drag and drop sorting not working at all?](https://www.ruby-forum.com/t/drag-and-drop-sorting-not-working-at-all/157961)

<div class="topic-metadata">

**Author:** [@taylorstrait](https://www.ruby-forum.com/u/taylorstrait)\
**Replies:** 1\
**Last updated:** [January 16, 2009, 11:34pm UTC](https://www.ruby-forum.com/t/drag-and-drop-sorting-not-working-at-all/157961 "2009-01-16T23:34:54Z")

</div>

Silly though it may be, I can’t get a list to be draggable. I haven’t set up the update partials but I can’t even get the elements to become draggable. Here is what my HTML output is: John E…

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

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