# Rails

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

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

---

## [Csv](https://www.ruby-forum.com/t/csv/179531)

<div class="topic-metadata">

**Author:** [@srinathbtech](https://www.ruby-forum.com/u/srinathbtech)\
**Replies:** 0\
**Last updated:** [November 27, 2009, 7:29am UTC](https://www.ruby-forum.com/t/csv/179531 "2009-11-27T07:29:38Z")

</div>

Hi, This code is not working in Production. I am unable to create users when importing CSV file. def import\_from\_csv if request.post? && (params\[:csv\_import\].kind\_of?(StringIO) || params\[:csv\_import\].kind\_of?(Tmpfil…

---

## [Paperclip s3 dynamic path](https://www.ruby-forum.com/t/paperclip-s3-dynamic-path/179526)

<div class="topic-metadata">

**Author:** [@s0nspark](https://www.ruby-forum.com/u/s0nspark)\
**Replies:** 1\
**Last updated:** [November 27, 2009, 3:47am UTC](https://www.ruby-forum.com/t/paperclip-s3-dynamic-path/179526 "2009-11-27T03:47:56Z")

</div>

Hi, Is there a way to make the path dynamic using fields from the table that paperclip belongs (just like the id)? Here’s what I have tried. class Photo \< ActiveRecord::Base belongs\_to :event belongs\_to :photograph…

---

## [Problems with RoR on Leopard](https://www.ruby-forum.com/t/problems-with-ror-on-leopard/179486)

<div class="topic-metadata">

**Author:** [@hopkinslax12](https://www.ruby-forum.com/u/hopkinslax12)\
**Replies:** 4\
**Last updated:** [November 26, 2009, 10:04pm UTC](https://www.ruby-forum.com/t/problems-with-ror-on-leopard/179486 "2009-11-26T22:04:12Z")

</div>

hi guys–im also a newbie to RoR and programming in general so i apologize in advance for the elementary questions im about to ask…but i went to hive logic and began his tutorial. but i hit 2 snags–i’ve emailed him and…

---

## [CSV Import in production](https://www.ruby-forum.com/t/csv-import-in-production/179518)

<div class="topic-metadata">

**Author:** [@srinathbtech](https://www.ruby-forum.com/u/srinathbtech)\
**Replies:** 0\
**Last updated:** [November 26, 2009, 7:09pm UTC](https://www.ruby-forum.com/t/csv-import-in-production/179518 "2009-11-26T19:09:16Z")

</div>

Hi, Where can we locate csv temp files in application . I am facing temp file issue when running applications in production mode. When doing server restart i am able to upload new file and not uploading again unless…

---

## [Question regarding Warbler](https://www.ruby-forum.com/t/question-regarding-warbler/179517)

<div class="topic-metadata">

**Author:** [@rafaelrosafu](https://www.ruby-forum.com/u/rafaelrosafu)\
**Replies:** 0\
**Last updated:** [November 26, 2009, 5:35pm UTC](https://www.ruby-forum.com/t/question-regarding-warbler/179517 "2009-11-26T17:35:13Z")

</div>

Hi all, I use Warbler to package my Jruby app into a Tomcat server.My issue is that I have to set manually the environment in the config/warbler.rb file. What I need to do is: Connect to SVN; Generate two distincts…

---

## [How to write units tests for controller](https://www.ruby-forum.com/t/how-to-write-units-tests-for-controller/179505)

<div class="topic-metadata">

**Author:** [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Replies:** 3\
**Last updated:** [November 26, 2009, 3:35pm UTC](https://www.ruby-forum.com/t/how-to-write-units-tests-for-controller/179505 "2009-11-26T15:35:45Z")

</div>

Guys, Anybody have an idea about how to write units tests for controller …? Anybody give me the link for tutorials/send me in the right direction… Thanks

---

## [FactoryGirl and habtm associations](https://www.ruby-forum.com/t/factorygirl-and-habtm-associations/179448)

<div class="topic-metadata">

**Author:** [@eltercero](https://www.ruby-forum.com/u/eltercero)\
**Replies:** 2\
**Last updated:** [November 26, 2009, 12:48pm UTC](https://www.ruby-forum.com/t/factorygirl-and-habtm-associations/179448 "2009-11-26T12:48:39Z")

</div>

hi, Does anyone know whether FactoryGirl is possible to generate a factory for a model that now HBTM associations and moreover this model requires the presence of this association. If possible, would appreciate any i…

---

## [Render\_component rails 2.3](https://www.ruby-forum.com/t/render-component-rails-2-3/179500)

<div class="topic-metadata">

**Author:** [@stratboy](https://www.ruby-forum.com/u/stratboy)\
**Replies:** 0\
**Last updated:** [November 26, 2009, 11:23am UTC](https://www.ruby-forum.com/t/render-component-rails-2-3/179500 "2009-11-26T11:23:35Z")

</div>

in routes.rb i have put: map.connect ‘/:alias’, :controller =\> ‘cores’ ,:action=\>“view” this alias is connect with 3 models: event place and artist in my cores controller i used render\_component for rendering the act…

---

## [Problum in parsing xml](https://www.ruby-forum.com/t/problum-in-parsing-xml/179453)

<div class="topic-metadata">

**Author:** [@chinna\_gogulapati](https://www.ruby-forum.com/u/chinna_gogulapati)\
**Replies:** 2\
**Last updated:** [November 26, 2009, 10:52am UTC](https://www.ruby-forum.com/t/problum-in-parsing-xml/179453 "2009-11-26T10:52:09Z")

</div>

Hi All Can any one suggest me the wrong in the bellow code \<% require ‘rubygems’ require ‘hpricot’ doch = Hpricot(@resp\_data.receive\_string) doch.search(‘Record’).each do |rec| rec.search(“Property”).each do |pro…

---

## [Acts\_as\_commentable polimorphic assiciations](https://www.ruby-forum.com/t/acts-as-commentable-polimorphic-assiciations/179458)

<div class="topic-metadata">

**Author:** [@benol](https://www.ruby-forum.com/u/benol)\
**Replies:** 1\
**Last updated:** [November 25, 2009, 8:46pm UTC](https://www.ruby-forum.com/t/acts-as-commentable-polimorphic-assiciations/179458 "2009-11-25T20:46:58Z")

</div>

Hi, I have the same/similar problem as Andrew in comment no 53 in here When I include a partial on a page with \<% form\_for \[@commentable, Comment.new\] do |f| %\> I get undefined method \`comments\_path’ for #ActionVie…

---

## [JQTouch and Rails](https://www.ruby-forum.com/t/jqtouch-and-rails/179472)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 0\
**Last updated:** [November 25, 2009, 8:44pm UTC](https://www.ruby-forum.com/t/jqtouch-and-rails/179472 "2009-11-25T20:44:12Z")

</div>

Anyone used JQTouch http://www.jqtouch.com to build a web app who knows how to go to different views/pages?

---

## [Authlogic functional test problem](https://www.ruby-forum.com/t/authlogic-functional-test-problem/179447)

<div class="topic-metadata">

**Author:** [@bingobob](https://www.ruby-forum.com/u/bingobob)\
**Replies:** 3\
**Last updated:** [November 25, 2009, 4:07pm UTC](https://www.ruby-forum.com/t/authlogic-functional-test-problem/179447 "2009-11-25T16:07:05Z")

</div>

One of my tests looks like this… require ‘test\_helper’ class ResortsControllerTest \< ActionController::TestCase other tests def test\_destroy\_works\_when\_admin UserSession.create(users(:admin)) # logs a user in resor…

---

## [Got Fixnum problem](https://www.ruby-forum.com/t/got-fixnum-problem/179405)

<div class="topic-metadata">

**Author:** [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Replies:** 3\
**Last updated:** [November 25, 2009, 3:48pm UTC](https://www.ruby-forum.com/t/got-fixnum-problem/179405 "2009-11-25T15:48:02Z")

</div>

Hello Champs, Actually thing is that i am executing a query to find records from database using find\_by\_name … Lets suppose its name is name only … So it is :- result = MODEL.find\_by\_name(params\[:name\]) … correct … I…

---

## [Button\_to with an image](https://www.ruby-forum.com/t/button-to-with-an-image/137083)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 11\
**Last updated:** [November 25, 2009, 1:56pm UTC](https://www.ruby-forum.com/t/button-to-with-an-image/137083 "2009-11-25T13:56:57Z")

</div>

Hi, is that possible? I have tried many things but each of them failed. I saw there was once a patch available some time ago, was it included in Rails?

---

## [Rake can't connect for some reason](https://www.ruby-forum.com/t/rake-cant-connect-for-some-reason/179417)

<div class="topic-metadata">

**Author:** [@alexanderl](https://www.ruby-forum.com/u/alexanderl)\
**Replies:** 2\
**Last updated:** [November 25, 2009, 9:24am UTC](https://www.ruby-forum.com/t/rake-cant-connect-for-some-reason/179417 "2009-11-25T09:24:49Z")

</div>

Hello. I have a problem with rails, i have been coding ruby for a couple of weeks and i love it. So now i want to try Rails, and i am following a tutorial. Right now i have created a database, set up all the stuff ruby …

---

## [Observe daylight savings time?](https://www.ruby-forum.com/t/observe-daylight-savings-time/179443)

<div class="topic-metadata">

**Author:** [@morgan](https://www.ruby-forum.com/u/morgan)\
**Replies:** 0\
**Last updated:** [November 25, 2009, 8:13am UTC](https://www.ruby-forum.com/t/observe-daylight-savings-time/179443 "2009-11-25T08:13:44Z")

</div>

Since dst happened my rails app has been an hour off. i can’t seem to track down where i fix this. if somebody could help i would appreciate it. thanks. morgan.

---

## [Testing RoR skills](https://www.ruby-forum.com/t/testing-ror-skills/179257)

<div class="topic-metadata">

**Author:** [@roxana](https://www.ruby-forum.com/u/roxana)\
**Replies:** 5\
**Last updated:** [November 25, 2009, 8:06am UTC](https://www.ruby-forum.com/t/testing-ror-skills/179257 "2009-11-25T08:06:27Z")

</div>

Hello, I’m a recruiter and one of my clients is looking for a RoR developer. My testing platform doesn’t have any tests in accordance with this technology. Please suggest me a source where I can purchase such a test. …

---

## [\[2.3.4\] replace\_html render rjs template instead of html](https://www.ruby-forum.com/t/2-3-4-replace-html-render-rjs-template-instead-of-html/179442)

<div class="topic-metadata">

**Author:** [@eivindhagen](https://www.ruby-forum.com/u/eivindhagen)\
**Replies:** 0\
**Last updated:** [November 25, 2009, 7:45am UTC](https://www.ruby-forum.com/t/2-3-4-replace-html-render-rjs-template-instead-of-html/179442 "2009-11-25T07:45:22Z")

</div>

I have two partials with the same base name, one for html and one for rjs: \_page\_tags.html.erb \_page\_tags.rjs In the .rjs template, I make this call to render the .html partial to replace the contents of a tag: pag…

---

## [Loading yield within an Iframe](https://www.ruby-forum.com/t/loading-yield-within-an-iframe/179414)

<div class="topic-metadata">

**Author:** [@prionko](https://www.ruby-forum.com/u/prionko)\
**Replies:** 3\
**Last updated:** [November 25, 2009, 4:39am UTC](https://www.ruby-forum.com/t/loading-yield-within-an-iframe/179414 "2009-11-25T04:39:55Z")

</div>

Hi All, Im building an application in RoR. The client wants to put the main content inside an iframe. By main content I mean, the contents which gets displayed by the calling yield inside application.html.erb file. C…

---

## [Why can't I subscribtion a xml that project original create?](https://www.ruby-forum.com/t/why-cant-i-subscribtion-a-xml-that-project-original-create/179394)

<div class="topic-metadata">

**Author:** [@rubyernewbie](https://www.ruby-forum.com/u/rubyernewbie)\
**Replies:** 1\
**Last updated:** [November 25, 2009, 2:07am UTC](https://www.ruby-forum.com/t/why-cant-i-subscribtion-a-xml-that-project-original-create/179394 "2009-11-25T02:07:55Z")

</div>

http://kaiping.in/forums/2/topics.xml I can read this in firefox 3.50 but google reader can’t. it throw me a error message: Your search did not match any feeds. Suggestions \* Make sure all words are spelled correctl…

---

## [Find age against the date](https://www.ruby-forum.com/t/find-age-against-the-date/179304)

<div class="topic-metadata">

**Author:** [@ahmet](https://www.ruby-forum.com/u/ahmet)\
**Replies:** 7\
**Last updated:** [November 24, 2009, 7:43pm UTC](https://www.ruby-forum.com/t/find-age-against-the-date/179304 "2009-11-24T19:43:32Z")

</div>

Hi, basically, I just want to explain my question, there is a column named as “age” in my database. the data structure is like this “1980/2/2”. my question is, I have got two textboxes like this \<%= text\_field 'min…

---

## [Important difference between Twitter4R and Twitter Gem](https://www.ruby-forum.com/t/important-difference-between-twitter4r-and-twitter-gem/179426)

<div class="topic-metadata">

**Author:** [@codecarpenter](https://www.ruby-forum.com/u/codecarpenter)\
**Replies:** 0\
**Last updated:** [November 24, 2009, 6:09pm UTC](https://www.ruby-forum.com/t/important-difference-between-twitter4r-and-twitter-gem/179426 "2009-11-24T18:09:58Z")

</div>

I would like to know what is the key difference between Twitter4R and the Twitter gem. Which one is better suited for which type of application? Please enlighten. Thanks!

---

## [Query problem](https://www.ruby-forum.com/t/query-problem/179399)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 1\
**Last updated:** [November 24, 2009, 6:08pm UTC](https://www.ruby-forum.com/t/query-problem/179399 "2009-11-24T18:08:10Z")

</div>

Hi, I am using postgres sql. I am writing following query to get the user friends. The query is working fine. “User.fnd (:all,:joins =\> “INNER JOIN friendship\_requests fr on (users.id = fr.friendship\_target\_id or us…

---

## [Mac Leopard Tutorial Issue(s)](https://www.ruby-forum.com/t/mac-leopard-tutorial-issue-s/179380)

<div class="topic-metadata">

**Author:** [@sjmadsen](https://www.ruby-forum.com/u/sjmadsen)\
**Replies:** 1\
**Last updated:** [November 24, 2009, 4:24pm UTC](https://www.ruby-forum.com/t/mac-leopard-tutorial-issue-s/179380 "2009-11-24T16:24:13Z")

</div>

I am a Newb using Ruby 1.8.6 and Rails 2.3.4 on a Mac OS: 10.5.8 I have run into some issues with the Customizing Rails Applications on MAC OSX for Leopard. Hopefully this is a case of Stupid Newb tricks that are easi…

---

## [Cercasi uno sviluppatore di Ruby on Rails](https://www.ruby-forum.com/t/cercasi-uno-sviluppatore-di-ruby-on-rails/179408)

<div class="topic-metadata">

**Author:** [@thesun2](https://www.ruby-forum.com/u/thesun2)\
**Replies:** 0\
**Last updated:** [November 24, 2009, 12:48pm UTC](https://www.ruby-forum.com/t/cercasi-uno-sviluppatore-di-ruby-on-rails/179408 "2009-11-24T12:48:39Z")

</div>

The Fool srl cerca uno sviluppatore Ruby on Rails da affiancare al team attuale, come collaboratore o in assunzione. Il candidato ideale ha un’etÃ inferiore di 30 anni (ma non ci formalizziamo), con una forte motivaz…

---

## [Rails 2.3.4 ActiveRecord association problem](https://www.ruby-forum.com/t/rails-2-3-4-activerecord-association-problem/175255)

<div class="topic-metadata">

**Author:** [@Paul\_Christmann](https://www.ruby-forum.com/u/Paul_Christmann)\
**Replies:** 1\
**Last updated:** [November 24, 2009, 10:56am UTC](https://www.ruby-forum.com/t/rails-2-3-4-activerecord-association-problem/175255 "2009-11-24T10:56:22Z")

</div>

Upgraded our app from Rails 2.2.2 to 2.3.4, and I’m now encountering an error when adding a child to a parent. Top of the stack: wrong number of arguments (1 for 0) /Library/Ruby/Gems/1.8/gems/activerecord-2.3.4/lib/…

---

## [Mongrel hangs when idle](https://www.ruby-forum.com/t/mongrel-hangs-when-idle/179359)

<div class="topic-metadata">

**Author:** [@murraj](https://www.ruby-forum.com/u/murraj)\
**Replies:** 2\
**Last updated:** [November 24, 2009, 5:59am UTC](https://www.ruby-forum.com/t/mongrel-hangs-when-idle/179359 "2009-11-24T05:59:24Z")

</div>

Hello All, This issue has been raised by so many people in this forum and in the web before. But i am not sure, whether all of those got fixed the issue. My application is running in 1)rails 2.2.2 2)ruby 1.8.6 (200…

---

## [Creating batch file to start mongrel server](https://www.ruby-forum.com/t/creating-batch-file-to-start-mongrel-server/179377)

<div class="topic-metadata">

**Author:** [@rhonda](https://www.ruby-forum.com/u/rhonda)\
**Replies:** 0\
**Last updated:** [November 23, 2009, 10:19pm UTC](https://www.ruby-forum.com/t/creating-batch-file-to-start-mongrel-server/179377 "2009-11-23T22:19:38Z")

</div>

Hi all! I have a database set up to run only on an external hard drive. I am trying to create a batch file to automatically start the mongrel server and then open a local host url. On the external hard drive, I have…

---

## [Problem uploading files](https://www.ruby-forum.com/t/problem-uploading-files/179372)

<div class="topic-metadata">

**Author:** [@penguinjr](https://www.ruby-forum.com/u/penguinjr)\
**Replies:** 3\
**Last updated:** [November 23, 2009, 9:27pm UTC](https://www.ruby-forum.com/t/problem-uploading-files/179372 "2009-11-23T21:27:07Z")

</div>

Hello, i have problem when i upload files to the website, i can’t understand it. I use Apache 2 + Ubuntu, and Apache returns Error 500 (captured by the application) I use attachment and shared-mime-info and i don’t un…

---

## [How to work with actionwebservice in rails 2.2](https://www.ruby-forum.com/t/how-to-work-with-actionwebservice-in-rails-2-2/179367)

<div class="topic-metadata">

**Author:** [@nike](https://www.ruby-forum.com/u/nike)\
**Replies:** 1\
**Last updated:** [November 23, 2009, 4:27pm UTC](https://www.ruby-forum.com/t/how-to-work-with-actionwebservice-in-rails-2-2/179367 "2009-11-23T16:27:33Z")

</div>

Hi everyone, Please suggest how to use action web service in rails 2.2

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

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