# Rails

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

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

---

## [Rails on Mac OS X Leopard](https://www.ruby-forum.com/t/rails-on-mac-os-x-leopard/132116)

<div class="topic-metadata">

**Author:** [@nahabed](https://www.ruby-forum.com/u/nahabed)\
**Replies:** 3\
**Last updated:** [March 17, 2008, 9:12am UTC](https://www.ruby-forum.com/t/rails-on-mac-os-x-leopard/132116 "2008-03-17T09:12:24Z")

</div>

\[I posted this earlier today but it didn’t show up on the list so i am reposting. Pardon if you seen this already\] A few days ago I got a new Macbook Pro (yippie!). Until now, I was using Instant Rails on Windows. I am…

---

## [Dynamic actions and views](https://www.ruby-forum.com/t/dynamic-actions-and-views/132122)

<div class="topic-metadata">

**Author:** [@Love\_AJAX](https://www.ruby-forum.com/u/Love_AJAX)\
**Replies:** 2\
**Last updated:** [March 17, 2008, 8:51am UTC](https://www.ruby-forum.com/t/dynamic-actions-and-views/132122 "2008-03-17T08:51:14Z")

</div>

Hi, I have a set of messages stored in the db. These are email messages that I have to send based on some condition. This is not the way I had been doing all these days. I used to create an action in my controller (c…

---

## [Using respond\_to to send multiple formats to the same view](https://www.ruby-forum.com/t/using-respond-to-to-send-multiple-formats-to-the-same-view/132104)

<div class="topic-metadata">

**Author:** [@tlianza](https://www.ruby-forum.com/u/tlianza)\
**Replies:** 3\
**Last updated:** [March 17, 2008, 8:48am UTC](https://www.ruby-forum.com/t/using-respond-to-to-send-multiple-formats-to-the-same-view/132104 "2008-03-17T08:48:18Z")

</div>

Hi All, Hopefully it’s obvious what I’m trying to do here: respond\_to do |format| format.html # show.html.erb format.fbml { render(:format=\>‘html’)} end The problem is, the fbml version doesn’t work. Rails insists…

---

## [Error with rake](https://www.ruby-forum.com/t/error-with-rake/131995)

<div class="topic-metadata">

**Author:** [@shenry](https://www.ruby-forum.com/u/shenry)\
**Replies:** 3\
**Last updated:** [March 17, 2008, 8:47am UTC](https://www.ruby-forum.com/t/error-with-rake/131995 "2008-03-17T08:47:07Z")

</div>

I’ve been following the RoR tutorial at http://wiki.rubyonrails.com/rails/pages/TutorialStepOne … When I enter the rake command (in step 5 of the tutorial) I get an error that database\_test does not exist… If I manua…

---

## [Differnece between form\_for and form\_remote\_tag](https://www.ruby-forum.com/t/differnece-between-form-for-and-form-remote-tag/132121)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 3\
**Last updated:** [March 17, 2008, 8:43am UTC](https://www.ruby-forum.com/t/differnece-between-form-for-and-form-remote-tag/132121 "2008-03-17T08:43:33Z")

</div>

Hi Could you please explain the difference between form\_for and form\_remote\_tag…On which circumstances they are used? Thanks in advance Sijo

---

## [Rails encoding problem](https://www.ruby-forum.com/t/rails-encoding-problem/132117)

<div class="topic-metadata">

**Author:** [@phoenix](https://www.ruby-forum.com/u/phoenix)\
**Replies:** 2\
**Last updated:** [March 17, 2008, 8:39am UTC](https://www.ruby-forum.com/t/rails-encoding-problem/132117 "2008-03-17T08:39:29Z")

</div>

I was trying to send an http request in my controller to get the content of the response and display it in a text field in the view, but sometimes i got a “redundant UTF-8 sequence” exception. Even if the exception wa…

---

## [Error in server](https://www.ruby-forum.com/t/error-in-server/132125)

<div class="topic-metadata">

**Author:** [@manish](https://www.ruby-forum.com/u/manish)\
**Replies:** 0\
**Last updated:** [March 17, 2008, 7:48am UTC](https://www.ruby-forum.com/t/error-in-server/132125 "2008-03-17T07:48:24Z")

</div>

I m new to ROR and this is my first project. Its working fine in localhost but when i uploaded it in server i face this error http://www.copychops.com/ In the main page also when u click on this link… About your appl…

---

## [Url reformatting](https://www.ruby-forum.com/t/url-reformatting/132065)

<div class="topic-metadata">

**Author:** [@srikanth\_u37](https://www.ruby-forum.com/u/srikanth_u37)\
**Replies:** 2\
**Last updated:** [March 17, 2008, 6:30am UTC](https://www.ruby-forum.com/t/url-reformatting/132065 "2008-03-17T06:30:20Z")

</div>

Hi, I am new to ruby on rails and i have urls which are in the form of http://demo.com/demo/home?demo=10 i want to reformat the above url to user friendly way like http://demo.com/demo/home/10 Is there any way how t…

---

## [Modularized controller can't find application\_helper methods](https://www.ruby-forum.com/t/modularized-controller-cant-find-application-helper-methods/70581)

<div class="topic-metadata">

**Author:** [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Replies:** 1\
**Last updated:** [March 17, 2008, 5:46am UTC](https://www.ruby-forum.com/t/modularized-controller-cant-find-application-helper-methods/70581 "2008-03-17T05:46:19Z")

</div>

Hey everyone, Im having this weird problem. I made a controller by calling it home/my\_inbox to try to modularize everything. However, I cant call any methods from the application\_helper.rb file. Any reason why? NoMet…

---

## [Best Practice/Associations Question](https://www.ruby-forum.com/t/best-practice-associations-question/132106)

<div class="topic-metadata">

**Author:** [@Jables](https://www.ruby-forum.com/u/Jables)\
**Replies:** 6\
**Last updated:** [March 17, 2008, 5:28am UTC](https://www.ruby-forum.com/t/best-practice-associations-question/132106 "2008-03-17T05:28:09Z")

</div>

What is the best way to solve this problem: If you have a model - say Vote, and there are votes for various categories of things such as comments, links, etc: What is the best way to implement this? Is it best to cr…

---

## [How to pass cookies to website?/?](https://www.ruby-forum.com/t/how-to-pass-cookies-to-website/131958)

<div class="topic-metadata">

**Author:** [@varunkumargoel](https://www.ruby-forum.com/u/varunkumargoel)\
**Replies:** 2\
**Last updated:** [March 17, 2008, 5:02am UTC](https://www.ruby-forum.com/t/how-to-pass-cookies-to-website/131958 "2008-03-17T05:02:43Z")

</div>

Hi All, I wanna pass cookies with url.Suppose i have two website and both website have LDAP server for user authentication.if i authenticated in one website then i wanna pass that cookies to another website for authe…

---

## [How to pass an object in a form](https://www.ruby-forum.com/t/how-to-pass-an-object-in-a-form/131036)

<div class="topic-metadata">

**Author:** [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Replies:** 9\
**Last updated:** [March 17, 2008, 4:34am UTC](https://www.ruby-forum.com/t/how-to-pass-an-object-in-a-form/131036 "2008-03-17T04:34:48Z")

</div>

Hi, Here’s a basic one again. I have 3 models: class Program \< ActiveRecord::Base has\_many :comments end class Comment \< ActiveRecord::Base belongs\_to :program belongs\_to :user end class User \< ActiveRecord::Ba…

---

## [Nested models, mass assignment problem](https://www.ruby-forum.com/t/nested-models-mass-assignment-problem/132110)

<div class="topic-metadata">

**Author:** [@jtslade](https://www.ruby-forum.com/u/jtslade)\
**Replies:** 0\
**Last updated:** [March 17, 2008, 4:14am UTC](https://www.ruby-forum.com/t/nested-models-mass-assignment-problem/132110 "2008-03-17T04:14:49Z")

</div>

Thank you in advance. I am trying to use mass assignment for nested models in my view. The first nested level works (thanks to a Railscast). i.e. Driver.cars\_attributes=\>\[{no=\>…},{make=\>…}\] works but the second level…

---

## [Find(:all) that works when called by regular view but not rss builder](https://www.ruby-forum.com/t/find-all-that-works-when-called-by-regular-view-but-not-rss-builder/132109)

<div class="topic-metadata">

**Author:** [@jeremy](https://www.ruby-forum.com/u/jeremy)\
**Replies:** 0\
**Last updated:** [March 17, 2008, 4:09am UTC](https://www.ruby-forum.com/t/find-all-that-works-when-called-by-regular-view-but-not-rss-builder/132109 "2008-03-17T04:09:33Z")

</div>

I have an index page that displays the newest contents of a table called ratings. The controller code looks like this: def index @newest\_ratings = Rating.find(:all, :order =\> “twitter\_num DESC”, :limit =\> 20) . …

---

## [How to display a method's "Ruby Stack Path"](https://www.ruby-forum.com/t/how-to-display-a-methods-ruby-stack-path/132107)

<div class="topic-metadata">

**Author:** [@rubyfreak](https://www.ruby-forum.com/u/rubyfreak)\
**Replies:** 0\
**Last updated:** [March 17, 2008, 3:36am UTC](https://www.ruby-forum.com/t/how-to-display-a-methods-ruby-stack-path/132107 "2008-03-17T03:36:40Z")

</div>

I am trying to learn the Ruby behind Rails and it would be helpful to be able to find the Ruby code for a given method. For example I am in Script/console and I do: “puts ActiveRecord.methods”. I get a nice list. Let…

---

## [SSL Authentication in Mongrel](https://www.ruby-forum.com/t/ssl-authentication-in-mongrel/131752)

<div class="topic-metadata">

**Author:** [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Replies:** 3\
**Last updated:** [March 17, 2008, 3:21am UTC](https://www.ruby-forum.com/t/ssl-authentication-in-mongrel/131752 "2008-03-17T03:21:59Z")

</div>

I am working on project and I need to get the value stored in the header (SSL\_CLIENT\_S\_DN\_CN ). We have been doing PKI authentication for sometime in PHP by getting the value of $\_SERVER\[“SSL\_CLIENT\_S\_DN\_CN”\] . Now…

---

## [I need some YAML parsing tips](https://www.ruby-forum.com/t/i-need-some-yaml-parsing-tips/132101)

<div class="topic-metadata">

**Author:** [@Backov](https://www.ruby-forum.com/u/Backov)\
**Replies:** 1\
**Last updated:** [March 17, 2008, 1:26am UTC](https://www.ruby-forum.com/t/i-need-some-yaml-parsing-tips/132101 "2008-03-17T01:26:31Z")

</div>

I want to do some database population using YAML. Now, I have the basics of how to read YAML, but am getting stuck on specifics. I’d use fixtures, but the format isn’t what I’d like. For instance, I want to do somethi…

---

## [Compiling Ruby on Rails on OS X](https://www.ruby-forum.com/t/compiling-ruby-on-rails-on-os-x/132097)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 1\
**Last updated:** [March 16, 2008, 9:54pm UTC](https://www.ruby-forum.com/t/compiling-ruby-on-rails-on-os-x/132097 "2008-03-16T21:54:11Z")

</div>

Hi all, i got rid of locomotive as advised in another post… i’ve just downloaded the compiler version, and have tried to run ./configure however i get this back in terminal: ./configure checking build system type… …

---

## [Undefined method \`redirect\_to'](https://www.ruby-forum.com/t/undefined-method-redirect-to/132092)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [March 16, 2008, 9:51pm UTC](https://www.ruby-forum.com/t/undefined-method-redirect-to/132092 "2008-03-16T21:51:15Z")

</div>

Hi all. I’m getting the following error in my app: undefined method \`redirect\_to’ for ActionController::Base:Class I’m using Windows 2000, Rails 2.0.2 and resource\_controller (from James Golick). My controller: clas…

---

## [Is there a way to put a model into a module?](https://www.ruby-forum.com/t/is-there-a-way-to-put-a-model-into-a-module/131988)

<div class="topic-metadata">

**Author:** [@matrixise](https://www.ruby-forum.com/u/matrixise)\
**Replies:** 1\
**Last updated:** [March 16, 2008, 8:39pm UTC](https://www.ruby-forum.com/t/is-there-a-way-to-put-a-model-into-a-module/131988 "2008-03-16T20:39:20Z")

</div>

Hi all, A friend and I want to generate a model based on a table named ‘modules’, I know that “Module” is a class in Ruby, and so, I would like to know how to generate this model. Thanks, Best Regards, Stephane

---

## [Form\_for error](https://www.ruby-forum.com/t/form-for-error/132090)

<div class="topic-metadata">

**Author:** [@sjglazer](https://www.ruby-forum.com/u/sjglazer)\
**Replies:** 1\
**Last updated:** [March 16, 2008, 8:12pm UTC](https://www.ruby-forum.com/t/form-for-error/132090 "2008-03-16T20:12:45Z")

</div>

Hi all, I have the following code in my application layout: \<% if logged\_in? %\> \<%= link\_to "Sign Out", logout\_path %\> \<% else %\> \<%= link\_to\_function “Sign in”, “$(‘signin’).toggle();$(‘signin\_link’).toggle(…

---

## [Comparing datetimes for conditional](https://www.ruby-forum.com/t/comparing-datetimes-for-conditional/132081)

<div class="topic-metadata">

**Author:** [@chunkyslink](https://www.ruby-forum.com/u/chunkyslink)\
**Replies:** 6\
**Last updated:** [March 16, 2008, 8:11pm UTC](https://www.ruby-forum.com/t/comparing-datetimes-for-conditional/132081 "2008-03-16T20:11:30Z")

</div>

I just hacked together my first bit of ruby code for pulling in rss feed items into a database. It uses a conditional which checks the last item’s pubDate against the ‘last\_checked\_at’ attribute for the parent model, …

---

## [Rails on Mac OS X Leopard](https://www.ruby-forum.com/t/rails-on-mac-os-x-leopard/132091)

<div class="topic-metadata">

**Author:** [@nahabed](https://www.ruby-forum.com/u/nahabed)\
**Replies:** 1\
**Last updated:** [March 16, 2008, 8:08pm UTC](https://www.ruby-forum.com/t/rails-on-mac-os-x-leopard/132091 "2008-03-16T20:08:32Z")

</div>

A few days ago I got a new Macbook Pro (yippie!). Until now, I was using Instant Rails on Windows. I am now trying to get my rails projects to run on the MBP having copied them from Windows. From the terminal window, …

---

## [One-to-One relationship -- good idea?](https://www.ruby-forum.com/t/one-to-one-relationship-good-idea/132054)

<div class="topic-metadata">

**Author:** [@tbobker](https://www.ruby-forum.com/u/tbobker)\
**Replies:** 3\
**Last updated:** [March 16, 2008, 6:51pm UTC](https://www.ruby-forum.com/t/one-to-one-relationship-good-idea/132054 "2008-03-16T18:51:06Z")

</div>

I am writing a site that tracks workouts. Thus far I have the following models: User -\> UserExercise (the workout) \<- Exercise Workouts have two types of exercises – time based (run 4 miles) and weight based (bench p…

---

## [Paginating a search](https://www.ruby-forum.com/t/paginating-a-search/196608)

<div class="topic-metadata">

**Author:** [@javiel](https://www.ruby-forum.com/u/javiel)\
**Replies:** 2\
**Last updated:** [March 16, 2008, 6:00pm UTC](https://www.ruby-forum.com/t/paginating-a-search/196608 "2008-03-16T18:00:45Z")

</div>

hi! I have been trying to use will\_paginate with acts\_as\_ferret and it works correctly in the first page, but nowhere else. When I try to see the second or any other page I get a nil object error while evaluating nil…

---

## [Has\_one association with :conditions: is this somehow possible?](https://www.ruby-forum.com/t/has-one-association-with-is-this-somehow-possible/131734)

<div class="topic-metadata">

**Author:** [@Feurio](https://www.ruby-forum.com/u/Feurio)\
**Replies:** 2\
**Last updated:** [March 16, 2008, 5:51pm UTC](https://www.ruby-forum.com/t/has-one-association-with-is-this-somehow-possible/131734 "2008-03-16T17:51:52Z")

</div>

What is the right way to achieve something like this: class Design \< ActiveRecord::Base belongs\_to :card\_collection after\_save :generate\_images has\_one :background, :as =\> :resourceable, :class\_name =\> “Resource”, …

---

## [Get domain](https://www.ruby-forum.com/t/get-domain/132068)

<div class="topic-metadata">

**Author:** [@rpierry](https://www.ruby-forum.com/u/rpierry)\
**Replies:** 5\
**Last updated:** [March 16, 2008, 4:40pm UTC](https://www.ruby-forum.com/t/get-domain/132068 "2008-03-16T16:40:10Z")

</div>

Hi guys, I’m trying to work out how to request the URL in RoR - the only help page I’ve found is http://textsnippets com/posts/show/822 which has the following code: \<% page = request.request\_uri %\> page: \<%= page %\>…

---

## [Logic problem: writing to a second table from within the active controller](https://www.ruby-forum.com/t/logic-problem-writing-to-a-second-table-from-within-the-active-controller/132077)

<div class="topic-metadata">

**Author:** [@eriklane](https://www.ruby-forum.com/u/eriklane)\
**Replies:** 0\
**Last updated:** [March 16, 2008, 4:27pm UTC](https://www.ruby-forum.com/t/logic-problem-writing-to-a-second-table-from-within-the-active-controller/132077 "2008-03-16T16:27:12Z")

</div>

Hi all, Just not sure how to do this in RoR. Scenario: Parents sign in to register their kids, child list populated based on same last name (based on an imported excel file). Parents click register next to childs n…

---

## [How to make RoR load faster](https://www.ruby-forum.com/t/how-to-make-ror-load-faster/132016)

<div class="topic-metadata">

**Author:** [@sujoykroy](https://www.ruby-forum.com/u/sujoykroy)\
**Replies:** 2\
**Last updated:** [March 16, 2008, 4:06pm UTC](https://www.ruby-forum.com/t/how-to-make-ror-load-faster/132016 "2008-03-16T16:06:07Z")

</div>

Hi, I am working on a RoR eCommerce application built on Substruct. The website runs on shared hosting using Apache with FastCGI with idle time 5 minutes. The problem is Substruct takes time to load first time then i…

---

## [Rails homepage with backend?](https://www.ruby-forum.com/t/rails-homepage-with-backend/131586)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [March 16, 2008, 3:43pm UTC](https://www.ruby-forum.com/t/rails-homepage-with-backend/131586 "2008-03-16T15:43:37Z")

</div>

Hi! I’m totally new in ror. I just absolved the tutorials in the screening section. My two questions are: Is it possible to create a ror-homepage with a admin-backend? Is it also possible to create a complete fronten…

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

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