# Rails

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

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

---

## [Toggle! not working](https://www.ruby-forum.com/t/toggle-not-working/152982)

<div class="topic-metadata">

**Author:** [@skirkpatrick](https://www.ruby-forum.com/u/skirkpatrick)\
**Replies:** 3\
**Last updated:** [November 10, 2008, 10:24pm UTC](https://www.ruby-forum.com/t/toggle-not-working/152982 "2008-11-10T22:24:37Z")

</div>

I have a column in the database for called confirmed that is a tinyint(1). currently the value is set to 0. i am trying to use the following function in my controller for Compounds: def confirm @compound = Compound…

---

## [Only able to update email but fname etc not updating](https://www.ruby-forum.com/t/only-able-to-update-email-but-fname-etc-not-updating/152986)

<div class="topic-metadata">

**Author:** [@bababobo](https://www.ruby-forum.com/u/bababobo)\
**Replies:** 1\
**Last updated:** [November 10, 2008, 9:55pm UTC](https://www.ruby-forum.com/t/only-able-to-update-email-but-fname-etc-not-updating/152986 "2008-11-10T21:55:37Z")

</div>

I am using Restful\_Authentication plugin for login/logout. I am trying to update the profile page which has columns email and fname etc, its updating only the email column but not updating the fname and other columns …

---

## ["Gems::FiverunsTuneup-0.8.17::Lib::Fiveruns" is not a valid](https://www.ruby-forum.com/t/gems-fiverunstuneup-0-8-17-fiveruns-is-not-a-valid/152985)

<div class="topic-metadata">

**Author:** [@rgagnon](https://www.ruby-forum.com/u/rgagnon)\
**Replies:** 0\
**Last updated:** [November 10, 2008, 9:41pm UTC](https://www.ruby-forum.com/t/gems-fiverunstuneup-0-8-17-fiveruns-is-not-a-valid/152985 "2008-11-10T21:41:08Z")

</div>

I did a rake gems:unpack then it installed FiveRuns TuneUp. When I started my app, I got “Gems::FiverunsTuneup-0.8.17::Lib::Fiveruns” is not a valid constant name! C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.1/l…

---

## [Send mail only when a condition satisfy](https://www.ruby-forum.com/t/send-mail-only-when-a-condition-satisfy/152976)

<div class="topic-metadata">

**Author:** [@Dat\_C](https://www.ruby-forum.com/u/Dat_C)\
**Replies:** 1\
**Last updated:** [November 10, 2008, 9:33pm UTC](https://www.ruby-forum.com/t/send-mail-only-when-a-condition-satisfy/152976 "2008-11-10T21:33:21Z")

</div>

I would like to send a digest of what have been changed in a day to some admins. However, some day there won’t be any change. How do I not send emails on such cases? Currently, my mailer is called Postoffice. I call …

---

## [{JOB} In Need of a Ruby Ninja (Rookies need not apply)](https://www.ruby-forum.com/t/job-in-need-of-a-ruby-ninja-rookies-need-not-apply/152984)

<div class="topic-metadata">

**Author:** [@plarge10](https://www.ruby-forum.com/u/plarge10)\
**Replies:** 0\
**Last updated:** [November 10, 2008, 9:27pm UTC](https://www.ruby-forum.com/t/job-in-need-of-a-ruby-ninja-rookies-need-not-apply/152984 "2008-11-10T21:27:27Z")

</div>

My client has been the leader in PPC Search Engine Marketing for the past 10+ years and have seen exposive growth over the past 6 months. They have a need for a Sr Ruby developer to round out their 8 person developmen…

---

## [Before\_filter to restrict user from editing locked item](https://www.ruby-forum.com/t/before-filter-to-restrict-user-from-editing-locked-item/152920)

<div class="topic-metadata">

**Author:** [@skirkpatrick](https://www.ruby-forum.com/u/skirkpatrick)\
**Replies:** 4\
**Last updated:** [November 10, 2008, 9:03pm UTC](https://www.ruby-forum.com/t/before-filter-to-restrict-user-from-editing-locked-item/152920 "2008-11-10T21:03:24Z")

</div>

I have a list of items in which some are locked. if they are locked then I want to make them not be able to be edited. how can i set up something like this: before\_filter :locked?(item), :only =\> \[:edit, :update\] de…

---

## [Variable won't work when joining 2 tables](https://www.ruby-forum.com/t/variable-wont-work-when-joining-2-tables/152968)

<div class="topic-metadata">

**Author:** [@gabi](https://www.ruby-forum.com/u/gabi)\
**Replies:** 6\
**Last updated:** [November 10, 2008, 8:05pm UTC](https://www.ruby-forum.com/t/variable-wont-work-when-joining-2-tables/152968 "2008-11-10T20:05:29Z")

</div>

I’m trying to find a solution for the following problem: I have to list 3 things - companies’ names, total amount each company owes, total number of containers that belong to each company - using given invoices that s…

---

## [RedCloth vs redcloth grrrrrrrrr!](https://www.ruby-forum.com/t/redcloth-vs-redcloth-grrrrrrrrr/152978)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 0\
**Last updated:** [November 10, 2008, 7:51pm UTC](https://www.ruby-forum.com/t/redcloth-vs-redcloth-grrrrrrrrr/152978 "2008-11-10T19:51:35Z")

</div>

Most other folks use lower case file names for their gems but not RedCloth and now it’s causing trouble. On my development machine Ubuntu 8.04, Rails 2.1.0 RedCloth (4.1.0 4.0.3) everything loads and runs just fine. O…

---

## [Caching action and parameters](https://www.ruby-forum.com/t/caching-action-and-parameters/152975)

<div class="topic-metadata">

**Author:** [@bingbangboum](https://www.ruby-forum.com/u/bingbangboum)\
**Replies:** 0\
**Last updated:** [November 10, 2008, 7:50pm UTC](https://www.ruby-forum.com/t/caching-action-and-parameters/152975 "2008-11-10T19:50:13Z")

</div>

Hello, I have a controller called user with an index action wich list all users. I can specify the order in the url like this /index/ordering/name/ increasing. I have a lot of user so i use a params\[:page\] to list t…

---

## [Undefined method exists?](https://www.ruby-forum.com/t/undefined-method-exists/152947)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [November 10, 2008, 6:29pm UTC](https://www.ruby-forum.com/t/undefined-method-exists/152947 "2008-11-10T18:29:50Z")

</div>

I’m getting the error that exists? is an undefined method when I try and use it in a model. Basically, it’s something like this: if exists? :user\_id =\> current\_user.id From what I understand, exists? is in ActiveRecor…

---

## [How do I apply patches from Trac?](https://www.ruby-forum.com/t/how-do-i-apply-patches-from-trac/152971)

<div class="topic-metadata">

**Author:** [@msmsms](https://www.ruby-forum.com/u/msmsms)\
**Replies:** 1\
**Last updated:** [November 10, 2008, 6:22pm UTC](https://www.ruby-forum.com/t/how-do-i-apply-patches-from-trac/152971 "2008-11-10T18:22:13Z")

</div>

Hi, although I found some posts about applying patches in this group, I did not come along with this. I want to apply this patch: http://dev.rubyonrails.org/ticket/10059 How do I apply patches in general? I read some…

---

## [Per page meta data for better SEO](https://www.ruby-forum.com/t/per-page-meta-data-for-better-seo/152967)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 0\
**Last updated:** [November 10, 2008, 5:38pm UTC](https://www.ruby-forum.com/t/per-page-meta-data-for-better-seo/152967 "2008-11-10T17:38:41Z")

</div>

Hi, How do you handle the generation of your specific and tags on each of your pages? I want them to be specific to each page, but I can’t think of a nice and clean way to do that. Currently in each action I set 2 v…

---

## [Changing routes](https://www.ruby-forum.com/t/changing-routes/152833)

<div class="topic-metadata">

**Author:** [@elioncho](https://www.ruby-forum.com/u/elioncho)\
**Replies:** 5\
**Last updated:** [November 10, 2008, 5:27pm UTC](https://www.ruby-forum.com/t/changing-routes/152833 "2008-11-10T17:27:37Z")

</div>

Hello, Well I am working on an app and wanted to make some changes on the URL’s. I have the following: #— map.resources :groups do |groups| groups.resources :events, :member =\> { :invite =\> :get } end #— So my ev…

---

## [Scott Hughes is out of the office](https://www.ruby-forum.com/t/scott-hughes-is-out-of-the-office/152965)

<div class="topic-metadata">

**Author:** [@Scott\_Hughes](https://www.ruby-forum.com/u/Scott_Hughes)\
**Replies:** 0\
**Last updated:** [November 10, 2008, 4:47pm UTC](https://www.ruby-forum.com/t/scott-hughes-is-out-of-the-office/152965 "2008-11-10T16:47:03Z")

</div>

I will be out of the office starting November 10, 2008 and will not return until November 17, 2008. Please direct any questions you have to Brian Esler or Andy Brymer in my absence. Thank You

---

## [Direct to same page](https://www.ruby-forum.com/t/direct-to-same-page/152901)

<div class="topic-metadata">

**Author:** [@xxmithila](https://www.ruby-forum.com/u/xxmithila)\
**Replies:** 3\
**Last updated:** [November 10, 2008, 4:17pm UTC](https://www.ruby-forum.com/t/direct-to-same-page/152901 "2008-11-10T16:17:53Z")

</div>

Hi guys… I want to drict again same page after submitting values to another methode in the controller. ex:: Im in post.rhtml I submit some data to methode def mail end then I want to direct again to post.rhtml …

---

## [Template question](https://www.ruby-forum.com/t/template-question/152950)

<div class="topic-metadata">

**Author:** [@remco](https://www.ruby-forum.com/u/remco)\
**Replies:** 1\
**Last updated:** [November 10, 2008, 4:12pm UTC](https://www.ruby-forum.com/t/template-question/152950 "2008-11-10T16:12:19Z")

</div>

Hi, I have 4 controllers, a, b c, and d. In the controllers i created a method with the name “homepage”. What is the best solution (partials, content\_for ect. ) the create the homepage-template with the content of th…

---

## [What is the state of support for rails 2.2?](https://www.ruby-forum.com/t/what-is-the-state-of-support-for-rails-2-2/152644)

<div class="topic-metadata">

**Author:** [@Ned\_Schwartz](https://www.ruby-forum.com/u/Ned_Schwartz)\
**Replies:** 9\
**Last updated:** [November 10, 2008, 3:47pm UTC](https://www.ruby-forum.com/t/what-is-the-state-of-support-for-rails-2-2/152644 "2008-11-10T15:47:04Z")

</div>

Hello, I am trying to help get the project Adva-CMS (http://adva-cms.org/) up to date and ready for Rails 2.2. Adva relies heavily on Engines and uses a fork that Sven F. made to get timestamped migrations to work. …

---

## [Developer required in Cape Town, South Africa](https://www.ruby-forum.com/t/developer-required-in-cape-town-south-africa/152956)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [November 10, 2008, 3:31pm UTC](https://www.ruby-forum.com/t/developer-required-in-cape-town-south-africa/152956 "2008-11-10T15:31:11Z")

</div>

Dear all I need a small amount of work done… I have the source code for an app developed with ROR, but no one who can implement this. I work for an NGO in Stellenbosch, just outside Cape Town, SA. If there are any ‘…

---

## [Noob needs help updating a sortable table in the database](https://www.ruby-forum.com/t/noob-needs-help-updating-a-sortable-table-in-the-database/152888)

<div class="topic-metadata">

**Author:** [@JoeMSak](https://www.ruby-forum.com/u/JoeMSak)\
**Replies:** 2\
**Last updated:** [November 10, 2008, 2:22pm UTC](https://www.ruby-forum.com/t/noob-needs-help-updating-a-sortable-table-in-the-database/152888 "2008-11-10T14:22:30Z")

</div>

Hi, I am brand new to Rails and I love it, but I am stuck on something I just can’t figure out. I have table in my database of Pages which are listed in the admin view in an HTML table. Each page has ID Title Cont…

---

## [Order of rooms](https://www.ruby-forum.com/t/order-of-rooms/152941)

<div class="topic-metadata">

**Author:** [@Janka](https://www.ruby-forum.com/u/Janka)\
**Replies:** 2\
**Last updated:** [November 10, 2008, 2:14pm UTC](https://www.ruby-forum.com/t/order-of-rooms/152941 "2008-11-10T14:14:15Z")

</div>

Hi, Ive got one trouble. Ive got order of rooms(order by id), but I\`m choosing available one, after that I would like to send the room, which was taken on the last place. Something like this I have: 1.room(id = 1) 2.…

---

## [Undefined method assert\_valid\_keys](https://www.ruby-forum.com/t/undefined-method-assert-valid-keys/53039)

<div class="topic-metadata">

**Author:** [@princenamor](https://www.ruby-forum.com/u/princenamor)\
**Replies:** 6\
**Last updated:** [November 10, 2008, 1:35pm UTC](https://www.ruby-forum.com/t/undefined-method-assert-valid-keys/53039 "2008-11-10T13:35:08Z")

</div>

Guys, I’m having trouble understanding why I am getting the following error message. I’ve double checked my code and everything looks good. Can anyone share any insight into the message? Thanks! John undefined met…

---

## [Layoffgossip](https://www.ruby-forum.com/t/layoffgossip/152953)

<div class="topic-metadata">

**Author:** [@naresh](https://www.ruby-forum.com/u/naresh)\
**Replies:** 0\
**Last updated:** [November 10, 2008, 12:12pm UTC](https://www.ruby-forum.com/t/layoffgossip/152953 "2008-11-10T12:12:47Z")

</div>

I love Layoffgossip, tells me about my company’s recruiting status. Whether my company is hiring or firing/laying off people. I can write about my company here anonymously. I can advise people on joining my company. I…

---

## [Layoff gossip](https://www.ruby-forum.com/t/layoff-gossip/152952)

<div class="topic-metadata">

**Author:** [@naresh](https://www.ruby-forum.com/u/naresh)\
**Replies:** 0\
**Last updated:** [November 10, 2008, 11:56am UTC](https://www.ruby-forum.com/t/layoff-gossip/152952 "2008-11-10T11:56:58Z")

</div>

I love Layoffgossip, tells me if you are in danger, I entered my company name, salary, tidbit, voting meter, feelings

---

## [About user domain](https://www.ruby-forum.com/t/about-user-domain/152751)

<div class="topic-metadata">

**Author:** [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Replies:** 4\
**Last updated:** [November 10, 2008, 11:54am UTC](https://www.ruby-forum.com/t/about-user-domain/152751 "2008-11-10T11:54:30Z")

</div>

I have an application which has the common content sharing and customized content for the registered users,the registered user use his control panel to make his customized part for the app.When anyone browse this regi…

---

## [Easy before\_update question (i hope)](https://www.ruby-forum.com/t/easy-before-update-question-i-hope/152943)

<div class="topic-metadata">

**Author:** [@scottnj](https://www.ruby-forum.com/u/scottnj)\
**Replies:** 1\
**Last updated:** [November 10, 2008, 11:08am UTC](https://www.ruby-forum.com/t/easy-before-update-question-i-hope/152943 "2008-11-10T11:08:43Z")

</div>

in a before\_update is there an easy way to check if a specific field is being changed? for example def before\_update unless current.email == new.email # do stuff end end obviously “current.email” and “new.email” …

---

## [AcriveRecord (2.2.0) after\_update callback and database transaction](https://www.ruby-forum.com/t/acriverecord-2-2-0-after-update-callback-and-database-transaction/152691)

<div class="topic-metadata">

**Author:** [@Hubert\_SSSSSSSSSpic](https://www.ruby-forum.com/u/Hubert_SSSSSSSSSpic)\
**Replies:** 1\
**Last updated:** [November 10, 2008, 10:16am UTC](https://www.ruby-forum.com/t/acriverecord-2-2-0-after-update-callback-and-database-transaction/152691 "2008-11-10T10:16:55Z")

</div>

Hi, Does anyone know how can I execute some bit of code after transaction wrapping up activerecord update/save methods completed? after\_update and after\_save filters are both wrapped into the same transaction, and I …

---

## [Ruby On Rails Technology Solution](https://www.ruby-forum.com/t/ruby-on-rails-technology-solution/152945)

<div class="topic-metadata">

**Author:** [@palakbhatt](https://www.ruby-forum.com/u/palakbhatt)\
**Replies:** 0\
**Last updated:** [November 10, 2008, 10:16am UTC](https://www.ruby-forum.com/t/ruby-on-rails-technology-solution/152945 "2008-11-10T10:16:18Z")

</div>

Ruby on Rails (RoR) is a free open source web development framework based on MVC with Ruby language to develop rapidly data-driven web applications. Ruby is a highly developer friendly, reflective and object-oriented …

---

## [\[sort of off topic\] BDD with Javascript](https://www.ruby-forum.com/t/sort-of-off-topic-bdd-with-javascript/152866)

<div class="topic-metadata">

**Author:** [@phylae](https://www.ruby-forum.com/u/phylae)\
**Replies:** 2\
**Last updated:** [November 10, 2008, 10:07am UTC](https://www.ruby-forum.com/t/sort-of-off-topic-bdd-with-javascript/152866 "2008-11-10T10:07:29Z")

</div>

I know this is a little off topic, but Rails is pretty much the only place I use JavaScript at the moment, so I’m guessing that does come into the equation a little bit. I have learned to get quite a lot of the protot…

---

## [Observe\_form should only react to changes in the form](https://www.ruby-forum.com/t/observe-form-should-only-react-to-changes-in-the-form/152607)

<div class="topic-metadata">

**Author:** [@morgler](https://www.ruby-forum.com/u/morgler)\
**Replies:** 1\
**Last updated:** [November 10, 2008, 9:58am UTC](https://www.ruby-forum.com/t/observe-form-should-only-react-to-changes-in-the-form/152607 "2008-11-10T09:58:06Z")

</div>

I have a problem with observe\_form: \<%= observe\_form( “search\_form”, :frequency =\> 0.25, :update =\> “search”, :loading =\> “Element.show(‘spinner’)”, :complete =\> “Element.hide(‘spinner’)”, :url …

---

## [Config error](https://www.ruby-forum.com/t/config-error/152926)

<div class="topic-metadata">

**Author:** [@bert\_a](https://www.ruby-forum.com/u/bert_a)\
**Replies:** 1\
**Last updated:** [November 10, 2008, 12:56am UTC](https://www.ruby-forum.com/t/config-error/152926 "2008-11-10T00:56:28Z")

</div>

I just started developing a social network using the RailsSpace book. The books instruction is to change the url to be http://localhost:3000 instead of http://localhost:3000/site. To do this, I changed the config/rou…

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

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