# Rails

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

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

---

## [Trouble with IDs](https://www.ruby-forum.com/t/trouble-with-ids/108044)

<div class="topic-metadata">

**Author:** [@mwalsh](https://www.ruby-forum.com/u/mwalsh)\
**Replies:** 0\
**Last updated:** [June 28, 2007, 5:19pm UTC](https://www.ruby-forum.com/t/trouble-with-ids/108044 "2007-06-28T17:19:48Z")

</div>

Hello, I am getting strange results with the following code: def self.process\_product(supplier\_productid) local\_product = Product.find(:first, :conditions =\> \[“supplierid = 9 and supplier\_productid = :id”, {:id =\> su…

---

## [Using OR in a complex condition](https://www.ruby-forum.com/t/using-or-in-a-complex-condition/107994)

<div class="topic-metadata">

**Author:** [@rjsquire](https://www.ruby-forum.com/u/rjsquire)\
**Replies:** 3\
**Last updated:** [June 28, 2007, 5:17pm UTC](https://www.ruby-forum.com/t/using-or-in-a-complex-condition/107994 "2007-06-28T17:17:48Z")

</div>

Sorry to bother everyone again, but I’m trying to extend this functionality just a little bit further before calling it a day. def auto\_complete\_responder\_for\_contacts(value) user = User.find(current\_user.id) @contac…

---

## [Search Error](https://www.ruby-forum.com/t/search-error/108040)

<div class="topic-metadata">

**Author:** [@saurabhbhatia](https://www.ruby-forum.com/u/saurabhbhatia)\
**Replies:** 0\
**Last updated:** [June 28, 2007, 4:56pm UTC](https://www.ruby-forum.com/t/search-error/108040 "2007-06-28T16:56:45Z")

</div>

Hi all, I’m trying to implement search features in my application.I’m using act\_as\_ferret plugins. But i’m facing some problems. The problem is , I am not able to display the search results in the get\_results.rhtml p…

---

## [Rails vendor directory ... WTF?](https://www.ruby-forum.com/t/rails-vendor-directory-wtf/108036)

<div class="topic-metadata">

**Author:** [@stewbawka](https://www.ruby-forum.com/u/stewbawka)\
**Replies:** 2\
**Last updated:** [June 28, 2007, 4:38pm UTC](https://www.ruby-forum.com/t/rails-vendor-directory-wtf/108036 "2007-06-28T16:38:42Z")

</div>

Hey all, Working on a little rails app and was gonna install backgroundrb for something… tried to go into the vendor/plugins dir and plugins wasn’t there! my app was created with a normal rails appname command… i tri…

---

## [Write file](https://www.ruby-forum.com/t/write-file/171135)

<div class="topic-metadata">

**Author:** [@luigi](https://www.ruby-forum.com/u/luigi)\
**Replies:** 4\
**Last updated:** [June 28, 2007, 4:30pm UTC](https://www.ruby-forum.com/t/write-file/171135 "2007-06-28T16:30:42Z")

</div>

Is it possibile to create with ruby css file to write in public/stylesheets? Obviously the name of the css file is variable and the internal formatting is almost the same. Thanks!

---

## [Cookies? sessions? help?](https://www.ruby-forum.com/t/cookies-sessions-help/107968)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [June 28, 2007, 4:26pm UTC](https://www.ruby-forum.com/t/cookies-sessions-help/107968 "2007-06-28T16:26:41Z")

</div>

say i wanted for a user to go to http://www.domain.com/intro when they first hit http://www.domain.com/ subsequent visits to the site while still on the current session would result in just going to http://www.domain.…

---

## [Thinking about tweaking some things](https://www.ruby-forum.com/t/thinking-about-tweaking-some-things/108035)

<div class="topic-metadata">

**Author:** [@hotgazpacho](https://www.ruby-forum.com/u/hotgazpacho)\
**Replies:** 0\
**Last updated:** [June 28, 2007, 4:21pm UTC](https://www.ruby-forum.com/t/thinking-about-tweaking-some-things/108035 "2007-06-28T16:21:40Z")

</div>

Hello all, As I’ve gotten more comfortable using rails, I’ve noticed some things that I seem to be doing over and over. I think a fair number of the issues I run across have come about because the default scaffolding …

---

## [Circular reference error on #to\_json](https://www.ruby-forum.com/t/circular-reference-error-on-to-json/106264)

<div class="topic-metadata">

**Author:** [@cjharrelson](https://www.ruby-forum.com/u/cjharrelson)\
**Replies:** 2\
**Last updated:** [June 28, 2007, 4:17pm UTC](https://www.ruby-forum.com/t/circular-reference-error-on-to-json/106264 "2007-06-28T16:17:46Z")

</div>

I am trying to create a json response that can be used to create a paging grid. Here is my controller code: def grid\_data start = (params\[:start\] || 1).to\_i size = (params\[:limit\] || 20).to\_i sort\_col = (params\[:so…

---

## [SMTP ActionMailer Email Problem](https://www.ruby-forum.com/t/smtp-actionmailer-email-problem/107751)

<div class="topic-metadata">

**Author:** [@stick](https://www.ruby-forum.com/u/stick)\
**Replies:** 3\
**Last updated:** [June 28, 2007, 4:00pm UTC](https://www.ruby-forum.com/t/smtp-actionmailer-email-problem/107751 "2007-06-28T16:00:41Z")

</div>

Hi, I’m trying to send some emails via actionmailer using the SMTP settings for my shared hosting. All seems fine, and I get no errors, but I also get no emails. Any ideas as to what to look for or how to go about te…

---

## [Dir.chdir causes application error](https://www.ruby-forum.com/t/dir-chdir-causes-application-error/107888)

<div class="topic-metadata">

**Author:** [@ewildgoose](https://www.ruby-forum.com/u/ewildgoose)\
**Replies:** 4\
**Last updated:** [June 28, 2007, 3:57pm UTC](https://www.ruby-forum.com/t/dir-chdir-causes-application-error/107888 "2007-06-28T15:57:36Z")

</div>

I am getting an application error when I try to use Dir.chdir in a layout \<% Dir.chdir(‘public’) %\> The complete dump from development.log is listed below. When I try the same thing in the console, it works fine. Lo…

---

## [Acts\_as\_tree and before\_save](https://www.ruby-forum.com/t/acts-as-tree-and-before-save/107965)

<div class="topic-metadata">

**Author:** [@oleg](https://www.ruby-forum.com/u/oleg)\
**Replies:** 3\
**Last updated:** [June 28, 2007, 3:48pm UTC](https://www.ruby-forum.com/t/acts-as-tree-and-before-save/107965 "2007-06-28T15:48:25Z")

</div>

We all know that acts\_as\_tree gives us ability to set up data in a tree-like structure and use methods like ‘parent’, ‘children’ and so on. Something I’m completely stuck on. Observe. class Page \< ActiveRecord::Base …

---

## [Any rails host that have ffmpeg available?](https://www.ruby-forum.com/t/any-rails-host-that-have-ffmpeg-available/107921)

<div class="topic-metadata">

**Author:** [@mixplate](https://www.ruby-forum.com/u/mixplate)\
**Replies:** 6\
**Last updated:** [June 28, 2007, 3:32pm UTC](https://www.ruby-forum.com/t/any-rails-host-that-have-ffmpeg-available/107921 "2007-06-28T15:32:28Z")

</div>

looking for a rails host that have ffmpeg installed. found out that some hosting companies dont allow that softwar on their system. any reliable rails hosts already have that installed? thanks

---

## [Gem installation Problem / Controller generation problem](https://www.ruby-forum.com/t/gem-installation-problem-controller-generation-problem/108011)

<div class="topic-metadata">

**Author:** [@unnikrishnanes](https://www.ruby-forum.com/u/unnikrishnanes)\
**Replies:** 3\
**Last updated:** [June 28, 2007, 2:43pm UTC](https://www.ruby-forum.com/t/gem-installation-problem-controller-generation-problem/108011 "2007-06-28T14:43:25Z")

</div>

I am new to ROR. I Have ruby and instant rails installed in my system(I am using Windows). I have created an application ‘railslist’ \[command i used:- c:\\development\\rails railslist \] But when I tried to generate …

---

## [Access folders outside RAILS\_ROOT](https://www.ruby-forum.com/t/access-folders-outside-rails-root/108008)

<div class="topic-metadata">

**Author:** [@shrviswa](https://www.ruby-forum.com/u/shrviswa)\
**Replies:** 2\
**Last updated:** [June 28, 2007, 2:40pm UTC](https://www.ruby-forum.com/t/access-folders-outside-rails-root/108008 "2007-06-28T14:40:23Z")

</div>

How does one make available folders outside the rails root dir? For e.g I want to create a folder of html pages in C:. How do I make this accessible to users of my Rails server?

---

## [Re: Ruby on Rails Developer](https://www.ruby-forum.com/t/re-ruby-on-rails-developer/108023)

<div class="topic-metadata">

**Author:** [@precision](https://www.ruby-forum.com/u/precision)\
**Replies:** 0\
**Last updated:** [June 28, 2007, 2:35pm UTC](https://www.ruby-forum.com/t/re-ruby-on-rails-developer/108023 "2007-06-28T14:35:24Z")

</div>

Hi All, Please can you help me with the following: Looking for a Ruby on Rails Developer, Salary £30K-£60K, Leicester, City Centre Use the latest web technology Ruby on Rails. To develop professional web application…

---

## [How to setup MySQL](https://www.ruby-forum.com/t/how-to-setup-mysql/108000)

<div class="topic-metadata">

**Author:** [@midnightcoder](https://www.ruby-forum.com/u/midnightcoder)\
**Replies:** 1\
**Last updated:** [June 28, 2007, 1:43pm UTC](https://www.ruby-forum.com/t/how-to-setup-mysql/108000 "2007-06-28T13:43:13Z")

</div>

How do I initialize the tables in the MySQL database? I just installed Rad Rails and can connect to the server, just there are no tables there. Is there a script or something? Bruce W.

---

## [Extracting data](https://www.ruby-forum.com/t/extracting-data/108012)

<div class="topic-metadata">

**Author:** [@Rajmohan\_B](https://www.ruby-forum.com/u/Rajmohan_B)\
**Replies:** 0\
**Last updated:** [June 28, 2007, 12:33pm UTC](https://www.ruby-forum.com/t/extracting-data/108012 "2007-06-28T12:33:05Z")

</div>

Hi all, I am posting some xml data to the rails server using curl. Now how do I extract the posted xml data from the http request? I saw that one can access the request parameters like params\[:id\] etc since params is…

---

## [Object#id will be deprecated](https://www.ruby-forum.com/t/object-id-will-be-deprecated/108007)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 1\
**Last updated:** [June 28, 2007, 11:23am UTC](https://www.ruby-forum.com/t/object-id-will-be-deprecated/108007 "2007-06-28T11:23:55Z")

</div>

I see this warning in my log …/app/models/user.rb:179: warning: Object#id will be deprecated; use Object#object\_id I am using in my user model ‘self.id’ to the mysql record id of the user which gives me correctl…

---

## [Problem in installing libxml gems for window](https://www.ruby-forum.com/t/problem-in-installing-libxml-gems-for-window/108001)

<div class="topic-metadata">

**Author:** [@Vimal\_B](https://www.ruby-forum.com/u/Vimal_B)\
**Replies:** 0\
**Last updated:** [June 28, 2007, 9:10am UTC](https://www.ruby-forum.com/t/problem-in-installing-libxml-gems-for-window/108001 "2007-06-28T09:10:07Z")

</div>

Hi All, Is it possible to install libxml gems for window. Thanks in advance.

---

## [Openssl en MacOS X](https://www.ruby-forum.com/t/openssl-en-macos-x/107795)

<div class="topic-metadata">

**Author:** [@secufa](https://www.ruby-forum.com/u/secufa)\
**Replies:** 6\
**Last updated:** [June 28, 2007, 8:20am UTC](https://www.ruby-forum.com/t/openssl-en-macos-x/107795 "2007-06-28T08:20:39Z")

</div>

Hello, I would like to install Openssl on a ruby install MacOs X Which one is the one to go for ? (I want to use it for gmail) How do I install it ? maybe it is so easy that I do not find any explanation on the web… …

---

## [Caching without domains in the path](https://www.ruby-forum.com/t/caching-without-domains-in-the-path/107995)

<div class="topic-metadata">

**Author:** [@chrisfinne](https://www.ruby-forum.com/u/chrisfinne)\
**Replies:** 0\
**Last updated:** [June 28, 2007, 6:51am UTC](https://www.ruby-forum.com/t/caching-without-domains-in-the-path/107995 "2007-06-28T06:51:31Z")

</div>

Okay, so I was reading the caching tutorial over on Rails Envy (which is great, btw), but I’m having the same problem as someone in the comments, and not sure how to move beyond it (a newbie to all this back end stuff…

---

## [Question about agile development](https://www.ruby-forum.com/t/question-about-agile-development/107945)

<div class="topic-metadata">

**Author:** [@patcito](https://www.ruby-forum.com/u/patcito)\
**Replies:** 10\
**Last updated:** [June 28, 2007, 6:33am UTC](https://www.ruby-forum.com/t/question-about-agile-development/107945 "2007-06-28T06:33:29Z")

</div>

Hey all, Hope this is not too offtopic. I read everywhere that Agile development is against having a contract with a fixed price from the beginning and that it’s better to work with the client in small iterations. I…

---

## [Gem install mongrel fails](https://www.ruby-forum.com/t/gem-install-mongrel-fails/107884)

<div class="topic-metadata">

**Author:** [@LemmingJoel](https://www.ruby-forum.com/u/LemmingJoel)\
**Replies:** 1\
**Last updated:** [June 28, 2007, 6:30am UTC](https://www.ruby-forum.com/t/gem-install-mongrel-fails/107884 "2007-06-28T06:30:29Z")

</div>

Hi All, I’m try to gem install mongrel, but one of its dependencies fails to compile 'cause gcc doesn’t like the -mtune parameter. Is there a way to remove this parameter or cause gcc to ignore it, etc.? make gcc -I…

---

## [Can't actualize variable session](https://www.ruby-forum.com/t/cant-actualize-variable-session/107982)

<div class="topic-metadata">

**Author:** [@Chewbie](https://www.ruby-forum.com/u/Chewbie)\
**Replies:** 2\
**Last updated:** [June 28, 2007, 6:04am UTC](https://www.ruby-forum.com/t/cant-actualize-variable-session/107982 "2007-06-28T06:04:28Z")

</div>

Hi, I have a variable session, session\[:old\_controller\] that I m using to make some fancy effect on my menu. However since recetly, I have no idea but this variable refuse to be actualized… I am doing a \<% session\[:…

---

## [What's the flow?](https://www.ruby-forum.com/t/whats-the-flow/107566)

<div class="topic-metadata">

**Author:** [@xyzt](https://www.ruby-forum.com/u/xyzt)\
**Replies:** 7\
**Last updated:** [June 28, 2007, 5:50am UTC](https://www.ruby-forum.com/t/whats-the-flow/107566 "2007-06-28T05:50:27Z")

</div>

Hello, I’m new to web programming. I want to learn about the process while developing web applications. What must come first? design, database or model? I think the order must be design-\>database-\>model. What’s the …

---

## [Restricting a FIND based on the results of another](https://www.ruby-forum.com/t/restricting-a-find-based-on-the-results-of-another/107970)

<div class="topic-metadata">

**Author:** [@rjsquire](https://www.ruby-forum.com/u/rjsquire)\
**Replies:** 2\
**Last updated:** [June 28, 2007, 3:37am UTC](https://www.ruby-forum.com/t/restricting-a-find-based-on-the-results-of-another/107970 "2007-06-28T03:37:22Z")

</div>

If anyone could help me figure this out, I’d appreciate it alot. I’m playing around with the Scriptaculous autocomplete function, which per the demonstration on their page looks like this in the controller: def auto\_c…

---

## [Flex times](https://www.ruby-forum.com/t/flex-times/107768)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 2\
**Last updated:** [June 28, 2007, 2:48am UTC](https://www.ruby-forum.com/t/flex-times/107768 "2007-06-28T02:48:13Z")

</div>

I have been using the ‘flex times’ plugin with my application to allow time entries in 12 hour format but it appears that Rails 1.2.3 has broken it enough to make it unusable. Is anyone using something that is useful …

---

## [Attachment\_fu file deletion](https://www.ruby-forum.com/t/attachment-fu-file-deletion/107961)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [June 28, 2007, 1:51am UTC](https://www.ruby-forum.com/t/attachment-fu-file-deletion/107961 "2007-06-28T01:51:10Z")

</div>

I was wondering if there was a built in function for deleting non-image files?

---

## [Auto\_complete\_for - return id](https://www.ruby-forum.com/t/auto-complete-for-return-id/107948)

<div class="topic-metadata">

**Author:** [@dgm](https://www.ruby-forum.com/u/dgm)\
**Replies:** 5\
**Last updated:** [June 28, 2007, 12:35am UTC](https://www.ruby-forum.com/t/auto-complete-for-return-id/107948 "2007-06-28T00:35:06Z")

</div>

I’m using an auto\_complete\_for. Is there an easy way to return the id of the item the user selects from the list? For example - I have an auto complete drop down that has 3 items in it. phones computers monitors wh…

---

## [Communication between Rails Projects?](https://www.ruby-forum.com/t/communication-between-rails-projects/107974)

<div class="topic-metadata">

**Author:** [@msnapper](https://www.ruby-forum.com/u/msnapper)\
**Replies:** 0\
**Last updated:** [June 27, 2007, 11:40pm UTC](https://www.ruby-forum.com/t/communication-between-rails-projects/107974 "2007-06-27T23:40:01Z")

</div>

Hello, I have two Rails projects running on a single (clustered) host. What the best way is for one project to access methods on the other project? My initial thought was to use something like Druby to make direct c…

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

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