# Rails

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

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

---

## [Newbie Ask: Some basic quick start questions](https://www.ruby-forum.com/t/newbie-ask-some-basic-quick-start-questions/141034)

<div class="topic-metadata">

**Author:** [@mel\_3](https://www.ruby-forum.com/u/mel_3)\
**Replies:** 7\
**Last updated:** [June 23, 2008, 9:00am UTC](https://www.ruby-forum.com/t/newbie-ask-some-basic-quick-start-questions/141034 "2008-06-23T09:00:13Z")

</div>

I’m sure all of this is online but I learn so much faster if I can just talk/chat/swap post with a few kind experts… so thanks in advance for any help and hand holding as I post a number of newbie questions. I’ve crea…

---

## [Routing Error No route matches "/employee/list" with {:method=\>:get}](https://www.ruby-forum.com/t/routing-error-no-route-matches-employee-list-with-method-get/141156)

<div class="topic-metadata">

**Author:** [@zhiguang](https://www.ruby-forum.com/u/zhiguang)\
**Replies:** 3\
**Last updated:** [June 23, 2008, 5:40am UTC](https://www.ruby-forum.com/t/routing-error-no-route-matches-employee-list-with-method-get/141156 "2008-06-23T05:40:42Z")

</div>

hi, I am very frustrated by this error when I just put together a very simple project from one of the textbook on RoR: Routing Error No route matches “/employee/list” with {:method=\>:get} For your reference, #The f…

---

## [Gem sources confusion](https://www.ruby-forum.com/t/gem-sources-confusion/141160)

<div class="topic-metadata">

**Author:** [@sp00nyg](https://www.ruby-forum.com/u/sp00nyg)\
**Replies:** 0\
**Last updated:** [June 23, 2008, 12:54am UTC](https://www.ruby-forum.com/t/gem-sources-confusion/141160 "2008-06-23T00:54:11Z")

</div>

Now that Rails and many other gem/plugins have moved to github, there needs to be a better way to know where to get things from. The first thing I did was add github as a source (sudo gem sources -a http://gems.github…

---

## [Capistrano - svn error - Permission denied (publickey)](https://www.ruby-forum.com/t/capistrano-svn-error-permission-denied-publickey/141099)

<div class="topic-metadata">

**Author:** [@jimmypalmer](https://www.ruby-forum.com/u/jimmypalmer)\
**Replies:** 4\
**Last updated:** [June 22, 2008, 11:40pm UTC](https://www.ruby-forum.com/t/capistrano-svn-error-permission-denied-publickey/141099 "2008-06-22T23:40:58Z")

</div>

I’m using capistrano to deploy the rails app on my new slicehost server. It is running this command on the server svn checkout -q -r2 svn+ssh://209.20.75.130/home/demo/repository/my\_app/home/demo/public\_html/myapp.co…

---

## [Passing paramters in Rest?](https://www.ruby-forum.com/t/passing-paramters-in-rest/141154)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [June 22, 2008, 11:31pm UTC](https://www.ruby-forum.com/t/passing-paramters-in-rest/141154 "2008-06-22T23:31:36Z")

</div>

In the old way, you can always pass params like this, right? \<%= link\_to “Whatever”,:url =\> {:action =\> :new,param1 =\> :foobar} %\> How would you do this Restfully?

---

## [Help converting this \<a href\> tag to rails](https://www.ruby-forum.com/t/help-converting-this-a-href-tag-to-rails/141151)

<div class="topic-metadata">

**Author:** [@skirkpatrick](https://www.ruby-forum.com/u/skirkpatrick)\
**Replies:** 1\
**Last updated:** [June 22, 2008, 11:03pm UTC](https://www.ruby-forum.com/t/help-converting-this-a-href-tag-to-rails/141151 "2008-06-22T23:03:30Z")

</div>

I have this working html tag but am not sure how to convert it rails. i’m getting compile errors. original html: WebQuestPro.com i have tried the following: \<% link\_to(“WebQuestPro.com”, “http://webquestpro.com”, :o…

---

## [Ignoring columns?](https://www.ruby-forum.com/t/ignoring-columns/141104)

<div class="topic-metadata">

**Author:** [@starmaerker](https://www.ruby-forum.com/u/starmaerker)\
**Replies:** 5\
**Last updated:** [June 22, 2008, 9:11pm UTC](https://www.ruby-forum.com/t/ignoring-columns/141104 "2008-06-22T21:11:43Z")

</div>

Hi all, Is there any way to specify that AR ignore certain columns? I have a project where I have to connect to a legacy DB where I have a very wide read only table (actually a view, but the result is the same). The …

---

## [Broken Pipe to Postgres](https://www.ruby-forum.com/t/broken-pipe-to-postgres/114875)

<div class="topic-metadata">

**Author:** [@mfaine](https://www.ruby-forum.com/u/mfaine)\
**Replies:** 2\
**Last updated:** [June 22, 2008, 8:10pm UTC](https://www.ruby-forum.com/t/broken-pipe-to-postgres/114875 "2008-06-22T20:10:07Z")

</div>

Hi all, My app was running fine for months, then all of a sudden I keep getting the following in my production.log, 3 times over the last week, which kills the app dead until httpd is restarted (on Fedora Core): Proc…

---

## [Rails 2.1 , how to upgrade Prototype version to 1.6.0.2?](https://www.ruby-forum.com/t/rails-2-1-how-to-upgrade-prototype-version-to-1-6-0-2/141147)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 2\
**Last updated:** [June 22, 2008, 7:40pm UTC](https://www.ruby-forum.com/t/rails-2-1-how-to-upgrade-prototype-version-to-1-6-0-2/141147 "2008-06-22T19:40:40Z")

</div>

at the present time all my new apps are created with the Protoype.js version 1.6.0.1… the latest version 1.6.0.2 correct some bugs… how can I upgrade my rails lib to the new version and get this latest version includ…

---

## [Serializing objects to database](https://www.ruby-forum.com/t/serializing-objects-to-database/141135)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 2\
**Last updated:** [June 22, 2008, 6:34pm UTC](https://www.ruby-forum.com/t/serializing-objects-to-database/141135 "2008-06-22T18:34:02Z")

</div>

I’m trying to serialize, err Marshal, an AR model with associations to a db field. Seems simple enough to start with. After a dump I have a bunch of Binary data in my field, and looking at with a Hex viewer, it seems …

---

## [How to avoid concurency issue for this scenario?](https://www.ruby-forum.com/t/how-to-avoid-concurency-issue-for-this-scenario/141046)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 6\
**Last updated:** [June 22, 2008, 6:32pm UTC](https://www.ruby-forum.com/t/how-to-avoid-concurency-issue-for-this-scenario/141046 "2008-06-22T18:32:51Z")

</div>

Hi, Any advice re how to avoid any clash from multiple users issueing the same “bulk update” type request at the same time? or would this already be covered by rails with it’s default transactions arrangement ? Scen…

---

## [Can lock\_version be ignored?](https://www.ruby-forum.com/t/can-lock-version-be-ignored/141136)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 1\
**Last updated:** [June 22, 2008, 6:27pm UTC](https://www.ruby-forum.com/t/can-lock-version-be-ignored/141136 "2008-06-22T18:27:00Z")

</div>

I have a need to update a record but without changing the lock\_version – or to at least .save without triggering a stale error if the lock\_version has changed. Is either possible? I’ve tried the API and some blogs, so…

---

## [Mysql Error](https://www.ruby-forum.com/t/mysql-error/141143)

<div class="topic-metadata">

**Author:** [@frozzare](https://www.ruby-forum.com/u/frozzare)\
**Replies:** 1\
**Last updated:** [June 22, 2008, 6:22pm UTC](https://www.ruby-forum.com/t/mysql-error/141143 "2008-06-22T18:22:54Z")

</div>

Hello. I was working on a add friend function. Buts i get an mysql error. Mysql::Error: #23000Column ‘created\_at’ in order clause is ambiguous: SELECT users.id FROM users INNER JOIN friendships ON users.id = friends…

---

## [Any type of Content Management System on Rails?](https://www.ruby-forum.com/t/any-type-of-content-management-system-on-rails/140896)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 5\
**Last updated:** [June 22, 2008, 5:02pm UTC](https://www.ruby-forum.com/t/any-type-of-content-management-system-on-rails/140896 "2008-06-22T17:02:33Z")

</div>

I am searching for some Ruby on Rails Content Management System, and I would like to compare with other PHP Content Management Systems.

---

## [Restful Routes not working!](https://www.ruby-forum.com/t/restful-routes-not-working/141130)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 10\
**Last updated:** [June 22, 2008, 4:41pm UTC](https://www.ruby-forum.com/t/restful-routes-not-working/141130 "2008-06-22T16:41:26Z")

</div>

I’ve spent too many hours trying to figure out why this won’t work… In my routes.rb, I have: map.resources :auctions, :has\_many =\> :bids I’ve also tried map.resources :auctions do |auction| auction.resources :bids …

---

## [Will paginate?](https://www.ruby-forum.com/t/will-paginate/141137)

<div class="topic-metadata">

**Author:** [@gorter9](https://www.ruby-forum.com/u/gorter9)\
**Replies:** 1\
**Last updated:** [June 22, 2008, 2:30pm UTC](https://www.ruby-forum.com/t/will-paginate/141137 "2008-06-22T14:30:25Z")

</div>

I installed the gem will\_paginate and made a simple view to mess out how it works in the controller i have @sites = Site.paginate :per\_page =\> 10, :page =\> params\[:page\] simple view \<% for @sites in @sites %\> \<%= @…

---

## [Bug in paginating\_find](https://www.ruby-forum.com/t/bug-in-paginating-find/141051)

<div class="topic-metadata">

**Author:** [@differenthink](https://www.ruby-forum.com/u/differenthink)\
**Replies:** 14\
**Last updated:** [June 22, 2008, 2:27pm UTC](https://www.ruby-forum.com/t/bug-in-paginating-find/141051 "2008-06-22T14:27:03Z")

</div>

Hi, I juste found a bug in the plugin paginating\_find. I order my records using an associated model column. When i do that, record are beign sorted only based on those displayed on the page, and not based on all of t…

---

## [Rails 2.1 and map.root](https://www.ruby-forum.com/t/rails-2-1-and-map-root/141138)

<div class="topic-metadata">

**Author:** [@anka](https://www.ruby-forum.com/u/anka)\
**Replies:** 1\
**Last updated:** [June 22, 2008, 1:54pm UTC](https://www.ruby-forum.com/t/rails-2-1-and-map-root/141138 "2008-06-22T13:54:20Z")

</div>

I moved my project from rails 2.0 to 2.1 and map.root stop working: It means if I have e.g: map.root :controller =\> ‘sessions’, :action =\> ‘new’ it not working, but when I try do this map.new\_session :controller =\> …

---

## [Eager loaiding ambiguous columns](https://www.ruby-forum.com/t/eager-loaiding-ambiguous-columns/141131)

<div class="topic-metadata">

**Author:** [@ankit2584](https://www.ruby-forum.com/u/ankit2584)\
**Replies:** 2\
**Last updated:** [June 22, 2008, 11:59am UTC](https://www.ruby-forum.com/t/eager-loaiding-ambiguous-columns/141131 "2008-06-22T11:59:11Z")

</div>

Hi, I have a people table which has a first\_name,last\_name as varchar fields and a salutation table which also has first\_name, last\_name as a boolean field. class People belongs\_to :salutation end class Salutatio…

---

## [Rails "clock" and Javascript "clock" seconds apart](https://www.ruby-forum.com/t/rails-clock-and-javascript-clock-seconds-apart/141027)

<div class="topic-metadata">

**Author:** [@dezrtdude](https://www.ruby-forum.com/u/dezrtdude)\
**Replies:** 5\
**Last updated:** [June 22, 2008, 11:34am UTC](https://www.ruby-forum.com/t/rails-clock-and-javascript-clock-seconds-apart/141027 "2008-06-22T11:34:51Z")

</div>

Hi All, I’m having a bit of an issue with time in my application. I’d be inclined to think that it was simply a machine time issue, but, as I’ve run the application on multiple machines, I’m not so sure. Basically, …

---

## [Free Rails web hosting](https://www.ruby-forum.com/t/free-rails-web-hosting/130228)

<div class="topic-metadata">

**Author:** [@ramu](https://www.ruby-forum.com/u/ramu)\
**Replies:** 5\
**Last updated:** [June 22, 2008, 9:18am UTC](https://www.ruby-forum.com/t/free-rails-web-hosting/130228 "2008-06-22T09:18:53Z")

</div>

Hi All, Please help me I want to create the Rails website and when I searched for the web hosting I am unable to get any free web hosting servers. Please let me know if there are any such web hosting service provide…

---

## [How do I make a direct SQL call (e.g. LOCK TABLES)?](https://www.ruby-forum.com/t/how-do-i-make-a-direct-sql-call-e-g-lock-tables/141105)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 1\
**Last updated:** [June 22, 2008, 7:51am UTC](https://www.ruby-forum.com/t/how-do-i-make-a-direct-sql-call-e-g-lock-tables/141105 "2008-06-22T07:51:08Z")

</div>

Hi, I’m stuck. I can’t quite see in Rails how to make a direct database call (e.g. LOCK TABLES…), and leverage the rails connection framework? How do you do this? I see the “execute” command in ActiveRecord::Conn…

---

## [How to do this without fancy SQL](https://www.ruby-forum.com/t/how-to-do-this-without-fancy-sql/141069)

<div class="topic-metadata">

**Author:** [@jeffpritchard](https://www.ruby-forum.com/u/jeffpritchard)\
**Replies:** 13\
**Last updated:** [June 22, 2008, 5:44am UTC](https://www.ruby-forum.com/t/how-to-do-this-without-fancy-sql/141069 "2008-06-22T05:44:33Z")

</div>

Hi, Let’s say I have two models. One of them we’ll call “articles”. The other one is a list of articles that have some special temporary status, like “articles\_in\_review” or something. Each row of “articles\_in\_rev…

---

## [Planning an accessible dynamic form with Prototype](https://www.ruby-forum.com/t/planning-an-accessible-dynamic-form-with-prototype/141114)

<div class="topic-metadata">

**Author:** [@ron](https://www.ruby-forum.com/u/ron)\
**Replies:** 0\
**Last updated:** [June 22, 2008, 5:22am UTC](https://www.ruby-forum.com/t/planning-an-accessible-dynamic-form-with-prototype/141114 "2008-06-22T05:22:19Z")

</div>

Hi everyone, I have a bunch of different data types with some things in common. So I’m creating a model to hold all of the fields and creating subclasses/ using inheritance to delineate the relationship between all o…

---

## [What does](https://www.ruby-forum.com/t/what-does/141095)

<div class="topic-metadata">

**Author:** [@ron](https://www.ruby-forum.com/u/ron)\
**Replies:** 1\
**Last updated:** [June 22, 2008, 1:15am UTC](https://www.ruby-forum.com/t/what-does/141095 "2008-06-22T01:15:31Z")

</div>

Hey everyone, So I’m a little stuck on another scaffold migration. I swear I actually get beyond scaffolds in my apps! At any rate, I’m trying to generate a scaffold with a large number of fields (I’m a lazy typist…

---

## [Newbie : Easiest way to validate uniqueness of 2 fields that are related](https://www.ruby-forum.com/t/newbie-easiest-way-to-validate-uniqueness-of-2-fields-that-are-related/141096)

<div class="topic-metadata">

**Author:** [@DavidPaquet](https://www.ruby-forum.com/u/DavidPaquet)\
**Replies:** 1\
**Last updated:** [June 22, 2008, 12:46am UTC](https://www.ruby-forum.com/t/newbie-easiest-way-to-validate-uniqueness-of-2-fields-that-are-related/141096 "2008-06-22T00:46:17Z")

</div>

Hello everyone Just to be sure, what is the easiest way to validate that a combination of 2 fields is unique in my model ? Example : I have Posts and Comments A posts can have multiple comments (so post\_id is not un…

---

## [Select\_tag question](https://www.ruby-forum.com/t/select-tag-question/141097)

<div class="topic-metadata">

**Author:** [@AJAJAJ](https://www.ruby-forum.com/u/AJAJAJ)\
**Replies:** 0\
**Last updated:** [June 22, 2008, 12:41am UTC](https://www.ruby-forum.com/t/select-tag-question/141097 "2008-06-22T00:41:36Z")

</div>

How can I use select\_tag to Have a prompt like “Select a Value” ( selected by default ) I tried this but did not work: \<%= select\_tag :current\_course, options\_for\_select( Course.find(:all).map {|p| \[p.title,p.id\]} …

---

## [Modeling polymorphic containment](https://www.ruby-forum.com/t/modeling-polymorphic-containment/141093)

<div class="topic-metadata">

**Author:** [@smurfherder](https://www.ruby-forum.com/u/smurfherder)\
**Replies:** 0\
**Last updated:** [June 22, 2008, 12:08am UTC](https://www.ruby-forum.com/t/modeling-polymorphic-containment/141093 "2008-06-22T00:08:51Z")

</div>

I need to create the equivalent of a folder system. Each folder can have any model placed into it, including other folders, as long as it is a tree (not a graph, not a partial order.) One idea that looked good is thi…

---

## [RESTful Philosophy](https://www.ruby-forum.com/t/restful-philosophy/141090)

<div class="topic-metadata">

**Author:** [@smurfherder](https://www.ruby-forum.com/u/smurfherder)\
**Replies:** 0\
**Last updated:** [June 21, 2008, 11:31pm UTC](https://www.ruby-forum.com/t/restful-philosophy/141090 "2008-06-21T23:31:26Z")

</div>

So… a philosophical question about application organization and REST. Generally speaking, all my models represent tangible, model-ish things. For such things, REST makes perfect sense to me, and the indications for …

---

## [RedBox and Rails 2.1?](https://www.ruby-forum.com/t/redbox-and-rails-2-1/141088)

<div class="topic-metadata">

**Author:** [@heimdull](https://www.ruby-forum.com/u/heimdull)\
**Replies:** 0\
**Last updated:** [June 21, 2008, 11:08pm UTC](https://www.ruby-forum.com/t/redbox-and-rails-2-1/141088 "2008-06-21T23:08:03Z")

</div>

Anyone else tried this? Looks like there are some issues using the redbox plugin with rails 2.1 but maybe I’m just doing something wrong… Thought I would post a question here to see if I’m the only one… (Was going to…

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

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