# Rails

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

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

---

## [Image Map in ROR?](https://www.ruby-forum.com/t/image-map-in-ror/145329)

<div class="topic-metadata">

**Author:** [@ror\_arch](https://www.ruby-forum.com/u/ror_arch)\
**Replies:** 2\
**Last updated:** [August 8, 2008, 3:32pm UTC](https://www.ruby-forum.com/t/image-map-in-ror/145329 "2008-08-08T15:32:36Z")

</div>

I was wondering how would one go about making an image map in ROR? I ask because in the early days we had some ways of making image maps (which I have forgotten) Has someone done this ?

---

## [RJS : find the parent's id](https://www.ruby-forum.com/t/rjs-find-the-parents-id/145311)

<div class="topic-metadata">

**Author:** [@joserwan](https://www.ruby-forum.com/u/joserwan)\
**Replies:** 4\
**Last updated:** [August 8, 2008, 3:32pm UTC](https://www.ruby-forum.com/t/rjs-find-the-parents-id/145311 "2008-08-08T15:32:30Z")

</div>

Hi, I have a HTML like this : .... In my controller, I have a “update\_data” method, called every x seconds from a periodical\_call\_remote : I want to take all the elements having the class “data\_1”, and…

---

## [Rss :: Parsing, generation, and caching system for xml news feeds](https://www.ruby-forum.com/t/rss-parsing-generation-and-caching-system-for-xml-news-feeds/196774)

<div class="topic-metadata">

**Author:** [@hafeez\_mia](https://www.ruby-forum.com/u/hafeez_mia)\
**Replies:** 0\
**Last updated:** [August 8, 2008, 3:17pm UTC](https://www.ruby-forum.com/t/rss-parsing-generation-and-caching-system-for-xml-news-feeds/196774 "2008-08-08T15:17:50Z")

</div>

i am using rails 2.1.0 i installed feedtools gem now i don’t know how to use in my app could you please help in that

---

## [STI class\_name returns the parent class name](https://www.ruby-forum.com/t/sti-class-name-returns-the-parent-class-name/145370)

<div class="topic-metadata">

**Author:** [@tonypm](https://www.ruby-forum.com/u/tonypm)\
**Replies:** 0\
**Last updated:** [August 8, 2008, 2:33pm UTC](https://www.ruby-forum.com/t/sti-class-name-returns-the-parent-class-name/145370 "2008-08-08T14:33:19Z")

</div>

Is this a bug or intended action - or am I missing something. If I have class Thing \< ActiveRecord::Base and class ZThing \< Thing and I do z=ZThing.create Then z.class returns ZThing(id: …etc as I would expect …

---

## [\[OT\] CSS framework](https://www.ruby-forum.com/t/ot-css-framework/145221)

<div class="topic-metadata">

**Author:** [@mhfs](https://www.ruby-forum.com/u/mhfs)\
**Replies:** 5\
**Last updated:** [August 8, 2008, 2:24pm UTC](https://www.ruby-forum.com/t/ot-css-framework/145221 "2008-08-08T14:24:32Z")

</div>

Hello list, When you start getting the hang and absorbing the agile mindset, you can’t stop thinking in ways to make your work faster and more practical. I like graphics design, but I’m mainly a coder. I do like CSS …

---

## [What do I install](https://www.ruby-forum.com/t/what-do-i-install/145302)

<div class="topic-metadata">

**Author:** [@richblunt](https://www.ruby-forum.com/u/richblunt)\
**Replies:** 1\
**Last updated:** [August 8, 2008, 2:22pm UTC](https://www.ruby-forum.com/t/what-do-i-install/145302 "2008-08-08T14:22:11Z")

</div>

I am just starting out, I downloaded Aptana studio and installed it with the RoR plugin, do I also need the InstantRails 2.0? If so is there a document that relates how to make the Aptana file work with the InstantRai…

---

## [Got NoMethodError although the instant variable exist](https://www.ruby-forum.com/t/got-nomethoderror-although-the-instant-variable-exist/145368)

<div class="topic-metadata">

**Author:** [@adinda\_p](https://www.ruby-forum.com/u/adinda_p)\
**Replies:** 0\
**Last updated:** [August 8, 2008, 2:06pm UTC](https://www.ruby-forum.com/t/got-nomethoderror-although-the-instant-variable-exist/145368 "2008-08-08T14:06:18Z")

</div>

Hi all, When i access localhost:3000/home , got this NoMethodError You have a nil object when you didn’t expect it! The error occurred while evaluating nil.items Extracted source (around line #86): 83: 84: …

---

## [Rspec, should\_receive, called twice in controller with different arguments, how to test?](https://www.ruby-forum.com/t/rspec-should-receive-called-twice-in-controller-with-different-arguments-how-to-test/145253)

<div class="topic-metadata">

**Author:** [@phallstrom](https://www.ruby-forum.com/u/phallstrom)\
**Replies:** 3\
**Last updated:** [August 8, 2008, 1:44pm UTC](https://www.ruby-forum.com/t/rspec-should-receive-called-twice-in-controller-with-different-arguments-how-to-test/145253 "2008-08-08T13:44:03Z")

</div>

Hi - I’ve got a simple controller. It calls Foo.something(‘xyz’) and returns ‘XYZ’. I have a before filter for my entire application that calls Foo.something(nil) and returns nil. I’m not sure how to specify that i…

---

## [How to fire distinct query?](https://www.ruby-forum.com/t/how-to-fire-distinct-query/145354)

<div class="topic-metadata">

**Author:** [@dharmdip](https://www.ruby-forum.com/u/dharmdip)\
**Replies:** 3\
**Last updated:** [August 8, 2008, 12:53pm UTC](https://www.ruby-forum.com/t/how-to-fire-distinct-query/145354 "2008-08-08T12:53:38Z")

</div>

i am having this code for record distinct but this code is not working ??? \<%for postjob in @postjob = Postjob.find(:all)%\> This Line of code is not working \<%@postjob = Postjob.find( :all, :select =\> ‘DISTINCT count…

---

## [Apache processes occassionaly hanging under mod rails](https://www.ruby-forum.com/t/apache-processes-occassionaly-hanging-under-mod-rails/145006)

<div class="topic-metadata">

**Author:** [@skirkpatrick](https://www.ruby-forum.com/u/skirkpatrick)\
**Replies:** 3\
**Last updated:** [August 8, 2008, 12:51pm UTC](https://www.ruby-forum.com/t/apache-processes-occassionaly-hanging-under-mod-rails/145006 "2008-08-08T12:51:51Z")

</div>

Every couple hours I always get a few apache processes that for some reason never quit properly. When I get enough of them my apache no longer responds to any web requests and I need to restart it. It looks somethin…

---

## [Regarding Schedulers](https://www.ruby-forum.com/t/regarding-schedulers/145362)

<div class="topic-metadata">

**Author:** [@Shripad](https://www.ruby-forum.com/u/Shripad)\
**Replies:** 0\
**Last updated:** [August 8, 2008, 12:32pm UTC](https://www.ruby-forum.com/t/regarding-schedulers/145362 "2008-08-08T12:32:30Z")

</div>

Hi all, Thanks all, for ur responses to my posts. Now, I have one more problem which, I am unable to solve until now. I have to do following thing, Transfer table or tables data from one database server(right now, i…

---

## [Ec2 or dedicated server?](https://www.ruby-forum.com/t/ec2-or-dedicated-server/145357)

<div class="topic-metadata">

**Author:** [@phil](https://www.ruby-forum.com/u/phil)\
**Replies:** 0\
**Last updated:** [August 8, 2008, 12:02pm UTC](https://www.ruby-forum.com/t/ec2-or-dedicated-server/145357 "2008-08-08T12:02:02Z")

</div>

Hi, we need to ramp up our solution and would like to get some feedback on what people think is the best way to go: ec2 or dedicated boxes in a hosting environment (eg 1and1) We are in Europe, and I worry about the pi…

---

## [Quick DOM question](https://www.ruby-forum.com/t/quick-dom-question/145332)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 2\
**Last updated:** [August 8, 2008, 11:43am UTC](https://www.ruby-forum.com/t/quick-dom-question/145332 "2008-08-08T11:43:52Z")

</div>

search\_form.search\_author.value="" In IE7 it works find, but in FF3 I get the error search\_form is undefined. search\_form is the name of my form. Thanks for the help!

---

## [ActiveRecord types of find](https://www.ruby-forum.com/t/activerecord-types-of-find/145343)

<div class="topic-metadata">

**Author:** [@giorgio](https://www.ruby-forum.com/u/giorgio)\
**Replies:** 2\
**Last updated:** [August 8, 2008, 11:23am UTC](https://www.ruby-forum.com/t/activerecord-types-of-find/145343 "2008-08-08T11:23:22Z")

</div>

Hi, If I do the following ActiveRecord query AccountType.find\_by\_active(true).collect{|at| \[at.name,at.id\]} I get the error undefined method \`collect’ for #AccountType:0x459fb10 However if I do AccountType.find(:al…

---

## [org.apache.jasper.JasperException: invalid arguments in call](https://www.ruby-forum.com/t/org-apache-jasper-jasperexception-invalid-arguments-in-call/145352)

<div class="topic-metadata">

**Author:** [@pradeep](https://www.ruby-forum.com/u/pradeep)\
**Replies:** 0\
**Last updated:** [August 8, 2008, 10:24am UTC](https://www.ruby-forum.com/t/org-apache-jasper-jasperexception-invalid-arguments-in-call/145352 "2008-08-08T10:24:46Z")

</div>

hi ,Pradeep here, i am using oracle 9i database and it showing this error message: org.apache.jasper.JasperException: invalid arguments in call org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServlet…

---

## [Inline\_attachment not working properly?](https://www.ruby-forum.com/t/inline-attachment-not-working-properly/145355)

<div class="topic-metadata">

**Author:** [@steve](https://www.ruby-forum.com/u/steve)\
**Replies:** 0\
**Last updated:** [August 8, 2008, 10:24am UTC](https://www.ruby-forum.com/t/inline-attachment-not-working-properly/145355 "2008-08-08T10:24:46Z")

</div>

We are using the inline\_attachment gem for emails. This gem overloads the image\_tag method. However, we get an error whenever we send it a full URL, such as comes back from the AWS-S3 (Amazon) gem. image\_tag( ‘http…

---

## [Validates\_uniqueness\_of in 2.1](https://www.ruby-forum.com/t/validates-uniqueness-of-in-2-1/145349)

<div class="topic-metadata">

**Author:** [@therealadam](https://www.ruby-forum.com/u/therealadam)\
**Replies:** 0\
**Last updated:** [August 8, 2008, 10:24am UTC](https://www.ruby-forum.com/t/validates-uniqueness-of-in-2-1/145349 "2008-08-08T10:24:10Z")

</div>

I updated an application from Activerecord 2.0.2.9216 to 2.1.0 and now validates\_uniqueness\_of doesn’t seem to be working. The unique constraint was caught by the activerecord validation in 2.0.2, but now it’s getting…

---

## [Route url and path](https://www.ruby-forum.com/t/route-url-and-path/145304)

<div class="topic-metadata">

**Author:** [@joel](https://www.ruby-forum.com/u/joel)\
**Replies:** 1\
**Last updated:** [August 8, 2008, 9:19am UTC](https://www.ruby-forum.com/t/route-url-and-path/145304 "2008-08-08T09:19:44Z")

</div>

Hello All, what s the difference when using routes with url and path, like forum\_path(something) or forum\_url(something) Joel

---

## [Redirect problem](https://www.ruby-forum.com/t/redirect-problem/145344)

<div class="topic-metadata">

**Author:** [@sigma](https://www.ruby-forum.com/u/sigma)\
**Replies:** 2\
**Last updated:** [August 8, 2008, 9:10am UTC](https://www.ruby-forum.com/t/redirect-problem/145344 "2008-08-08T09:10:56Z")

</div>

Hi all I’ve got the following problem: With this method i check if a user is logged in. If not, he will be redirected to home: def check\_login if logged\_in? true else redirect\_to root\_path end end Now the prob…

---

## [NameError / unitialized constant](https://www.ruby-forum.com/t/nameerror-unitialized-constant/145341)

<div class="topic-metadata">

**Author:** [@hangingclowns](https://www.ruby-forum.com/u/hangingclowns)\
**Replies:** 2\
**Last updated:** [August 8, 2008, 7:38am UTC](https://www.ruby-forum.com/t/nameerror-unitialized-constant/145341 "2008-08-08T07:38:55Z")

</div>

Ok I’m trying to use the Yelp gem which I’ve installed. Following the documention I do the following in my CONTROLLER: in ‘location\_controller.rb’ def search client = Yelp::Client.new request = Yelp::Review::Request…

---

## [\[\] returned from activeRecord Query?](https://www.ruby-forum.com/t/returned-from-activerecord-query/145337)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 9\
**Last updated:** [August 8, 2008, 6:58am UTC](https://www.ruby-forum.com/t/returned-from-activerecord-query/145337 "2008-08-08T06:58:11Z")

</div>

I’m just getting my sea legs and I have run into something I think is pretty strange. Why is it that I sometimes get an empty array value when I iterate over an answer set from an activeRecord query? This code rocke…

---

## [Usiung a distributed filesystem](https://www.ruby-forum.com/t/usiung-a-distributed-filesystem/145263)

<div class="topic-metadata">

**Author:** [@mhfs](https://www.ruby-forum.com/u/mhfs)\
**Replies:** 4\
**Last updated:** [August 8, 2008, 6:35am UTC](https://www.ruby-forum.com/t/usiung-a-distributed-filesystem/145263 "2008-08-08T06:35:23Z")

</div>

Hello list, I wonder if anyone around uses or ever used a distributed filesystem for a Rails app (or any other platform). If so: Do I need any explicit code in the application to use a distributed filesystem or is …

---

## [Write-back cache (lazy write) and ActiveRecord](https://www.ruby-forum.com/t/write-back-cache-lazy-write-and-activerecord/145280)

<div class="topic-metadata">

**Author:** [@Tero\_T](https://www.ruby-forum.com/u/Tero_T)\
**Replies:** 3\
**Last updated:** [August 8, 2008, 4:20am UTC](https://www.ruby-forum.com/t/write-back-cache-lazy-write-and-activerecord/145280 "2008-08-08T04:20:20Z")

</div>

There are afaik several ways to do multi-record operations on DB. Mileage of course varies depending on DMBS. Is AR capable of folding multi-record modifications (inserts, deletes or updates) to single SQL statement? …

---

## [Humanizing dates](https://www.ruby-forum.com/t/humanizing-dates/145236)

<div class="topic-metadata">

**Author:** [@mhfs](https://www.ruby-forum.com/u/mhfs)\
**Replies:** 11\
**Last updated:** [August 8, 2008, 3:19am UTC](https://www.ruby-forum.com/t/humanizing-dates/145236 "2008-08-08T03:19:28Z")

</div>

Hello! What would be the easiest way to pick up a Date or DateTime object and “humanize” them, like: Next wednesday Last friday 10 hours ago Next month … Is there a Ruby library, gem or Rails plugin that helps on as…

---

## [NetBeans to IntelliJ to Eclipse to NetBeans to Eclipse to IntelliJ - Evaluating IDEs for Ruby on Ra](https://www.ruby-forum.com/t/netbeans-to-intellij-to-eclipse-to-netbeans-to-eclipse-to-intellij-evaluating-ides-for-ruby-on-ra/145128)

<div class="topic-metadata">

**Author:** [@sam](https://www.ruby-forum.com/u/sam)\
**Replies:** 7\
**Last updated:** [August 8, 2008, 2:23am UTC](https://www.ruby-forum.com/t/netbeans-to-intellij-to-eclipse-to-netbeans-to-eclipse-to-intellij-evaluating-ides-for-ruby-on-ra/145128 "2008-08-08T02:23:17Z")

</div>

The following is a just a dump of my notes gathered over the last 7 weeks as I hopped from IDE to IDE in search of the perfect IDE for RoR. Unfortunately, there isn’t one… and the perfect one would be made up of diff…

---

## [Trouble saving current user](https://www.ruby-forum.com/t/trouble-saving-current-user/145212)

<div class="topic-metadata">

**Author:** [@gwendydd](https://www.ruby-forum.com/u/gwendydd)\
**Replies:** 2\
**Last updated:** [August 8, 2008, 1:45am UTC](https://www.ruby-forum.com/t/trouble-saving-current-user/145212 "2008-08-08T01:45:16Z")

</div>

I have an application where users can log in and create records. I am trying to get Rails to save the id/name of the user who created the record. Somehow, the user id isn’t getting stored, and I can’t tell why. I’m…

---

## ["RJS Error: TypeError: $(element) has no properties"](https://www.ruby-forum.com/t/rjs-error-typeerror-element-has-no-properties/100952)

<div class="topic-metadata">

**Author:** [@zecko](https://www.ruby-forum.com/u/zecko)\
**Replies:** 1\
**Last updated:** [August 8, 2008, 12:52am UTC](https://www.ruby-forum.com/t/rjs-error-typeerror-element-has-no-properties/100952 "2008-08-08T00:52:53Z")

</div>

i have lots of divs, which are added via link\_to\_remote. now i want to delete them with a link\_to\_remote button for each. i am giving them ids with the same name and a serialized number. when trying to access them wit…

---

## [Selecting all events on a given day with time zone sensitivity](https://www.ruby-forum.com/t/selecting-all-events-on-a-given-day-with-time-zone-sensitivity/145247)

<div class="topic-metadata">

**Author:** [@brendon](https://www.ruby-forum.com/u/brendon)\
**Replies:** 3\
**Last updated:** [August 8, 2008, 12:39am UTC](https://www.ruby-forum.com/t/selecting-all-events-on-a-given-day-with-time-zone-sensitivity/145247 "2008-08-08T00:39:11Z")

</div>

Hi everyone, just grappling with converting app to being time zone sensitive. I have a calendar and you can click on a day to see all the events on a given day. The easy way to do this before time zones was just to p…

---

## [Reserved names](https://www.ruby-forum.com/t/reserved-names/145317)

<div class="topic-metadata">

**Author:** [@giaco](https://www.ruby-forum.com/u/giaco)\
**Replies:** 1\
**Last updated:** [August 7, 2008, 10:14pm UTC](https://www.ruby-forum.com/t/reserved-names/145317 "2008-08-07T22:14:37Z")

</div>

Just spent 15-20 minutes struggling with why actions that previously worked were all bombing with this error: /!\\ FAILSAFE /!\\ 08/07/2008 02:48 PM Status: 500 Internal Server Error wrong number of arguments (2 for 0…

---

## [\[ADV\] Last day to register for the Hoedown!](https://www.ruby-forum.com/t/adv-last-day-to-register-for-the-hoedown/145315)

<div class="topic-metadata">

**Author:** [@Jeremy\_McAnally](https://www.ruby-forum.com/u/Jeremy_McAnally)\
**Replies:** 0\
**Last updated:** [August 7, 2008, 9:44pm UTC](https://www.ruby-forum.com/t/adv-last-day-to-register-for-the-hoedown/145315 "2008-08-07T21:44:12Z")

</div>

Hi all, The Ruby Hoedown (sponsored by Engine Y. and Hashrocket) starts tomorrow! Sign up today for good food, great company, and top notch talks from Chris W., David Black, Jim W., Rick B., Giles B., and more. Che…

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

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