# Rails

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

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

---

## [Newbie question: running lighttpd](https://www.ruby-forum.com/t/newbie-question-running-lighttpd/180794)

<div class="topic-metadata">

**Author:** [@no\_name](https://www.ruby-forum.com/u/no_name)\
**Replies:** 0\
**Last updated:** [December 29, 2009, 9:03am UTC](https://www.ruby-forum.com/t/newbie-question-running-lighttpd/180794 "2009-12-29T09:03:58Z")

</div>

Hi all– Very new, just installed rails on my Slackware Linux system. I’m trying to start a webserver on my local machine. I want to run lighttpd, but I can’t seem to get it to start. I have lighttpd, mongrel, and WE…

---

## [Using current\_page? With An Edit Route](https://www.ruby-forum.com/t/using-current-page-with-an-edit-route/180786)

<div class="topic-metadata">

**Author:** [@MaggotChild](https://www.ruby-forum.com/u/MaggotChild)\
**Replies:** 0\
**Last updated:** [December 29, 2009, 4:17am UTC](https://www.ruby-forum.com/t/using-current-page-with-an-edit-route/180786 "2009-12-29T04:17:46Z")

</div>

current\_page?(:action =\> ‘edit’, :controller =\> ‘admin/products’) fails with an ActionView::TemplateError (No route matches …) unless I’m in the edit action or I provide the :id. Route: /admin/products/:id/edit(.:for…

---

## [I want to link html pages to my app](https://www.ruby-forum.com/t/i-want-to-link-html-pages-to-my-app/180755)

<div class="topic-metadata">

**Author:** [@Oluwayomi\_O](https://www.ruby-forum.com/u/Oluwayomi_O)\
**Replies:** 3\
**Last updated:** [December 29, 2009, 2:44am UTC](https://www.ruby-forum.com/t/i-want-to-link-html-pages-to-my-app/180755 "2009-12-29T02:44:41Z")

</div>

Hello,I have app-an online B2C site selling books.I want to put hyperlinks on my page.Where do i store the html files that my views will call? Regards and Respects, Kindness in thought leads to wisdom. Kindness in s…

---

## [Find\_in\_batch and postgres hanging](https://www.ruby-forum.com/t/find-in-batch-and-postgres-hanging/180781)

<div class="topic-metadata">

**Author:** [@hangingclowns](https://www.ruby-forum.com/u/hangingclowns)\
**Replies:** 0\
**Last updated:** [December 29, 2009, 12:49am UTC](https://www.ruby-forum.com/t/find-in-batch-and-postgres-hanging/180781 "2009-12-29T00:49:46Z")

</div>

Running the command: Event.find\_in\_batches(:conditions =\> \["gw\_out\_time + interval ‘60 days’ now()"\]) is causing a virtual hang. Not even control C will break it. If I remove the “interval ‘60 days’” part, it works…

---

## [Corkd.com Application?](https://www.ruby-forum.com/t/corkd-com-application/180773)

<div class="topic-metadata">

**Author:** [@Heartlander](https://www.ruby-forum.com/u/Heartlander)\
**Replies:** 2\
**Last updated:** [December 28, 2009, 11:58pm UTC](https://www.ruby-forum.com/t/corkd-com-application/180773 "2009-12-28T23:58:28Z")

</div>

Can anyone tell my anything about the application of ROR at Corkd.com? I’m especially interested in the live feed of reviews and such, and the rating system. I have an unrelated niche that might benefit from something…

---

## [Updating Scriptaculous and Prototype with current project](https://www.ruby-forum.com/t/updating-scriptaculous-and-prototype-with-current-project/180752)

<div class="topic-metadata">

**Author:** [@Ruby\_on\_RailsS\_Talk](https://www.ruby-forum.com/u/Ruby_on_RailsS_Talk)\
**Replies:** 3\
**Last updated:** [December 28, 2009, 9:09pm UTC](https://www.ruby-forum.com/t/updating-scriptaculous-and-prototype-with-current-project/180752 "2009-12-28T21:09:17Z")

</div>

Hi I’ve been trying to use the latest version of Lightview. It says that it needs: Lightview requires Prototype 1.6.1 and Scriptaculous 1.8.2. I have included the following in my project files: But this obviously …

---

## [REST and context](https://www.ruby-forum.com/t/rest-and-context/180757)

<div class="topic-metadata">

**Author:** [@Evan\_C](https://www.ruby-forum.com/u/Evan_C)\
**Replies:** 1\
**Last updated:** [December 28, 2009, 5:40pm UTC](https://www.ruby-forum.com/t/rest-and-context/180757 "2009-12-28T17:40:39Z")

</div>

hi all. I’m developing my latest rails app using a REST style. I’ve hit a bit of a problem with context however. Let’s say I have an Item model. I’m using edit/update to handle the processing, but the model is edited …

---

## [Writing content in Textile format instead of HTML](https://www.ruby-forum.com/t/writing-content-in-textile-format-instead-of-html/180709)

<div class="topic-metadata">

**Author:** [@unebaguettesvp](https://www.ruby-forum.com/u/unebaguettesvp)\
**Replies:** 1\
**Last updated:** [December 28, 2009, 5:16pm UTC](https://www.ruby-forum.com/t/writing-content-in-textile-format-instead-of-html/180709 "2009-12-28T17:16:16Z")

</div>

People, I have a simple rails web site and I have been creating some of the content files with HTML but thought I should be able to write them using Textile instead. eg I have an index file: index.html.erb that has…

---

## [Cross Browser Check](https://www.ruby-forum.com/t/cross-browser-check/180733)

<div class="topic-metadata">

**Author:** [@saurabhpurnaye](https://www.ruby-forum.com/u/saurabhpurnaye)\
**Replies:** 3\
**Last updated:** [December 28, 2009, 4:22pm UTC](https://www.ruby-forum.com/t/cross-browser-check/180733 "2009-12-28T16:22:57Z")

</div>

Hi All, I’m having the following query: My site is http://www.example1.com and there is another site http://www.example2.com (not mine), can I keep a track of how many people visited http://www.example2.com as there …

---

## [Div disappearing when enclosed partial re-rendered](https://www.ruby-forum.com/t/div-disappearing-when-enclosed-partial-re-rendered/180753)

<div class="topic-metadata">

**Author:** [@RVince](https://www.ruby-forum.com/u/RVince)\
**Replies:** 0\
**Last updated:** [December 28, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/div-disappearing-when-enclosed-partial-re-rendered/180753 "2009-12-28T15:25:35Z")

</div>

Below is controller code wherein asses gets called, and subsequently (re) renders the "hand’ partial (which is enclosed in the view “play” (which is what was originally called to invoke this whole thing). It contains …

---

## [Override .find, .find\_by\_id, etc](https://www.ruby-forum.com/t/override-find-find-by-id-etc/180736)

<div class="topic-metadata">

**Author:** [@ledowong](https://www.ruby-forum.com/u/ledowong)\
**Replies:** 2\
**Last updated:** [December 28, 2009, 3:17pm UTC](https://www.ruby-forum.com/t/override-find-find-by-id-etc/180736 "2009-12-28T15:17:23Z")

</div>

I read these: http://www.ruby-forum.com/topic/185297#new http://www.freezzo.com/2008/05/14/override-default-find-conditions-for-model/ it works, it override the .find perfectly, however it does not cover .find\_by\_id …

---

## [Git](https://www.ruby-forum.com/t/git/180730)

<div class="topic-metadata">

**Author:** [@pepe](https://www.ruby-forum.com/u/pepe)\
**Replies:** 4\
**Last updated:** [December 28, 2009, 3:16pm UTC](https://www.ruby-forum.com/t/git/180730 "2009-12-28T15:16:48Z")

</div>

Sorry if this is not the appropriate forum for the question. How long does it take to get used to using git? I have never used a version control system and I don’t want to go through the pain much longer. Thanks in a…

---

## [Difficulties in understanding Rail-Plugins in depth](https://www.ruby-forum.com/t/difficulties-in-understanding-rail-plugins-in-depth/180727)

<div class="topic-metadata">

**Author:** [@k-b](https://www.ruby-forum.com/u/k-b)\
**Replies:** 5\
**Last updated:** [December 28, 2009, 2:37pm UTC](https://www.ruby-forum.com/t/difficulties-in-understanding-rail-plugins-in-depth/180727 "2009-12-28T14:37:35Z")

</div>

Hi, i try to understand how plugins work in detail. Often you see stuff like: class Post \< ActiveRecord::Base acts\_as\_commentable end I wonder what’s happen all there. What kind of language-feature is behind this …

---

## [Multi-file upload and Mongrel problem - "Too many files open"](https://www.ruby-forum.com/t/multi-file-upload-and-mongrel-problem-too-many-files-open/180748)

<div class="topic-metadata">

**Author:** [@MJFuzz](https://www.ruby-forum.com/u/MJFuzz)\
**Replies:** 1\
**Last updated:** [December 28, 2009, 1:56pm UTC](https://www.ruby-forum.com/t/multi-file-upload-and-mongrel-problem-too-many-files-open/180748 "2009-12-28T13:56:17Z")

</div>

Hello all… Wonder if someone can shed some light on this. I’m trying to implement a multi-file upload using a Java based uploader called “Aurigma” (http://www.aurigma.com/Products/ImageUploader/). Its a widely used c…

---

## [Mysql::Error: Lock wait timeout exceeded; try restarting transaction](https://www.ruby-forum.com/t/mysql-lock-wait-timeout-exceeded-try-restarting-transaction/180747)

<div class="topic-metadata">

**Author:** [@san2821](https://www.ruby-forum.com/u/san2821)\
**Replies:** 3\
**Last updated:** [December 28, 2009, 1:17pm UTC](https://www.ruby-forum.com/t/mysql-lock-wait-timeout-exceeded-try-restarting-transaction/180747 "2009-12-28T13:17:24Z")

</div>

Hello all I am using acts\_as\_ferret in user model. Error Message: ActiveRecord::StatementInvalid: Mysql::Error: Lock wait timeout exceeded; try restarting transaction: UPDATE users SET updated\_at = ‘2009-12-28 14:…

---

## [Re: Internalization: select languages](https://www.ruby-forum.com/t/re-internalization-select-languages/180744)

<div class="topic-metadata">

**Author:** [@christoph\_j](https://www.ruby-forum.com/u/christoph_j)\
**Replies:** 0\
**Last updated:** [December 28, 2009, 11:31am UTC](https://www.ruby-forum.com/t/re-internalization-select-languages/180744 "2009-12-28T11:31:27Z")

</div>

thanks Hassan, but I will stick with flags instead of language names. I solved my problem with “link\_to\_unless\_current” instead of a “select\_tag”. It was that simple. Chris – You received this message because you a…

---

## [Get a Selected value](https://www.ruby-forum.com/t/get-a-selected-value/180742)

<div class="topic-metadata">

**Author:** [@isabel](https://www.ruby-forum.com/u/isabel)\
**Replies:** 0\
**Last updated:** [December 28, 2009, 11:19am UTC](https://www.ruby-forum.com/t/get-a-selected-value/180742 "2009-12-28T11:19:09Z")

</div>

Hi, I wonder how is possible to get a value that has been selected from the elemenet “select” within a form. This is my case: \<td\>\<%= select :worker\_contract, :contract\_type\_id, contract\_types\_for\_select.map{|c| \[c.…

---

## [Re: git](https://www.ruby-forum.com/t/re-git/180739)

<div class="topic-metadata">

**Author:** [@christoph\_j](https://www.ruby-forum.com/u/christoph_j)\
**Replies:** 0\
**Last updated:** [December 28, 2009, 11:15am UTC](https://www.ruby-forum.com/t/re-git/180739 "2009-12-28T11:15:04Z")

</div>

Instead of reading you could also watch some really screencasts: (free) www.gitcasts.com (a lot of topics from basics to mastery) (paid) http://peepcode.com/products/git ($9.00) for a 1h video which teaches you the b…

---

## [Best payment method in Rails](https://www.ruby-forum.com/t/best-payment-method-in-rails/180694)

<div class="topic-metadata">

**Author:** [@artchrst](https://www.ruby-forum.com/u/artchrst)\
**Replies:** 8\
**Last updated:** [December 28, 2009, 11:02am UTC](https://www.ruby-forum.com/t/best-payment-method-in-rails/180694 "2009-12-28T11:02:46Z")

</div>

Hi Guys, I am implementing a website with payment for the courses. There are supposed to have a few hundreds payment / mth. My website is outside US (in Asia). I’ve implemented paypal for my Rails application. Howev…

---

## [Rails OpenSSL Problem on Win7 x64](https://www.ruby-forum.com/t/rails-openssl-problem-on-win7-x64/180719)

<div class="topic-metadata">

**Author:** [@zamo](https://www.ruby-forum.com/u/zamo)\
**Replies:** 3\
**Last updated:** [December 28, 2009, 10:33am UTC](https://www.ruby-forum.com/t/rails-openssl-problem-on-win7-x64/180719 "2009-12-28T10:33:17Z")

</div>

Hi, I’ve encountered this error : =\> Booting Mongrel =\> Rails 2.3.5 application starting on http://127.0.0.1:3344 D:/nu codes/R/ruby-1.8.7-p248-i386-mswin32/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:271:…

---

## [HTML shortcuts](https://www.ruby-forum.com/t/html-shortcuts/89538)

<div class="topic-metadata">

**Author:** [@ckonrad](https://www.ruby-forum.com/u/ckonrad)\
**Replies:** 5\
**Last updated:** [December 28, 2009, 9:43am UTC](https://www.ruby-forum.com/t/html-shortcuts/89538 "2009-12-28T09:43:21Z")

</div>

I am just learning ruby on rails, i have known HTML for a few years now and i dont really see how the HTML control shortcuts in Erb are shortcuts they just seem to be a different way of creating an HTML control not a …

---

## [Draw the multiple points on same label](https://www.ruby-forum.com/t/draw-the-multiple-points-on-same-label/180734)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 0\
**Last updated:** [December 28, 2009, 9:20am UTC](https://www.ruby-forum.com/t/draw-the-multiple-points-on-same-label/180734 "2009-12-28T09:20:39Z")

</div>

Hi I have one problem for gruff. I am able to create the graph by using the gruff lib. I have written the following code for this:- g = Gruff::Line.new(600) g.data("Round", \[60, 50, 30, 40, 54, 31,75,45,50,54\], '#DF…

---

## [Rails 2.0 map.namespace and path\_prefix](https://www.ruby-forum.com/t/rails-2-0-map-namespace-and-path-prefix/123221)

<div class="topic-metadata">

**Author:** [@gregd](https://www.ruby-forum.com/u/gregd)\
**Replies:** 2\
**Last updated:** [December 28, 2009, 8:45am UTC](https://www.ruby-forum.com/t/rails-2-0-map-namespace-and-path-prefix/123221 "2009-12-28T08:45:00Z")

</div>

Hi! I’m trying set up new routing in rails 2.0 and have 1 problem map.namespace :admin do |admin| admin.resources :permissions, :path\_prefix =\> ‘/:lang’ end i want have addres like this: http://site.com/en/admin/pe…

---

## [To\_hash](https://www.ruby-forum.com/t/to-hash/180731)

<div class="topic-metadata">

**Author:** [@jasonwold](https://www.ruby-forum.com/u/jasonwold)\
**Replies:** 0\
**Last updated:** [December 28, 2009, 6:57am UTC](https://www.ruby-forum.com/t/to-hash/180731 "2009-12-28T06:57:08Z")

</div>

Author : Jason Wang Date : 2009/28/12 mailto: removed\_email\_address@domain.invalid The code convert an array to hash by specified method of the object in the array. Examples class Address attr\_accessor :street, :city …

---

## [Ruby/rails/debugger variable dump question](https://www.ruby-forum.com/t/ruby-rails-debugger-variable-dump-question/180724)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 1\
**Last updated:** [December 28, 2009, 1:27am UTC](https://www.ruby-forum.com/t/ruby-rails-debugger-variable-dump-question/180724 "2009-12-28T01:27:22Z")

</div>

newbie here. (OT: Happy New Year, all.) I placed a debugger statement into my ROR app and run ruby script/server webrick --debugger My app hit the debugger statement. I then did a var local (rdb:68) var local \_ …

---

## [Creating a special UL LI menu and having issues with subpage](https://www.ruby-forum.com/t/creating-a-special-ul-li-menu-and-having-issues-with-subpage/180666)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 4\
**Last updated:** [December 28, 2009, 1:03am UTC](https://www.ruby-forum.com/t/creating-a-special-ul-li-menu-and-having-issues-with-subpage/180666 "2009-12-28T01:03:58Z")

</div>

I’m having a little trouble with trying to get a UL menu working with rails. It’s working somewhat, but not the way it needs to. I’ll explain after I post the code. First, I’ve created a page administration system s…

---

## [How can i cancel the effect of a command-generate controller in my app](https://www.ruby-forum.com/t/how-can-i-cancel-the-effect-of-a-command-generate-controller-in-my-app/180704)

<div class="topic-metadata">

**Author:** [@Oluwayomi\_O](https://www.ruby-forum.com/u/Oluwayomi_O)\
**Replies:** 10\
**Last updated:** [December 27, 2009, 8:34pm UTC](https://www.ruby-forum.com/t/how-can-i-cancel-the-effect-of-a-command-generate-controller-in-my-app/180704 "2009-12-27T20:34:11Z")

</div>

Hellowhat command can i sue to get rid of the effect of the Â below command ruby script/generate scaffold \\ user name:string hashed\_password:string salt:string Regards and Respects, Kindness in thought leads to wis…

---

## [Rescue\_from ActionController::RoutingError II](https://www.ruby-forum.com/t/rescue-from-actioncontroller-routingerror-ii/180643)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 18\
**Last updated:** [December 27, 2009, 7:32pm UTC](https://www.ruby-forum.com/t/rescue-from-actioncontroller-routingerror-ii/180643 "2009-12-27T19:32:30Z")

</div>

OK … so I’m not supposed to use it but … Why doesn’t rescue\_from ActionController::RoutingError work witht he code from http://www.rubyplus.org/episodes/20-Extended-RESTful-Authentication-Rails-2-App.html class Appli…

---

## [NoMethodError: undefined method \`url\_for'](https://www.ruby-forum.com/t/nomethoderror-undefined-method-url-for/91718)

<div class="topic-metadata">

**Author:** [@jimache](https://www.ruby-forum.com/u/jimache)\
**Replies:** 2\
**Last updated:** [December 27, 2009, 5:48pm UTC](https://www.ruby-forum.com/t/nomethoderror-undefined-method-url-for/91718 "2009-12-27T17:48:46Z")

</div>

Hi every one, I wrote a Utility class for my application, and i want to use “url\_for”, I included the url\_helper but i get this error NoMethodError: undefined method \`url\_for’ for UtilityBatch:Class i tried require…

---

## [Trainer On Rails is back !â€](https://www.ruby-forum.com/t/trainer-on-rails-is-back-a/180712)

<div class="topic-metadata">

**Author:** [@MarcRic](https://www.ruby-forum.com/u/MarcRic)\
**Replies:** 0\
**Last updated:** [December 27, 2009, 10:12am UTC](https://www.ruby-forum.com/t/trainer-on-rails-is-back-a/180712 "2009-12-27T10:12:45Z")

</div>

Hi Folks, Just a friendly advice: Trainer On Rails is back. I’m still tidying it up. My intention is to get everything there in Rails ASAP. The final Rails course format should be very similar to the one used by Sat…

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

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