# Rails

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

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

---

## [How to search from Flex 3 (NEWBIE)](https://www.ruby-forum.com/t/how-to-search-from-flex-3-newbie/173789)

<div class="topic-metadata">

**Author:** [@c0y0tex](https://www.ruby-forum.com/u/c0y0tex)\
**Replies:** 6\
**Last updated:** [August 18, 2009, 6:24pm UTC](https://www.ruby-forum.com/t/how-to-search-from-flex-3-newbie/173789 "2009-08-18T18:24:05Z")

</div>

Hi, first of all let me say that I’m a Flex developer just getting into the awesome world of Ruby on Rails, so I consider myself a newbie on RoR. what I need to do is to search for a specific row on the table and retu…

---

## [Condition in validation](https://www.ruby-forum.com/t/condition-in-validation/173888)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 8\
**Last updated:** [August 18, 2009, 5:50pm UTC](https://www.ruby-forum.com/t/condition-in-validation/173888 "2009-08-18T17:50:34Z")

</div>

Is this right? validates\_uniqueness\_of :email, :message =\> “Email taken”, :unless =\> :email == ‘removed\_email\_address@domain.invalid’

---

## [Passenger - bignum too big to convert into \`long'](https://www.ruby-forum.com/t/passenger-bignum-too-big-to-convert-into-long/173897)

<div class="topic-metadata">

**Author:** [@headache](https://www.ruby-forum.com/u/headache)\
**Replies:** 2\
**Last updated:** [August 18, 2009, 5:09pm UTC](https://www.ruby-forum.com/t/passenger-bignum-too-big-to-convert-into-long/173897 "2009-08-18T17:09:52Z")

</div>

I have a very strange problem and can’t seem to figure it out. I have passenger 2.2.4 and apache 2.2 running a rails application. It ran fine for weeks when I decided to update Apache. I might also have messed with th…

---

## [Link\_to with span](https://www.ruby-forum.com/t/link-to-with-span/173926)

<div class="topic-metadata">

**Author:** [@pmckinstry](https://www.ruby-forum.com/u/pmckinstry)\
**Replies:** 1\
**Last updated:** [August 18, 2009, 4:40pm UTC](https://www.ruby-forum.com/t/link-to-with-span/173926 "2009-08-18T16:40:23Z")

</div>

Hi there, I want to create a link with a ‘span’ inside such as Home I’m trying to do it so that it highlights the current navigation, using something I found online I have this. def section\_link(name,options) if op…

---

## [Will\_paginate with :select](https://www.ruby-forum.com/t/will-paginate-with-select/173944)

<div class="topic-metadata">

**Author:** [@aldoitalo](https://www.ruby-forum.com/u/aldoitalo)\
**Replies:** 0\
**Last updated:** [August 18, 2009, 4:23pm UTC](https://www.ruby-forum.com/t/will-paginate-with-select/173944 "2009-08-18T16:23:42Z")

</div>

i have tryed to use: @my\_object = Myclass.paginate(:select =\> “id, title, position”, :page =\> params\[:page\]||false, :per\_page =\> @value\_per\_page ) but the query exctract all the fields. what is the right sintax to ob…

---

## [Comatose with application controller and authlogic](https://www.ruby-forum.com/t/comatose-with-application-controller-and-authlogic/173942)

<div class="topic-metadata">

**Author:** [@Abhishek\_shukla](https://www.ruby-forum.com/u/Abhishek_shukla)\
**Replies:** 0\
**Last updated:** [August 18, 2009, 4:19pm UTC](https://www.ruby-forum.com/t/comatose-with-application-controller-and-authlogic/173942 "2009-08-18T16:19:53Z")

</div>

Hello friends, Rails versuib 2.1.1 Comatose: 2.0.5 Hello friends, I am not able to call any of the method which is declared in ApplicationController from ComatoseAdminController, need your help to solve the proble…

---

## [Paging usign ajax](https://www.ruby-forum.com/t/paging-usign-ajax/173932)

<div class="topic-metadata">

**Author:** [@wap](https://www.ruby-forum.com/u/wap)\
**Replies:** 5\
**Last updated:** [August 18, 2009, 4:04pm UTC](https://www.ruby-forum.com/t/paging-usign-ajax/173932 "2009-08-18T16:04:05Z")

</div>

Hello guys Any one known how to do paging using ajax my project fully using ajax.

---

## [Logging errors with Rails logger](https://www.ruby-forum.com/t/logging-errors-with-rails-logger/173940)

<div class="topic-metadata">

**Author:** [@pyr0](https://www.ruby-forum.com/u/pyr0)\
**Replies:** 0\
**Last updated:** [August 18, 2009, 3:32pm UTC](https://www.ruby-forum.com/t/logging-errors-with-rails-logger/173940 "2009-08-18T15:32:29Z")

</div>

Coming from the java log4j world, the default logging functionality in rails seems a bit primitive to me, but it might have to do with my lack of knowledge on the subject. Currently I would log an exception like: b…

---

## [WARNING: Can't mass-assign these protected attributes:](https://www.ruby-forum.com/t/warning-cant-mass-assign-these-protected-attributes/173934)

<div class="topic-metadata">

**Author:** [@Ritvvij](https://www.ruby-forum.com/u/Ritvvij)\
**Replies:** 3\
**Last updated:** [August 18, 2009, 3:28pm UTC](https://www.ruby-forum.com/t/warning-cant-mass-assign-these-protected-attributes/173934 "2009-08-18T15:28:23Z")

</div>

Hi, Suddenly all the attributes in all my models have become protected and I cannot save anything. Of course a solution is to add attr\_accessor for all the atttributes in all the models. But this was not the case bef…

---

## [Picture upload](https://www.ruby-forum.com/t/picture-upload/173895)

<div class="topic-metadata">

**Author:** [@maniga](https://www.ruby-forum.com/u/maniga)\
**Replies:** 7\
**Last updated:** [August 18, 2009, 1:16pm UTC](https://www.ruby-forum.com/t/picture-upload/173895 "2009-08-18T13:16:04Z")

</div>

Hi everybody! I’m new in programming Ruby on Rails, and I have a big problem with a picture upload. I like to save thumbnails in the directory structure and save the image name in the database. So that’s what I’ve do…

---

## [How show validation errors in form\_remote\_tag?](https://www.ruby-forum.com/t/how-show-validation-errors-in-form-remote-tag/173832)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 4\
**Last updated:** [August 18, 2009, 11:14am UTC](https://www.ruby-forum.com/t/how-show-validation-errors-in-form-remote-tag/173832 "2009-08-18T11:14:58Z")

</div>

I suspect this has been asked 400 times, but Google yields 2-3 rather complex gymnastics in blogs (and possibly dated), and searching list archives on ruby-forum proves kinda useless. Using standard forms, it’s fairly…

---

## [Receiving emails?](https://www.ruby-forum.com/t/receiving-emails/173917)

<div class="topic-metadata">

**Author:** [@Siddarth\_Chandrasek](https://www.ruby-forum.com/u/Siddarth_Chandrasek)\
**Replies:** 1\
**Last updated:** [August 18, 2009, 10:11am UTC](https://www.ruby-forum.com/t/receiving-emails/173917 "2009-08-18T10:11:42Z")

</div>

I’m trying to write a mailer daemon of sorts. Here, I’m trying to look through every email received in some inbox by searching through the message body for a certain keyword. If the keyword was mentioned, an appropria…

---

## [Schema\_migrations and schema\_info](https://www.ruby-forum.com/t/schema-migrations-and-schema-info/157199)

<div class="topic-metadata">

**Author:** [@antonaylward](https://www.ruby-forum.com/u/antonaylward)\
**Replies:** 1\
**Last updated:** [August 18, 2009, 10:03am UTC](https://www.ruby-forum.com/t/schema-migrations-and-schema-info/157199 "2009-08-18T10:03:05Z")

</div>

i’m using Aptana Studio for developing my rails application, and it generates migrations files with names like 20090107231713\_name\_of\_migration. Sequence number of migration is generated from current timestamp. In my …

---

## [Pagination problem](https://www.ruby-forum.com/t/pagination-problem/173914)

<div class="topic-metadata">

**Author:** [@venkat\_ruby](https://www.ruby-forum.com/u/venkat_ruby)\
**Replies:** 4\
**Last updated:** [August 18, 2009, 9:57am UTC](https://www.ruby-forum.com/t/pagination-problem/173914 "2009-08-18T09:57:38Z")

</div>

Hi, please help… In controller… def index @customers = Customer.find(:all) pagination code here… end In index.html.erb Displayes list of customers and has pagination 1,2,3,4…etc. On clicking page 2, it will agai…

---

## [Resources, controllers and models mapping](https://www.ruby-forum.com/t/resources-controllers-and-models-mapping/173862)

<div class="topic-metadata">

**Author:** [@marmolin](https://www.ruby-forum.com/u/marmolin)\
**Replies:** 4\
**Last updated:** [August 18, 2009, 9:50am UTC](https://www.ruby-forum.com/t/resources-controllers-and-models-mapping/173862 "2009-08-18T09:50:37Z")

</div>

I have a person table and an event table (and many mores, but these two illustrates my problem) A person has many events I have a person resource and an event resource to manage the records in the tables Now I also …

---

## [\[JOBS} In need of an experienced Ruby On Rails and Ecommerce Developer](https://www.ruby-forum.com/t/jobs-in-need-of-an-experienced-ruby-on-rails-and-ecommerce-developer/173920)

<div class="topic-metadata">

**Author:** [@CALIWOOD](https://www.ruby-forum.com/u/CALIWOOD)\
**Replies:** 0\
**Last updated:** [August 18, 2009, 9:34am UTC](https://www.ruby-forum.com/t/jobs-in-need-of-an-experienced-ruby-on-rails-and-ecommerce-developer/173920 "2009-08-18T09:34:48Z")

</div>

Dynamic small startup company looking for an experienced Ruby on Rails web developer to complete and manage the company’s website. Must also have experience with ecommerce and online merchant processing. Company is a…

---

## [Actionmailer ignores return-path setting](https://www.ruby-forum.com/t/actionmailer-ignores-return-path-setting/173916)

<div class="topic-metadata">

**Author:** [@ACTRAiSER](https://www.ruby-forum.com/u/ACTRAiSER)\
**Replies:** 0\
**Last updated:** [August 18, 2009, 9:18am UTC](https://www.ruby-forum.com/t/actionmailer-ignores-return-path-setting/173916 "2009-08-18T09:18:24Z")

</div>

Hello, i have the problem that i want to set the return-path to the envelope of outgoing emails so bounces can be handled. I tried to set the header as followed in my mailer class: def newsletter subject ‘subj…

---

## [Insert record in mysql](https://www.ruby-forum.com/t/insert-record-in-mysql/173915)

<div class="topic-metadata">

**Author:** [@wap](https://www.ruby-forum.com/u/wap)\
**Replies:** 0\
**Last updated:** [August 18, 2009, 8:46am UTC](https://www.ruby-forum.com/t/insert-record-in-mysql/173915 "2009-08-18T08:46:18Z")

</div>

Hello All i want to insert multiple record in 1 column. i upload multiple image it’s name i want to store for ex. a.jpg,b.gif,c.png like this my html code is like this Image : \<%= f.file\_field :image,:name =\> "ser…

---

## [Method to display sql queries](https://www.ruby-forum.com/t/method-to-display-sql-queries/173863)

<div class="topic-metadata">

**Author:** [@anandhkumar](https://www.ruby-forum.com/u/anandhkumar)\
**Replies:** 3\
**Last updated:** [August 18, 2009, 6:43am UTC](https://www.ruby-forum.com/t/method-to-display-sql-queries/173863 "2009-08-18T06:43:53Z")

</div>

Hi everyone Is there any method in RoR to extract the SQL query from model class and display it in the browser… Any help would be appreciated… Thanks Anandh

---

## [Increment counter on download](https://www.ruby-forum.com/t/increment-counter-on-download/173910)

<div class="topic-metadata">

**Author:** [@railslist](https://www.ruby-forum.com/u/railslist)\
**Replies:** 5\
**Last updated:** [August 18, 2009, 6:24am UTC](https://www.ruby-forum.com/t/increment-counter-on-download/173910 "2009-08-18T06:24:21Z")

</div>

i am offering my site visitors a download of zip file. when someone downloads it, i want to increment a counter and update db. how do i do that?

---

## [Render to an anchor?](https://www.ruby-forum.com/t/render-to-an-anchor/66683)

<div class="topic-metadata">

**Author:** [@Brittain](https://www.ruby-forum.com/u/Brittain)\
**Replies:** 2\
**Last updated:** [August 18, 2009, 2:15am UTC](https://www.ruby-forum.com/t/render-to-an-anchor/66683 "2009-08-18T02:15:32Z")

</div>

Simple problem, I want to render a .rhtml file and have it jump to an anchor. Something like: http://localhost:3000/convs/show/170#conv-170-6887 Tried borrowing the URL\_FOR style: render :action =\> show, :anchor =\> …

---

## [Restful question](https://www.ruby-forum.com/t/restful-question/173903)

<div class="topic-metadata">

**Author:** [@mpaxton](https://www.ruby-forum.com/u/mpaxton)\
**Replies:** 0\
**Last updated:** [August 18, 2009, 1:40am UTC](https://www.ruby-forum.com/t/restful-question/173903 "2009-08-18T01:40:23Z")

</div>

So I have an index.html.erb form and I’m trying to link it to an email form I created. I used the link below: \<%= link\_to ‘Email us’, contact\_number\_path %\> now I believe the layout is something like this: \<%= link\_t…

---

## [Controller mail method](https://www.ruby-forum.com/t/controller-mail-method/173904)

<div class="topic-metadata">

**Author:** [@mpaxton](https://www.ruby-forum.com/u/mpaxton)\
**Replies:** 1\
**Last updated:** [August 18, 2009, 1:35am UTC](https://www.ruby-forum.com/t/controller-mail-method/173904 "2009-08-18T01:35:45Z")

</div>

I have the following method in my controller: def send\_contact\_request @contact = Contact.new(params\[‘contact’\]) if @contact.save begin Mailer::deliver\_contact\_message(@contact) flash\[:notice\] = "Success!â€ redir…

---

## [Semicolons in request parameter in Rails 2.3](https://www.ruby-forum.com/t/semicolons-in-request-parameter-in-rails-2-3/173734)

<div class="topic-metadata">

**Author:** [@flow](https://www.ruby-forum.com/u/flow)\
**Replies:** 2\
**Last updated:** [August 17, 2009, 10:43pm UTC](https://www.ruby-forum.com/t/semicolons-in-request-parameter-in-rails-2-3/173734 "2009-08-17T22:43:48Z")

</div>

Hi, after upgrading Rails from 2.2.2 to 2.3.3 I realized that the handling of request parameters has been changed regarding semicolons (that might be due to the now integrated Rack interface). The following request c…

---

## [Multiple models questions](https://www.ruby-forum.com/t/multiple-models-questions/173739)

<div class="topic-metadata">

**Author:** [@wouter](https://www.ruby-forum.com/u/wouter)\
**Replies:** 26\
**Last updated:** [August 17, 2009, 10:23pm UTC](https://www.ruby-forum.com/t/multiple-models-questions/173739 "2009-08-17T22:23:24Z")

</div>

Hey, I have a small social network app and i am creating a kind of activity stream for a user. A user can post shouts and photos (models Shout and Photo). These 2 models have a profile\_id and place\_id (where shout is…

---

## [Check if error\_messages\_for is set](https://www.ruby-forum.com/t/check-if-error-messages-for-is-set/173892)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 6\
**Last updated:** [August 17, 2009, 10:20pm UTC](https://www.ruby-forum.com/t/check-if-error-messages-for-is-set/173892 "2009-08-17T22:20:43Z")

</div>

How do I check if error\_messages\_for is set?

---

## [Filter out or not showing event records that are in the past](https://www.ruby-forum.com/t/filter-out-or-not-showing-event-records-that-are-in-the-past/171940)

<div class="topic-metadata">

**Author:** [@codecarpenter](https://www.ruby-forum.com/u/codecarpenter)\
**Replies:** 8\
**Last updated:** [August 17, 2009, 9:29pm UTC](https://www.ruby-forum.com/t/filter-out-or-not-showing-event-records-that-are-in-the-past/171940 "2009-08-17T21:29:29Z")

</div>

My app shows a list of upcoming events. Without having to modify the database frequently to keep up with the current date, I would like to be able to keep the events that are now in the past from being shown. Can I …

---

## [Rails form\_for submit button](https://www.ruby-forum.com/t/rails-form-for-submit-button/173829)

<div class="topic-metadata">

**Author:** [@Ritvvij](https://www.ruby-forum.com/u/Ritvvij)\
**Replies:** 2\
**Last updated:** [August 17, 2009, 9:26pm UTC](https://www.ruby-forum.com/t/rails-form-for-submit-button/173829 "2009-08-17T21:26:01Z")

</div>

Hi, Presently the submit button is coming as a button in below case. \<% form\_for @chapter do |chapter\_form| %\> … labels … text\_areas… \<%= chapter\_form.submit ‘Create’ %\> I want to build a custom button in CSS and s…

---

## [Ajax with will\_paginate](https://www.ruby-forum.com/t/ajax-with-will-paginate/173865)

<div class="topic-metadata">

**Author:** [@wap](https://www.ruby-forum.com/u/wap)\
**Replies:** 1\
**Last updated:** [August 17, 2009, 9:19pm UTC](https://www.ruby-forum.com/t/ajax-with-will-paginate/173865 "2009-08-17T21:19:35Z")

</div>

Hello All i am calling users/list.html.erb using \<%= link\_to\_remote(“MEMBER LIST”,:update =\> “mcont”, :url =\> {:controller =\> :users, :action =\> :list }) %\> after that i want to do paging in list file but i doesn’t w…

---

## [Difference Between ROR and Django](https://www.ruby-forum.com/t/difference-between-ror-and-django/173874)

<div class="topic-metadata">

**Author:** [@Ram\_KSK](https://www.ruby-forum.com/u/Ram_KSK)\
**Replies:** 3\
**Last updated:** [August 17, 2009, 9:02pm UTC](https://www.ruby-forum.com/t/difference-between-ror-and-django/173874 "2009-08-17T21:02:01Z")

</div>

Hi I am the newbie to both Django as well as ROR… Which one i have to choose as my carrier one… And what is the main difference… Djkango in Python & It is in Ruby… which one is best to easy learn and about security …

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

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