# Rails

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

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

---

## [SQL error... :joins and :order in ActiveRecord find command](https://www.ruby-forum.com/t/sql-error-joins-and-order-in-activerecord-find-command/187535)

<div class="topic-metadata">

**Author:** [@lpdahito](https://www.ruby-forum.com/u/lpdahito)\
**Replies:** 2\
**Last updated:** [April 25, 2010, 9:28pm UTC](https://www.ruby-forum.com/t/sql-error-joins-and-order-in-activerecord-find-command/187535 "2010-04-25T21:28:43Z")

</div>

Hi guys! There’s a problem I’m dealing with since 2 days now and I haven’t quite figured out what’s wrong in my code. Here it is… Suppose I’ve got a pretty simple blogging app which has stories and comments. The co…

---

## [Link\_to delete action](https://www.ruby-forum.com/t/link-to-delete-action/187551)

<div class="topic-metadata">

**Author:** [@gregm](https://www.ruby-forum.com/u/gregm)\
**Replies:** 4\
**Last updated:** [April 25, 2010, 7:11pm UTC](https://www.ruby-forum.com/t/link-to-delete-action/187551 "2010-04-25T19:11:50Z")

</div>

Hi, I’m having problem with a link\_to delete action. I don’t understant what i’m doing is wrong. Here is my code: \<% participant = item.participants(:user\_id =\> current\_user.id).first %\> \<%= link\_to “Ne plus partic…

---

## [\[JOBS\] Rails Director Needed - Offering Ownership Interest](https://www.ruby-forum.com/t/jobs-rails-director-needed-offering-ownership-interest/187552)

<div class="topic-metadata">

**Author:** [@Blue\_D](https://www.ruby-forum.com/u/Blue_D)\
**Replies:** 0\
**Last updated:** [April 25, 2010, 5:49pm UTC](https://www.ruby-forum.com/t/jobs-rails-director-needed-offering-ownership-interest/187552 "2010-04-25T17:49:02Z")

</div>

Our Naperville, IL based startup is creating a new social networking platform that businesses will be able to use to better brand and market their business to their customers and their community. The system has been …

---

## [A method to search for empty stuff](https://www.ruby-forum.com/t/a-method-to-search-for-empty-stuff/187550)

<div class="topic-metadata">

**Author:** [@bingobob](https://www.ruby-forum.com/u/bingobob)\
**Replies:** 5\
**Last updated:** [April 25, 2010, 5:48pm UTC](https://www.ruby-forum.com/t/a-method-to-search-for-empty-stuff/187550 "2010-04-25T17:48:14Z")

</div>

I’m trying to write some tools to help me clean up my data, first stop is trying to find empty attributes in my Resort model…the following works, def self.find\_empty\_resort\_heights resorts = \[\] Resort.all.each do |r…

---

## [Cut first x pages from a PDF file](https://www.ruby-forum.com/t/cut-first-x-pages-from-a-pdf-file/187543)

<div class="topic-metadata">

**Author:** [@jhaagmans](https://www.ruby-forum.com/u/jhaagmans)\
**Replies:** 4\
**Last updated:** [April 25, 2010, 5:21pm UTC](https://www.ruby-forum.com/t/cut-first-x-pages-from-a-pdf-file/187543 "2010-04-25T17:21:31Z")

</div>

Hi all, I’m finishing up on a project, which has a model with an attached PDF file. I’m using Paperclip to process the attachment. What I’d like to do is to enable users to cut (remove) the first x pages from the PDF…

---

## [Json response with belongs\_to](https://www.ruby-forum.com/t/json-response-with-belongs-to/187522)

<div class="topic-metadata">

**Author:** [@fabiokr](https://www.ruby-forum.com/u/fabiokr)\
**Replies:** 1\
**Last updated:** [April 25, 2010, 4:42pm UTC](https://www.ruby-forum.com/t/json-response-with-belongs-to/187522 "2010-04-25T16:42:52Z")

</div>

Hi all, Supponsing I have this: class Post \< ActiveRecord::Base end class Comment \< ActiveRecord::Base belongs\_to :post end How can I make (on Rails 3) on the CommentsController to respond with a json object incl…

---

## [Error at RoR with MySql 4](https://www.ruby-forum.com/t/error-at-ror-with-mysql-4/187544)

<div class="topic-metadata">

**Author:** [@MarceloSC](https://www.ruby-forum.com/u/MarceloSC)\
**Replies:** 0\
**Last updated:** [April 25, 2010, 10:58am UTC](https://www.ruby-forum.com/t/error-at-ror-with-mysql-4/187544 "2010-04-25T10:58:09Z")

</div>

MySql error in Ruby. Where do I place libmySQL.dll requested not to give more this error? Command rake db:CREATE and http://localhost:3000/project and show the error. The command “gem install mysql” was successf…

---

## [Rails (3) Engines and Plugins - How to mix application and vendor code?](https://www.ruby-forum.com/t/rails-3-engines-and-plugins-how-to-mix-application-and-vendor-code/187532)

<div class="topic-metadata">

**Author:** [@hornairs](https://www.ruby-forum.com/u/hornairs)\
**Replies:** 1\
**Last updated:** [April 25, 2010, 10:58am UTC](https://www.ruby-forum.com/t/rails-3-engines-and-plugins-how-to-mix-application-and-vendor-code/187532 "2010-04-25T10:58:09Z")

</div>

I’m trying to create several large applications that share 60-80 percent of their functionality. I’d like to find some way to abstract the common functionality into a gem, plugin, or engine which I can then deploy as …

---

## [Rails internals?](https://www.ruby-forum.com/t/rails-internals/187453)

<div class="topic-metadata">

**Author:** [@laguna53](https://www.ruby-forum.com/u/laguna53)\
**Replies:** 15\
**Last updated:** [April 25, 2010, 9:54am UTC](https://www.ruby-forum.com/t/rails-internals/187453 "2010-04-25T09:54:20Z")

</div>

Hi. I’m new to ROR, I bought the book “Agile Web D. with Rails, Third Edition” and followed the depot example. I still can’t imagine me developing a rails application after that. There are many things that are not exp…

---

## [Css RoutingError with 3.0.0.beta3](https://www.ruby-forum.com/t/css-routingerror-with-3-0-0-beta3/187511)

<div class="topic-metadata">

**Author:** [@jeanluca](https://www.ruby-forum.com/u/jeanluca)\
**Replies:** 2\
**Last updated:** [April 25, 2010, 9:24am UTC](https://www.ruby-forum.com/t/css-routingerror-with-3-0-0-beta3/187511 "2010-04-25T09:24:29Z")

</div>

To have a shot at 3.0.0.beta3, I had just been trying “rails g scaffold welcome” , then it come up I get a routing error to css which will never display : Started GET “/welcomes” for 93.34.177.137 at 2010-04-24 08:52…

---

## [About your application's environment URL not found](https://www.ruby-forum.com/t/about-your-applications-environment-url-not-found/187498)

<div class="topic-metadata">

**Author:** [@osshcs](https://www.ruby-forum.com/u/osshcs)\
**Replies:** 5\
**Last updated:** [April 25, 2010, 8:42am UTC](https://www.ruby-forum.com/t/about-your-applications-environment-url-not-found/187498 "2010-04-25T08:42:55Z")

</div>

Hi I am a newbie (which you probably guessed from the subject) and have just installed ruby 1.8.7, rails 2.3.5 and apache 2.2.12 on ubuntu 9.10. I have created a rails app and edited my apache config as shown below. …

---

## [Socket app on shared environment?](https://www.ruby-forum.com/t/socket-app-on-shared-environment/187447)

<div class="topic-metadata">

**Author:** [@poolbastard](https://www.ruby-forum.com/u/poolbastard)\
**Replies:** 1\
**Last updated:** [April 25, 2010, 1:22am UTC](https://www.ruby-forum.com/t/socket-app-on-shared-environment/187447 "2010-04-25T01:22:51Z")

</div>

Hi group, I’m just wondering if anyone has any experienced having a custom socket app, unique port, etc on a shared environment; I’m sort of convinced I would need at least a VPS, but asking just in case some knows of…

---

## [SAML for Ruby on Rails - we have it!](https://www.ruby-forum.com/t/saml-for-ruby-on-rails-we-have-it/187529)

<div class="topic-metadata">

**Author:** [@Thomas\_Pedersen](https://www.ruby-forum.com/u/Thomas_Pedersen)\
**Replies:** 0\
**Last updated:** [April 24, 2010, 11:50pm UTC](https://www.ruby-forum.com/t/saml-for-ruby-on-rails-we-have-it/187529 "2010-04-24T23:50:22Z")

</div>

OneLogin has put together a SAML toolkit for Ruby on Rails and we’re about to kick-off the implementation with two very successful Rails sites who will be adding SAML for their enterprise customers. We are providing t…

---

## [\[ Allround deployment for Rails \] using nginx and passenger, best practice, how?](https://www.ruby-forum.com/t/allround-deployment-for-rails-using-nginx-and-passenger-best-practice-how/187525)

<div class="topic-metadata">

**Author:** [@rubybox](https://www.ruby-forum.com/u/rubybox)\
**Replies:** 0\
**Last updated:** [April 24, 2010, 9:10pm UTC](https://www.ruby-forum.com/t/allround-deployment-for-rails-using-nginx-and-passenger-best-practice-how/187525 "2010-04-24T21:10:01Z")

</div>

Im ready setting up a CentOS 5.4 new secure server for hosting Rails applications, only the deployment setup is causing me mayor headaches. I use: CentOS PHP-PFM Nginx Ruby Enterprise and Passenger What I would lik…

---

## [Using AWS RDS with Rails](https://www.ruby-forum.com/t/using-aws-rds-with-rails/187475)

<div class="topic-metadata">

**Author:** [@soesan01](https://www.ruby-forum.com/u/soesan01)\
**Replies:** 4\
**Last updated:** [April 24, 2010, 7:14pm UTC](https://www.ruby-forum.com/t/using-aws-rds-with-rails/187475 "2010-04-24T19:14:10Z")

</div>

Guys, Could you give pointer how I can use AWS RDS with rails? Is there any plugins to accomplish this? Thank you for you help. Yudi

---

## [New to rails - apparently need patch to use PostgreSQL](https://www.ruby-forum.com/t/new-to-rails-apparently-need-patch-to-use-postgresql/187512)

<div class="topic-metadata">

**Author:** [@cootcraig](https://www.ruby-forum.com/u/cootcraig)\
**Replies:** 4\
**Last updated:** [April 24, 2010, 5:44pm UTC](https://www.ruby-forum.com/t/new-to-rails-apparently-need-patch-to-use-postgresql/187512 "2010-04-24T17:44:35Z")

</div>

Help please. My first attempt at Rails, I’m trying to use PostgreSQL and I’m seeing this error. I’m also new to PostgreSQL, but the default encoding in PostgreSQL appears to be SQL\_ASCII. I’m not sure if I should t…

---

## [List time zones?](https://www.ruby-forum.com/t/list-time-zones/187503)

<div class="topic-metadata">

**Author:** [@morgan](https://www.ruby-forum.com/u/morgan)\
**Replies:** 1\
**Last updated:** [April 24, 2010, 5:41pm UTC](https://www.ruby-forum.com/t/list-time-zones/187503 "2010-04-24T17:41:04Z")

</div>

Is there a way to list the time zones that rails makes available (it seems to function only on cities)? I figured out how to get that list at the command line in rake but i can’t seem to get access to the list of avai…

---

## [Searching activerecord result arrays "include?" does not work](https://www.ruby-forum.com/t/searching-activerecord-result-arrays-include-does-not-work/187515)

<div class="topic-metadata">

**Author:** [@MJFuzz](https://www.ruby-forum.com/u/MJFuzz)\
**Replies:** 2\
**Last updated:** [April 24, 2010, 3:32pm UTC](https://www.ruby-forum.com/t/searching-activerecord-result-arrays-include-does-not-work/187515 "2010-04-24T15:32:50Z")

</div>

I’m racking my brain with this and I know there’s an easy way to do this. I have a Model.find result array. I need to check to see if a value exists in that array result. Array.include? always returns false I assume …

---

## [Multiple "view" directories to achieve rails "themes"](https://www.ruby-forum.com/t/multiple-view-directories-to-achieve-rails-themes/187505)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [April 24, 2010, 3:31pm UTC](https://www.ruby-forum.com/t/multiple-view-directories-to-achieve-rails-themes/187505 "2010-04-24T15:31:28Z")

</div>

Hi I’d like to have various “themes” for my site that cannot be achieved by changing the CSS or anything else. So my directory structure might look like this: app \\ views - \\ users \\ blogs - \\ THEME2 - \\ user…

---

## [Rails 3 associations extra attributes with lazy loading](https://www.ruby-forum.com/t/rails-3-associations-extra-attributes-with-lazy-loading/187377)

<div class="topic-metadata">

**Author:** [@will\_p](https://www.ruby-forum.com/u/will_p)\
**Replies:** 6\
**Last updated:** [April 24, 2010, 2:24pm UTC](https://www.ruby-forum.com/t/rails-3-associations-extra-attributes-with-lazy-loading/187377 "2010-04-24T14:24:56Z")

</div>

Hello, How can one get the extra attributes from the association table while using lazy loading like so: I have a HMT (rails3) association and am using the includes method to prepare my queries. But Im not able to ge…

---

## [Ruby on Rails Developer requirement- 6+ months- Hillsboro, OR](https://www.ruby-forum.com/t/ruby-on-rails-developer-requirement-6-months-hillsboro-or/187513)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 24, 2010, 12:13pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-developer-requirement-6-months-hillsboro-or/187513 "2010-04-24T12:13:52Z")

</div>

Let me know if you are interested Title: Ruby on Rails Web Application Developer Location: Hillsbroro, OR Duration: 6+ months Required Skills: Ruby on Rails framework. MY SQL, BRIO, HTML, CSS, AJAX, Oracle, UNIX, L…

---

## [Help me pls:Tracking mails in rails](https://www.ruby-forum.com/t/help-me-pls-tracking-mails-in-rails/187504)

<div class="topic-metadata">

**Author:** [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Replies:** 3\
**Last updated:** [April 24, 2010, 11:39am UTC](https://www.ruby-forum.com/t/help-me-pls-tracking-mails-in-rails/187504 "2010-04-24T11:39:55Z")

</div>

hai friends can anone help me to provide a way to implement the following using rails. i created a mail campaign application.if a user successfuly created a campaign he will be getting a mail. how i c…

---

## [Link\_to with resource routes in helper file?](https://www.ruby-forum.com/t/link-to-with-resource-routes-in-helper-file/187493)

<div class="topic-metadata">

**Author:** [@tim](https://www.ruby-forum.com/u/tim)\
**Replies:** 2\
**Last updated:** [April 24, 2010, 2:34am UTC](https://www.ruby-forum.com/t/link-to-with-resource-routes-in-helper-file/187493 "2010-04-24T02:34:33Z")

</div>

Hey all! Any pointers on doing something like: link\_to “Comments”, comments\_path from within a helper file just like you can do from a view? Thanks in advance!

---

## [Zoomable chart](https://www.ruby-forum.com/t/zoomable-chart/187492)

<div class="topic-metadata">

**Author:** [@Tig](https://www.ruby-forum.com/u/Tig)\
**Replies:** 1\
**Last updated:** [April 24, 2010, 12:25am UTC](https://www.ruby-forum.com/t/zoomable-chart/187492 "2010-04-24T00:25:46Z")

</div>

Hi, I would like to create an interactive bubble chart from a Rails- based database. I’ve spent quite a lot of time browsing the posts both here and on rubyforums for similar queries, but haven’t really found a defini…

---

## [Script/server not working, I can't setup my local environment](https://www.ruby-forum.com/t/script-server-not-working-i-cant-setup-my-local-environment/187445)

<div class="topic-metadata">

**Author:** [@matt](https://www.ruby-forum.com/u/matt)\
**Replies:** 3\
**Last updated:** [April 23, 2010, 10:53pm UTC](https://www.ruby-forum.com/t/script-server-not-working-i-cant-setup-my-local-environment/187445 "2010-04-23T22:53:16Z")

</div>

Hey guys, I’ve been trying to get my local env up and running on my new machine, I never really figured out how I did it last time, and this time its a nightmare. Every time I go to run script/server in my project fil…

---

## [Session\[:foo\] size limit?](https://www.ruby-forum.com/t/session-foo-size-limit/187463)

<div class="topic-metadata">

**Author:** [@coldie](https://www.ruby-forum.com/u/coldie)\
**Replies:** 5\
**Last updated:** [April 23, 2010, 9:26pm UTC](https://www.ruby-forum.com/t/session-foo-size-limit/187463 "2010-04-23T21:26:03Z")

</div>

Hi there, i want to store an array of filenames in a session-variable (session\[:foo). The problem is: if it reaches a current number of entries the application breaks. Is there a storage-limit of session-variables? …

---

## [Heroku deployment](https://www.ruby-forum.com/t/heroku-deployment/187245)

<div class="topic-metadata">

**Author:** [@shyam\_mohan](https://www.ruby-forum.com/u/shyam_mohan)\
**Replies:** 3\
**Last updated:** [April 23, 2010, 8:42pm UTC](https://www.ruby-forum.com/t/heroku-deployment/187245 "2010-04-23T20:42:44Z")

</div>

Hi please help me… git push heroku master Warning: Permanently added the RSA host key for IP address to the list of known hosts. Permission denied (publickey). fatal: The remote end hung up unexpectedly please…

---

## [Login into yahoo - - - rails](https://www.ruby-forum.com/t/login-into-yahoo-rails/187483)

<div class="topic-metadata">

**Author:** [@kevid](https://www.ruby-forum.com/u/kevid)\
**Replies:** 1\
**Last updated:** [April 23, 2010, 8:42pm UTC](https://www.ruby-forum.com/t/login-into-yahoo-rails/187483 "2010-04-23T20:42:08Z")

</div>

hi all, Is there a way to login to yahoo programatically from my controller? thus the user (WITHOUT SEEING THE YAHOO LOGIN PAGE) would just be logged into yahoo having provided username and password ??? thoughts ??

---

## [Stop printing style with auto\_complete](https://www.ruby-forum.com/t/stop-printing-style-with-auto-complete/187474)

<div class="topic-metadata">

**Author:** [@arigo](https://www.ruby-forum.com/u/arigo)\
**Replies:** 0\
**Last updated:** [April 23, 2010, 6:40pm UTC](https://www.ruby-forum.com/t/stop-printing-style-with-auto-complete/187474 "2010-04-23T18:40:24Z")

</div>

auto\_complete prints the style just near the input box but the XHTML does not validates. Is there a way to stop autocomple printing the style code and move into the CSS file? Thanks.

---

## [Puzzled by Mutex lock call](https://www.ruby-forum.com/t/puzzled-by-mutex-lock-call/187408)

<div class="topic-metadata">

**Author:** [@Jedrin](https://www.ruby-forum.com/u/Jedrin)\
**Replies:** 6\
**Last updated:** [April 23, 2010, 5:44pm UTC](https://www.ruby-forum.com/t/puzzled-by-mutex-lock-call/187408 "2010-04-23T17:44:46Z")

</div>

I have some code that uses and instance of Mutex and calls @mutex.lock, executes some code and then does unlock(). When I call lock() I get some ActiveRecord error which seems unrelated. Couldn’t find ActiveJob with …

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

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