# Rails

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

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

---

## [Autotest: No such file or directory - -u (Errno::ENOENT)](https://www.ruby-forum.com/t/autotest-no-such-file-or-directory-u-errno-enoent/176210)

<div class="topic-metadata">

**Author:** [@jhosteny](https://www.ruby-forum.com/u/jhosteny)\
**Replies:** 0\
**Last updated:** [September 26, 2009, 4:27pm UTC](https://www.ruby-forum.com/t/autotest-no-such-file-or-directory-u-errno-enoent/176210 "2009-09-26T16:27:07Z")

</div>

Hi there, I currently can not get autottest to run: loading autotest/rails /opt/local/bin/ruby -I.:lib:test -rubygems -e “%w\[test/unit test/functional/home\_controller\_test.rb test/unit/helpers/home\_helper\_test.rb\].e…

---

## [Cms like routes](https://www.ruby-forum.com/t/cms-like-routes/176147)

<div class="topic-metadata">

**Author:** [@fredd](https://www.ruby-forum.com/u/fredd)\
**Replies:** 2\
**Last updated:** [September 26, 2009, 2:51pm UTC](https://www.ruby-forum.com/t/cms-like-routes/176147 "2009-09-26T14:51:44Z")

</div>

Hi! I need to be able to construct urls that looks something like this: news/sport/1-article. The news/sport part is a section that an article can be posted in. The idea is that sections can be nested and that it shou…

---

## [Calling ActionView from uninheriting class](https://www.ruby-forum.com/t/calling-actionview-from-uninheriting-class/176102)

<div class="topic-metadata">

**Author:** [@Dudebot](https://www.ruby-forum.com/u/Dudebot)\
**Replies:** 2\
**Last updated:** [September 26, 2009, 1:36pm UTC](https://www.ruby-forum.com/t/calling-actionview-from-uninheriting-class/176102 "2009-09-26T13:36:47Z")

</div>

Hi Gurus, I have a class, specified in models cart.rb, which doesn’t inherit from anything–it’s just a container class Cart … I just discovered I can’t call number\_to\_currency in that class. Any idea how to “includ…

---

## [Paperclip with external url and asset\_host?](https://www.ruby-forum.com/t/paperclip-with-external-url-and-asset-host/176207)

<div class="topic-metadata">

**Author:** [@aftershock](https://www.ruby-forum.com/u/aftershock)\
**Replies:** 0\
**Last updated:** [September 26, 2009, 1:22pm UTC](https://www.ruby-forum.com/t/paperclip-with-external-url-and-asset-host/176207 "2009-09-26T13:22:41Z")

</div>

Hi, I’m trying to get Paperclip to work with asset\_host and have totally failed to do so. The idea is to use asset\_host to specify the url that I want to use for my image hosting (www.unlimitedwebhosting.co.uk) so th…

---

## [Ruby on Rails - Developers for NCR Delhi](https://www.ruby-forum.com/t/ruby-on-rails-developers-for-ncr-delhi/176205)

<div class="topic-metadata">

**Author:** [@Indus](https://www.ruby-forum.com/u/Indus)\
**Replies:** 0\
**Last updated:** [September 26, 2009, 12:52pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-developers-for-ncr-delhi/176205 "2009-09-26T12:52:52Z")

</div>

Hi , We are looking for RUBY ON RAILS professionals for our UK Base clients for Gurgaon office. Pl confirm me asap with your updated resume with following details on removed\_email\_address@domain.invalid or removed\_ema…

---

## [I'm restarting to work with ruby on rails, but having configurations problems](https://www.ruby-forum.com/t/im-restarting-to-work-with-ruby-on-rails-but-having-configurations-problems/176198)

<div class="topic-metadata">

**Author:** [@Delirium\_tremens](https://www.ruby-forum.com/u/Delirium_tremens)\
**Replies:** 4\
**Last updated:** [September 26, 2009, 12:52pm UTC](https://www.ruby-forum.com/t/im-restarting-to-work-with-ruby-on-rails-but-having-configurations-problems/176198 "2009-09-26T12:52:52Z")

</div>

I have the Shovell source code from the book Simply Rails 2, but I’m having problems running it. "Getting started Here’s how to get rolling: 1. Create your databases and edit config/database.yml Rails …

---

## [How to check type of ajax response](https://www.ruby-forum.com/t/how-to-check-type-of-ajax-response/176203)

<div class="topic-metadata">

**Author:** [@bgumbiker](https://www.ruby-forum.com/u/bgumbiker)\
**Replies:** 0\
**Last updated:** [September 26, 2009, 11:30am UTC](https://www.ruby-forum.com/t/how-to-check-type-of-ajax-response/176203 "2009-09-26T11:30:22Z")

</div>

Hello, When my post message is successfully saved I am returning simple message via: flash\[:notice\] = “OK” and when there are some errors due to validation I return the message in similar way: flash\[:notice\] = form…

---

## [Drop down list?](https://www.ruby-forum.com/t/drop-down-list/176128)

<div class="topic-metadata">

**Author:** [@Dudebot](https://www.ruby-forum.com/u/Dudebot)\
**Replies:** 8\
**Last updated:** [September 26, 2009, 9:39am UTC](https://www.ruby-forum.com/t/drop-down-list/176128 "2009-09-26T09:39:45Z")

</div>

Hi Gurus, I’m trying to tackle a drop down list. I have category and item dbs, and they’re wired up with category has\_many :items and item belongs\_to :category, and an item has a category\_id. I have this code in my …

---

## [Widgets](https://www.ruby-forum.com/t/widgets/175995)

<div class="topic-metadata">

**Author:** [@smit\_shah](https://www.ruby-forum.com/u/smit_shah)\
**Replies:** 2\
**Last updated:** [September 26, 2009, 5:57am UTC](https://www.ruby-forum.com/t/widgets/175995 "2009-09-26T05:57:25Z")

</div>

Hi All, Any one is having any idea about how to create widgets in rails??? Thanks in advance…

---

## [I've been trying to reply to a post, but none of my responses are taking](https://www.ruby-forum.com/t/ive-been-trying-to-reply-to-a-post-but-none-of-my-responses-are-taking/176196)

<div class="topic-metadata">

**Author:** [@richardun](https://www.ruby-forum.com/u/richardun)\
**Replies:** 0\
**Last updated:** [September 26, 2009, 3:31am UTC](https://www.ruby-forum.com/t/ive-been-trying-to-reply-to-a-post-but-none-of-my-responses-are-taking/176196 "2009-09-26T03:31:34Z")

</div>

http://groups.google.com/group/rubyonrails-talk/browse\_thread/thread/cf59e09f98981f27/42caa6a0b45fd271#42caa6a0b45fd271 I’ve been trying to say this: I responded just a bit ago, but I don’t see my response, so hopefull…

---

## [ActiveRecord in a generator?](https://www.ruby-forum.com/t/activerecord-in-a-generator/176193)

<div class="topic-metadata">

**Author:** [@elliottg](https://www.ruby-forum.com/u/elliottg)\
**Replies:** 2\
**Last updated:** [September 26, 2009, 2:56am UTC](https://www.ruby-forum.com/t/activerecord-in-a-generator/176193 "2009-09-26T02:56:26Z")

</div>

How would one access ActiveRecord methods inside of Rails::Generator::NamedBase? Thanks, Elliott

---

## [Exists? weirdness](https://www.ruby-forum.com/t/exists-weirdness/176194)

<div class="topic-metadata">

**Author:** [@Dudebot](https://www.ruby-forum.com/u/Dudebot)\
**Replies:** 1\
**Last updated:** [September 26, 2009, 1:53am UTC](https://www.ruby-forum.com/t/exists-weirdness/176194 "2009-09-26T01:53:47Z")

</div>

This works: @items = Item.find( :all, :conditions =\> \[ “category\_id = ? AND position = ?”, category\_id, position \] ) if @items.size \> 0 … But this: if Item.exists?( :conditions =\> \[ “category\_id = ? AND position = ?…

---

## [Dynamic form problem](https://www.ruby-forum.com/t/dynamic-form-problem/176112)

<div class="topic-metadata">

**Author:** [@Jedrin](https://www.ruby-forum.com/u/Jedrin)\
**Replies:** 14\
**Last updated:** [September 26, 2009, 12:27am UTC](https://www.ruby-forum.com/t/dynamic-form-problem/176112 "2009-09-26T00:27:07Z")

</div>

I have a form that when a user changes a selection field ‘data\_fmt’ to a certain value, then a different selection ‘data\_level’ has a different set of available selections drop downs and a check box field may appear o…

---

## [How can I use Apache to serve static content for a RoR app when I have only .htaccess access (and c](https://www.ruby-forum.com/t/how-can-i-use-apache-to-serve-static-content-for-a-ror-app-when-i-have-only-htaccess-access-and-c/175989)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 5\
**Last updated:** [September 25, 2009, 11:42pm UTC](https://www.ruby-forum.com/t/how-can-i-use-apache-to-serve-static-content-for-a-ror-app-when-i-have-only-htaccess-access-and-c/175989 "2009-09-25T23:42:03Z")

</div>

Hi, Are there any Rails/Apache guru’s that might know if it’s possible (and how) to have the ability for users to upload their content to my RoR application but then subsequent access to such static content would be: …

---

## [Nested model form error messages](https://www.ruby-forum.com/t/nested-model-form-error-messages/176184)

<div class="topic-metadata">

**Author:** [@tnyplz](https://www.ruby-forum.com/u/tnyplz)\
**Replies:** 0\
**Last updated:** [September 25, 2009, 10:49pm UTC](https://www.ruby-forum.com/t/nested-model-form-error-messages/176184 "2009-09-25T22:49:57Z")

</div>

I have a form that updates 3 models. To the end user its just a form and they don’t need to know what is happening behind the scenes. My problem is that the error\_messages\_for prefixes errors on associations with t…

---

## [Authlogic - Render Partial](https://www.ruby-forum.com/t/authlogic-render-partial/176118)

<div class="topic-metadata">

**Author:** [@bui](https://www.ruby-forum.com/u/bui)\
**Replies:** 5\
**Last updated:** [September 25, 2009, 10:19pm UTC](https://www.ruby-forum.com/t/authlogic-render-partial/176118 "2009-09-25T22:19:31Z")

</div>

New to Rails. Using Authlogic for authentication and went through tutorial at github. Having a bit of a problem getting the login screen to render as a partial from a different view file. I have a index.html.erb vie…

---

## [Invitation to connect on LinkedIn](https://www.ruby-forum.com/t/invitation-to-connect-on-linkedin/176181)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 0\
**Last updated:** [September 25, 2009, 9:55pm UTC](https://www.ruby-forum.com/t/invitation-to-connect-on-linkedin/176181 "2009-09-25T21:55:31Z")

</div>

LinkedIn Roger P. requested to add you as a connection on LinkedIn: Mitin, I’d like to add you to my professional network on LinkedIn. Roger Accept invitation from Roger P. View invitation from Roger P. LinkedI…

---

## [Last call: Rails Training in Chicago on Oct. 24](https://www.ruby-forum.com/t/last-call-rails-training-in-chicago-on-oct-24/176179)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 0\
**Last updated:** [September 25, 2009, 9:54pm UTC](https://www.ruby-forum.com/t/last-call-rails-training-in-chicago-on-oct-24/176179 "2009-09-25T21:54:20Z")

</div>

Registration closes soon for “Rails for Everyone”, a beginner’s class to Ruby and the Rails framework. For those on this list that might not already be familiar with Purple Workshops, all of our public workshops are s…

---

## [How to remove bogusetag by hpricot?](https://www.ruby-forum.com/t/how-to-remove-bogusetag-by-hpricot/176143)

<div class="topic-metadata">

**Author:** [@flyerhzm](https://www.ruby-forum.com/u/flyerhzm)\
**Replies:** 1\
**Last updated:** [September 25, 2009, 9:01pm UTC](https://www.ruby-forum.com/t/how-to-remove-bogusetag-by-hpricot/176143 "2009-09-25T21:01:04Z")

</div>

I have use hpricot to translate users’ input html. I want to remove bogusetag as follows: doc = Hpricot " test world ", :xhtml\_strict =\> true =\>#\<Hpricot::Doc {elem " test world" {bogusetag } }\> doc.to\_s =\>" …

---

## [Job Post - Ruby on Rails Jr Programmer/Tester - Austin, TX](https://www.ruby-forum.com/t/job-post-ruby-on-rails-jr-programmer-tester-austin-tx/176173)

<div class="topic-metadata">

**Author:** [@amwfllc](https://www.ruby-forum.com/u/amwfllc)\
**Replies:** 0\
**Last updated:** [September 25, 2009, 7:37pm UTC](https://www.ruby-forum.com/t/job-post-ruby-on-rails-jr-programmer-tester-austin-tx/176173 "2009-09-25T19:37:23Z")

</div>

Ruby on Rails Junior Programmer/Tester - OtherInbox OtherInbox is looking to hire an experienced Ruby On Rails Junior Programmer/Tester to join our team. We are looking for a highly motivated, goal-oriented individual…

---

## [Authentication with Cookies instead of CookieStore Sessions](https://www.ruby-forum.com/t/authentication-with-cookies-instead-of-cookiestore-sessions/176171)

<div class="topic-metadata">

**Author:** [@collimarco](https://www.ruby-forum.com/u/collimarco)\
**Replies:** 0\
**Last updated:** [September 25, 2009, 7:35pm UTC](https://www.ruby-forum.com/t/authentication-with-cookies-instead-of-cookiestore-sessions/176171 "2009-09-25T19:35:03Z")

</div>

I would like to persist the user authentication between user sessions (basically a “remind me” by default). Sessions expire while cookies persist: why should I use a session for authentication and then another differe…

---

## [Non blocking http request](https://www.ruby-forum.com/t/non-blocking-http-request/176119)

<div class="topic-metadata">

**Author:** [@nextpulse](https://www.ruby-forum.com/u/nextpulse)\
**Replies:** 3\
**Last updated:** [September 25, 2009, 7:28pm UTC](https://www.ruby-forum.com/t/non-blocking-http-request/176119 "2009-09-25T19:28:01Z")

</div>

Any one know if it is possible to do a non-blocking http request within Ror? I looked at Net::HTTP, nothing obvious. In my code, I want to fire off a http request (and not care about the return or wait for it) and co…

---

## [Question about classes in Rails](https://www.ruby-forum.com/t/question-about-classes-in-rails/176169)

<div class="topic-metadata">

**Author:** [@subzero2000](https://www.ruby-forum.com/u/subzero2000)\
**Replies:** 0\
**Last updated:** [September 25, 2009, 6:25pm UTC](https://www.ruby-forum.com/t/question-about-classes-in-rails/176169 "2009-09-25T18:25:23Z")

</div>

Let me start by stating the fact that I consider myself a ruby / rails novice (above newb, just enought to be dangerous, perhaps … :slight\_smile: ) I have an issue that relates to the ruby-openx gem, which allows ruby …

---

## [I have a problem with scaffolds](https://www.ruby-forum.com/t/i-have-a-problem-with-scaffolds/176170)

<div class="topic-metadata">

**Author:** [@tyoc](https://www.ruby-forum.com/u/tyoc)\
**Replies:** 0\
**Last updated:** [September 25, 2009, 6:24pm UTC](https://www.ruby-forum.com/t/i-have-a-problem-with-scaffolds/176170 "2009-09-25T18:24:12Z")

</div>

Hi there I have created some scaffolds, but they dont work for example ============================================================= $ script/generate scaffold Posts title:string body:text /usr/lib/ruby/1.8/xmlsimple.…

---

## [Named\_scope, sql-view](https://www.ruby-forum.com/t/named-scope-sql-view/176083)

<div class="topic-metadata">

**Author:** [@lmcdougall](https://www.ruby-forum.com/u/lmcdougall)\
**Replies:** 5\
**Last updated:** [September 25, 2009, 6:22pm UTC](https://www.ruby-forum.com/t/named-scope-sql-view/176083 "2009-09-25T18:22:15Z")

</div>

I am looking for a way to create , ( and this is the part I really do not know) a method a named\_scope a somethingâ€¦ that allows me to create an query where I can combine several columns from different tables. In pl…

---

## [Non-ActiveRecord based model being passed as string?](https://www.ruby-forum.com/t/non-activerecord-based-model-being-passed-as-string/176096)

<div class="topic-metadata">

**Author:** [@nozavroni](https://www.ruby-forum.com/u/nozavroni)\
**Replies:** 5\
**Last updated:** [September 25, 2009, 3:55pm UTC](https://www.ruby-forum.com/t/non-activerecord-based-model-being-passed-as-string/176096 "2009-09-25T15:55:52Z")

</div>

I have a model that looks like this (with various other methods) class HsdPair attr\_accessor :hsd def initialize(hsd) @hsd = hsd @current\_display = 0 @has\_changed\_flag = false end end After initializing this obj…

---

## [Rails tiny plugin using jquery, paerclip with image upload and media upload support](https://www.ruby-forum.com/t/rails-tiny-plugin-using-jquery-paerclip-with-image-upload-and-media-upload-support/176161)

<div class="topic-metadata">

**Author:** [@san2821](https://www.ruby-forum.com/u/san2821)\
**Replies:** 0\
**Last updated:** [September 25, 2009, 3:30pm UTC](https://www.ruby-forum.com/t/rails-tiny-plugin-using-jquery-paerclip-with-image-upload-and-media-upload-support/176161 "2009-09-25T15:30:54Z")

</div>

Rails tiny plugin using jquery, paerclip with image upload and media upload support Sandip Ruby on Rails Developer http://brandpotion.com (Latest project released)

---

## [Parameter passing problem](https://www.ruby-forum.com/t/parameter-passing-problem/175897)

<div class="topic-metadata">

**Author:** [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Replies:** 23\
**Last updated:** [September 25, 2009, 3:15pm UTC](https://www.ruby-forum.com/t/parameter-passing-problem/175897 "2009-09-25T15:15:57Z")

</div>

Guys, One simple question… I am creating some elements using javascript … Even they are working fine as well as i am giving them name and ids… But when i click submit button these parameters are not coming in the pas…

---

## [Object#type is deprecated; use Object#class](https://www.ruby-forum.com/t/object-type-is-deprecated-use-object-class/115829)

<div class="topic-metadata">

**Author:** [@datorrey](https://www.ruby-forum.com/u/datorrey)\
**Replies:** 6\
**Last updated:** [September 25, 2009, 3:15pm UTC](https://www.ruby-forum.com/t/object-type-is-deprecated-use-object-class/115829 "2009-09-25T15:15:41Z")

</div>

As I test my rails application, I’m noticing an increasing amount of the following warning as I’m testing: C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active\_record/validations.rb:74: warning: …

---

## [Calling partials from a layout - once nil, once not nil](https://www.ruby-forum.com/t/calling-partials-from-a-layout-once-nil-once-not-nil/176158)

<div class="topic-metadata">

**Author:** [@benol](https://www.ruby-forum.com/u/benol)\
**Replies:** 1\
**Last updated:** [September 25, 2009, 2:50pm UTC](https://www.ruby-forum.com/t/calling-partials-from-a-layout-once-nil-once-not-nil/176158 "2009-09-25T14:50:42Z")

</div>

Hi, Rails 2.3.3 + restful\_authentication. current\_user is a method from lib/authenticated\_system.rb through “include AuthenticatedSystem” in application\_controller.rb -------- home/\_current\_user.pl.html.erb : ----…

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

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