# Rails

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

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

---

## [Autocomplete and parameters name](https://www.ruby-forum.com/t/autocomplete-and-parameters-name/124004)

<div class="topic-metadata">

**Author:** [@tranquiliste](https://www.ruby-forum.com/u/tranquiliste)\
**Replies:** 2\
**Last updated:** [December 24, 2007, 7:49am UTC](https://www.ruby-forum.com/t/autocomplete-and-parameters-name/124004 "2007-12-24T07:49:15Z")

</div>

Hello, new on Rails I have currently a problem. I am using autocomplete on a search form it is working well but to paginate I need to call the search action again and I don’t know how the variable should be named in …

---

## [How to paginate a array](https://www.ruby-forum.com/t/how-to-paginate-a-array/124063)

<div class="topic-metadata">

**Author:** [@ror-user](https://www.ruby-forum.com/u/ror-user)\
**Replies:** 0\
**Last updated:** [December 24, 2007, 7:30am UTC](https://www.ruby-forum.com/t/how-to-paginate-a-array/124063 "2007-12-24T07:30:25Z")

</div>

Hi all, I have written a searching method and the results does not belong to a particular table. The results are in a array: @products \<\< lineitem. Now i want to paginate the @products array. Please give me some solu…

---

## [Mobile web app development](https://www.ruby-forum.com/t/mobile-web-app-development/123958)

<div class="topic-metadata">

**Author:** [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Replies:** 3\
**Last updated:** [December 24, 2007, 6:38am UTC](https://www.ruby-forum.com/t/mobile-web-app-development/123958 "2007-12-24T06:38:29Z")

</div>

I am totally new to mobile web app development and am just wondering if anyone knows of any good books or resources on the web. One thing that I am unsure of is to whether mobile web apps are written in a a very stri…

---

## [Novo formato de perguntas da prova de certific aÃ§Ã£o PMP comentadas](https://www.ruby-forum.com/t/novo-formato-de-perguntas-da-prova-de-certific-aa-a-o-pmp-comentadas/124056)

<div class="topic-metadata">

**Author:** [@malvadomx](https://www.ruby-forum.com/u/malvadomx)\
**Replies:** 2\
**Last updated:** [December 24, 2007, 6:19am UTC](https://www.ruby-forum.com/t/novo-formato-de-perguntas-da-prova-de-certific-aa-a-o-pmp-comentadas/124056 "2007-12-24T06:19:09Z")

</div>

Novo formato de perguntas da prova de certificação PMP comentadas

---

## [Multiple File Upload](https://www.ruby-forum.com/t/multiple-file-upload/96943)

<div class="topic-metadata">

**Author:** [@mrrl](https://www.ruby-forum.com/u/mrrl)\
**Replies:** 2\
**Last updated:** [December 24, 2007, 4:22am UTC](https://www.ruby-forum.com/t/multiple-file-upload/96943 "2007-12-24T04:22:51Z")

</div>

Hello together, I developed a file upload in my application like this (files uploaded belong to a project): project\_controller.rb: def upload\_attachment project = Project.find(@params\[:id\]) begin project.attachment…

---

## [Thin Controler - Limiting case](https://www.ruby-forum.com/t/thin-controler-limiting-case/124051)

<div class="topic-metadata">

**Author:** [@antonaylward](https://www.ruby-forum.com/u/antonaylward)\
**Replies:** 0\
**Last updated:** [December 24, 2007, 2:32am UTC](https://www.ruby-forum.com/t/thin-controler-limiting-case/124051 "2007-12-24T02:32:56Z")

</div>

I’ve come back to working with Rials after a tie away and picking up a half completed project. One of the controllers was based on a something I found on the web but can no longer find. It was a definitively ‘thin’ c…

---

## [Who runs rubyonrailswebhost.com?](https://www.ruby-forum.com/t/who-runs-rubyonrailswebhost-com/124047)

<div class="topic-metadata">

**Author:** [@zdennis](https://www.ruby-forum.com/u/zdennis)\
**Replies:** 0\
**Last updated:** [December 24, 2007, 1:21am UTC](https://www.ruby-forum.com/t/who-runs-rubyonrailswebhost-com/124047 "2007-12-24T01:21:36Z")

</div>

Does anyone know who runs rubyonrailswebhost.com ? The email address on the contact page bounces. If you are the person who runs this site or if you know who is can you contact me privately. Thanks, Zach D. removed\_…

---

## [\[ANN\] REST in Place - RESTful Inplace-Editor](https://www.ruby-forum.com/t/ann-rest-in-place-restful-inplace-editor/124015)

<div class="topic-metadata">

**Author:** [@Java](https://www.ruby-forum.com/u/Java)\
**Replies:** 1\
**Last updated:** [December 24, 2007, 1:08am UTC](https://www.ruby-forum.com/t/ann-rest-in-place-restful-inplace-editor/124015 "2007-12-24T01:08:44Z")

</div>

Hi, since the old inplace\_editor plugin is pretty outdated, I decided to write a new one that uses a REST api and works seamlessly with RESTful rails controllers. Its main advantage is that you don’t need ANY special …

---

## [Comment requested on first Rails code](https://www.ruby-forum.com/t/comment-requested-on-first-rails-code/124044)

<div class="topic-metadata">

**Author:** [@janeden](https://www.ruby-forum.com/u/janeden)\
**Replies:** 1\
**Last updated:** [December 24, 2007, 12:20am UTC](https://www.ruby-forum.com/t/comment-requested-on-first-rails-code/124044 "2007-12-24T00:20:46Z")

</div>

Hi, I recently started playing with RoR, and I am not sure if I got my setup right. Could someone comment on the code below? Background: I want to expand/collapse a list of items. The expanded list represents a recur…

---

## [Collection\_select validation problem](https://www.ruby-forum.com/t/collection-select-validation-problem/123969)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [December 23, 2007, 11:39pm UTC](https://www.ruby-forum.com/t/collection-select-validation-problem/123969 "2007-12-23T23:39:47Z")

</div>

I’m trying to assign a parent foreign key value using collection\_select from my child “new” form. The problem I’m having is if I do not make a selection, I get the following error instead of the Rails validates\_prese…

---

## [Nested routes (2)](https://www.ruby-forum.com/t/nested-routes-2/124028)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 2\
**Last updated:** [December 23, 2007, 10:36pm UTC](https://www.ruby-forum.com/t/nested-routes-2/124028 "2007-12-23T22:36:35Z")

</div>

Rails 2.0.2 I am trying to rewrite my app routes to follow a good RESTFul pattern in the 2.0app version… I have a single resource ‘user’ and nested resource map.resource :user, :controller =\> “users”, :member =\> {:ne…

---

## [Boolean field naming conventions](https://www.ruby-forum.com/t/boolean-field-naming-conventions/124037)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 1\
**Last updated:** [December 23, 2007, 10:09pm UTC](https://www.ruby-forum.com/t/boolean-field-naming-conventions/124037 "2007-12-23T22:09:32Z")

</div>

I’m hip to the naming conventions in ruby, but not completely convinced how they translate when creating boolean database fields in Rails. For example, if I want to be able to call ‘approved?’ on a model, I presume th…

---

## [String concatenation but with a minor twist](https://www.ruby-forum.com/t/string-concatenation-but-with-a-minor-twist/124033)

<div class="topic-metadata">

**Author:** [@reback](https://www.ruby-forum.com/u/reback)\
**Replies:** 3\
**Last updated:** [December 23, 2007, 8:34pm UTC](https://www.ruby-forum.com/t/string-concatenation-but-with-a-minor-twist/124033 "2007-12-23T20:34:06Z")

</div>

Hello, I’m just starting out with RoR and have been playing around with making my own blog using RoR as a quick way of getting my feet wet. RoR is neat isn’t it! Liking the link\_to etc helpers, seems such a good way o…

---

## [Ruby-openid 2](https://www.ruby-forum.com/t/ruby-openid-2/123986)

<div class="topic-metadata">

**Author:** [@jney](https://www.ruby-forum.com/u/jney)\
**Replies:** 2\
**Last updated:** [December 23, 2007, 8:33pm UTC](https://www.ruby-forum.com/t/ruby-openid-2/123986 "2007-12-23T20:33:38Z")

</div>

hi, i updated, ruby-openid, since then open\_id\_authentication plugin does not work anymore. did it happened to someone else?

---

## [Form\_for w single resource](https://www.ruby-forum.com/t/form-for-w-single-resource/124032)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 1\
**Last updated:** [December 23, 2007, 8:25pm UTC](https://www.ruby-forum.com/t/form-for-w-single-resource/124032 "2007-12-23T20:25:10Z")

</div>

I wrote form\_for(:message, @message, :url =\> {user\_messages\_path} ) do |f| to POST a form in my routes, user is a single resource map.resource :user, :controller =\> “users”, :member =\> {:network =\> :get} do |user| …

---

## [Problems with Rake 0.8.0 and Engines 2.0](https://www.ruby-forum.com/t/problems-with-rake-0-8-0-and-engines-2-0/123995)

<div class="topic-metadata">

**Author:** [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Replies:** 1\
**Last updated:** [December 23, 2007, 7:32pm UTC](https://www.ruby-forum.com/t/problems-with-rake-0-8-0-and-engines-2-0/123995 "2007-12-23T19:32:57Z")

</div>

Anyone else run into this? undefined method last' for {}:Hash /Library/Ruby/Gems/1.8/gems/rake-0.8.0/lib/rake.rb:1654:inresolve\_args’ /Users/tony/src/clickcaster/vendor/plugins/engines/tasks/engines.rake:9:in redefine…

---

## [Nested routes](https://www.ruby-forum.com/t/nested-routes/123992)

<div class="topic-metadata">

**Author:** [@jonlog](https://www.ruby-forum.com/u/jonlog)\
**Replies:** 7\
**Last updated:** [December 23, 2007, 7:17pm UTC](https://www.ruby-forum.com/t/nested-routes/123992 "2007-12-23T19:17:09Z")

</div>

ROR 2.0.2 I have: map.resources :blogs do |blog| blog.resources :posts end in my routes.rb I am calling the route as: link\_to “(manage)”, posts\_path(@blog) I get the following error: Undefined method \`posts\_path…

---

## [Open-source Groupware/CMS Thetis ver.0.9.3\_2 released!](https://www.ruby-forum.com/t/open-source-groupware-cms-thetis-ver-0-9-3-2-released/123946)

<div class="topic-metadata">

**Author:** [@Shintaro](https://www.ruby-forum.com/u/Shintaro)\
**Replies:** 3\
**Last updated:** [December 23, 2007, 7:00pm UTC](https://www.ruby-forum.com/t/open-source-groupware-cms-thetis-ver-0-9-3-2-released/123946 "2007-12-23T19:00:07Z")

</div>

Hi all, \<\> is the world strongest Groupware/CMS based on RonR with highly sophisticated functional UI by Web2.0/Ajax. We have just released the new version of Thetis, ver.0.9.3\_2. This version realizes more comfort r…

---

## [Wrong number of arguments (2 for 1) attributes\_with\_quotes](https://www.ruby-forum.com/t/wrong-number-of-arguments-2-for-1-attributes-with-quotes/118117)

<div class="topic-metadata">

**Author:** [@chas](https://www.ruby-forum.com/u/chas)\
**Replies:** 3\
**Last updated:** [December 23, 2007, 6:45pm UTC](https://www.ruby-forum.com/t/wrong-number-of-arguments-2-for-1-attributes-with-quotes/118117 "2007-12-23T18:45:01Z")

</div>

I get this error whenever I use update\_attributes. I am using rails v.8008. I’ve uninstalled the rails gem, so I am definitely using the rails in vendor/rails (v. 8008). There was a change made to attributes\_with\_quot…

---

## [Rake db:migrate failing](https://www.ruby-forum.com/t/rake-db-migrate-failing/123962)

<div class="topic-metadata">

**Author:** [@ben\_wiseley](https://www.ruby-forum.com/u/ben_wiseley)\
**Replies:** 5\
**Last updated:** [December 23, 2007, 5:10pm UTC](https://www.ruby-forum.com/t/rake-db-migrate-failing/123962 "2007-12-23T17:10:02Z")

</div>

I’m running/developing some sites on Rails 2.0.2 and some on 1.2.6. I updated to 2.0.2 last night and, while the 1.2.6 sites (using engines) still seem to run perfectly (after replacing ‘require\_gem’ with ‘gem’ - whi…

---

## [Rails 2.0 scaffold](https://www.ruby-forum.com/t/rails-2-0-scaffold/123940)

<div class="topic-metadata">

**Author:** [@supasta](https://www.ruby-forum.com/u/supasta)\
**Replies:** 8\
**Last updated:** [December 23, 2007, 3:25pm UTC](https://www.ruby-forum.com/t/rails-2-0-scaffold/123940 "2007-12-23T15:25:07Z")

</div>

Hey guys, I posted the other day about scaffold not working and i was told that it was rails 2.0 doing this. (btw i’m using adgile web development) I have read on the internet that you need to put extra stuff like tit…

---

## [Rails 2.0 rescue\_from](https://www.ruby-forum.com/t/rails-2-0-rescue-from/123949)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 8\
**Last updated:** [December 23, 2007, 2:50pm UTC](https://www.ruby-forum.com/t/rails-2-0-rescue-from/123949 "2007-12-23T14:50:28Z")

</div>

I am trying to use the new Rails 2.0 macro : rescue\_from class PostsController \< ApplicationController rescue\_from ActiveRecord::RecordNotFound, :with =\> :deny\_access … def show @post = Post.find\_by\_id(params\[:id\]) …

---

## [InvalidAuthenticityToken problems with my login form](https://www.ruby-forum.com/t/invalidauthenticitytoken-problems-with-my-login-form/124007)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 4\
**Last updated:** [December 23, 2007, 1:59pm UTC](https://www.ruby-forum.com/t/invalidauthenticitytoken-problems-with-my-login-form/124007 "2007-12-23T13:59:15Z")

</div>

I am trying to convert my codeand to use the new Rails 2.0 feature RequestForgeryProtection but I get an InvalidAuthenticityToken error, right from the beginning with my login form… I followed the recommandations : …

---

## [Ajax - live search doesnÂ´t work, pls help](https://www.ruby-forum.com/t/ajax-live-search-doesna-t-work-pls-help/124011)

<div class="topic-metadata">

**Author:** [@markthomas](https://www.ruby-forum.com/u/markthomas)\
**Replies:** 0\
**Last updated:** [December 23, 2007, 1:54pm UTC](https://www.ruby-forum.com/t/ajax-live-search-doesna-t-work-pls-help/124011 "2007-12-23T13:54:03Z")

</div>

Hello, I have followed the tutorial on: but when I tried to search I didnÂ´t get any results at “XML”. I have the information in the database and everything seems to work fine. The server types “127.0.0.1 - - \[23/D…

---

## [Validations over hashed password](https://www.ruby-forum.com/t/validations-over-hashed-password/124008)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 0\
**Last updated:** [December 23, 2007, 11:37am UTC](https://www.ruby-forum.com/t/validations-over-hashed-password/124008 "2007-12-23T11:37:06Z")

</div>

I have this method in user.rb that automatically converts password to SHA1 hash def password=(value) write\_attribute("password", Digest::SHA1.hexdigest(value)) end but my user model validations dont seem to work p…

---

## [Simple and elegant checkboxes with has\_many through impossible?](https://www.ruby-forum.com/t/simple-and-elegant-checkboxes-with-has-many-through-impossible/124005)

<div class="topic-metadata">

**Author:** [@Nowy](https://www.ruby-forum.com/u/Nowy)\
**Replies:** 0\
**Last updated:** [December 23, 2007, 11:22am UTC](https://www.ruby-forum.com/t/simple-and-elegant-checkboxes-with-has-many-through-impossible/124005 "2007-12-23T11:22:42Z")

</div>

Hi, Im currently developing simple website to manage some sort of product. Every product has its own product\_categories, so these are related with has\_many :through association. product has many product categories. i…

---

## [Test](https://www.ruby-forum.com/t/test/124002)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 0\
**Last updated:** [December 23, 2007, 9:19am UTC](https://www.ruby-forum.com/t/test/124002 "2007-12-23T09:19:14Z")

</div>

why do so many gmane posts fail? Is it the size? It only seems to be for this group :frowning: -Thufir

---

## [Beginner problem](https://www.ruby-forum.com/t/beginner-problem/123972)

<div class="topic-metadata">

**Author:** [@seanbear](https://www.ruby-forum.com/u/seanbear)\
**Replies:** 6\
**Last updated:** [December 23, 2007, 5:04am UTC](https://www.ruby-forum.com/t/beginner-problem/123972 "2007-12-23T05:04:26Z")

</div>

Hey all you RoR experts/fanatics! Let me start by saying: If this is the wrong forum to post in, I humbly apologize. I am not normally a forum junkie or anything, but after spending 4 days reading half a dozen differ…

---

## [Undefined method \`paginate'](https://www.ruby-forum.com/t/undefined-method-paginate/122995)

<div class="topic-metadata">

**Author:** [@huang\_zhimin](https://www.ruby-forum.com/u/huang_zhimin)\
**Replies:** 7\
**Last updated:** [December 23, 2007, 3:11am UTC](https://www.ruby-forum.com/t/undefined-method-paginate/122995 "2007-12-23T03:11:38Z")

</div>

I have updated rails to 2.0.1. When I wrote a blog demo, I got NoMethodError undefined method ‘scaffold’ I searched with google and installed scaffolding plugin, now the undefined method ‘scaffold’ has gone, but the…

---

## [Format for getting time to display as 8:30 PM not 08:30 PM?](https://www.ruby-forum.com/t/format-for-getting-time-to-display-as-8-30-pm-not-08-30-pm/121386)

<div class="topic-metadata">

**Author:** [@sharon](https://www.ruby-forum.com/u/sharon)\
**Replies:** 6\
**Last updated:** [December 23, 2007, 3:09am UTC](https://www.ruby-forum.com/t/format-for-getting-time-to-display-as-8-30-pm-not-08-30-pm/121386 "2007-12-23T03:09:17Z")

</div>

Is there a strftime format I’m missing that would get a time to display as 8:30 PM instead of 08:30 PM? Using @mytime.strftime(" %I:%M %p") gives me a display like 08:30 PM, but I’d like it to show as h:mm and not hh:…

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

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