# Rails

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

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

---

## [Problem with rfacebook](https://www.ruby-forum.com/t/problem-with-rfacebook/179368)

<div class="topic-metadata">

**Author:** [@pajp](https://www.ruby-forum.com/u/pajp)\
**Replies:** 1\
**Last updated:** [November 23, 2009, 4:21pm UTC](https://www.ruby-forum.com/t/problem-with-rfacebook/179368 "2009-11-23T16:21:42Z")

</div>

Hi, how do i list all messages from one user (having uid)? I can’t find that anywhere :confused: please help me, it’s very important to me. Thank you in advice!

---

## [Latest Method for generating pdf](https://www.ruby-forum.com/t/latest-method-for-generating-pdf/179348)

<div class="topic-metadata">

**Author:** [@artchrst](https://www.ruby-forum.com/u/artchrst)\
**Replies:** 2\
**Last updated:** [November 23, 2009, 2:43pm UTC](https://www.ruby-forum.com/t/latest-method-for-generating-pdf/179348 "2009-11-23T14:43:03Z")

</div>

Hi Guys, I’ve searched for a while how to generate pdf in Rails. It seems that the best way was Prince, but it is expensive. And the solution defeated others for yrs. Is there any new common way to convert rails view…

---

## [ActiveResource and nested routes](https://www.ruby-forum.com/t/activeresource-and-nested-routes/179363)

<div class="topic-metadata">

**Author:** [@ivanstorck](https://www.ruby-forum.com/u/ivanstorck)\
**Replies:** 0\
**Last updated:** [November 23, 2009, 1:58pm UTC](https://www.ruby-forum.com/t/activeresource-and-nested-routes/179363 "2009-11-23T13:58:15Z")

</div>

How can I do PUT request to /entity1/:id1/entity2/:id2 url via ActiveResource?

---

## ["uninitialized constant Engines" - rake docs:plugins problem](https://www.ruby-forum.com/t/uninitialized-constant-engines-rake-docs-plugins-problem/179358)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 0\
**Last updated:** [November 23, 2009, 11:37am UTC](https://www.ruby-forum.com/t/uninitialized-constant-engines-rake-docs-plugins-problem/179358 "2009-11-23T11:37:54Z")

</div>

hey. I recently reinstalled ubuntu (and therefore ruby, rails and all my gems etc). For the first time since i reinstalled i tried to generate some rdocs and got this error: max@max-laptop:~/work/e\_learning\_resourc…

---

## [Upgrade 2.1.2 to 2.3.4: A copy of XXX has been removed](https://www.ruby-forum.com/t/upgrade-2-1-2-to-2-3-4-a-copy-of-xxx-has-been-removed/179356)

<div class="topic-metadata">

**Author:** [@san](https://www.ruby-forum.com/u/san)\
**Replies:** 0\
**Last updated:** [November 23, 2009, 10:30am UTC](https://www.ruby-forum.com/t/upgrade-2-1-2-to-2-3-4-a-copy-of-xxx-has-been-removed/179356 "2009-11-23T10:30:16Z")

</div>

Hi, i tried to upgrade from rails 2.1.2 to rails 2.3.4 via: envorinment.rb RAILS\_GEM\_VERSION = ‘2.3.4’ unless defined? RAILS\_GEM\_VERSION 2) rake rails:upgrade 2.1) # envorinment.rb config.action\_controller.sessi…

---

## [How to create a table if not exists?](https://www.ruby-forum.com/t/how-to-create-a-table-if-not-exists/179295)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 2\
**Last updated:** [November 23, 2009, 7:24am UTC](https://www.ruby-forum.com/t/how-to-create-a-table-if-not-exists/179295 "2009-11-23T07:24:11Z")

</div>

Dear All how to create a table if not exists already? how can i check that whether the table exists or not? pls guide me on this

---

## [Dropdownlist in Rubyon Rails](https://www.ruby-forum.com/t/dropdownlist-in-rubyon-rails/179144)

<div class="topic-metadata">

**Author:** [@ladyhawk](https://www.ruby-forum.com/u/ladyhawk)\
**Replies:** 5\
**Last updated:** [November 22, 2009, 3:11pm UTC](https://www.ruby-forum.com/t/dropdownlist-in-rubyon-rails/179144 "2009-11-22T15:11:32Z")

</div>

Hi, I have a model called Plan with fields plan\_id,Title,description. I have another model called Buy with fields title,description,Plan. I would like to create a “New” View for Buy where we have a dropdown listing al…

---

## [Acts-as-taggable-on migration (table)](https://www.ruby-forum.com/t/acts-as-taggable-on-migration-table/179305)

<div class="topic-metadata">

**Author:** [@introvert](https://www.ruby-forum.com/u/introvert)\
**Replies:** 0\
**Last updated:** [November 21, 2009, 6:03pm UTC](https://www.ruby-forum.com/t/acts-as-taggable-on-migration-table/179305 "2009-11-21T18:03:57Z")

</div>

Hello, I just installed acts-as-taggable-on gem (available here: GitHub - mbleigh/acts-as-taggable-on: A tagging plugin for Rails applications that allows for custom tagging along dynamic contexts.) but it seems like i…

---

## [Layout declaration](https://www.ruby-forum.com/t/layout-declaration/179265)

<div class="topic-metadata">

**Author:** [@cristie](https://www.ruby-forum.com/u/cristie)\
**Replies:** 2\
**Last updated:** [November 21, 2009, 5:15pm UTC](https://www.ruby-forum.com/t/layout-declaration/179265 "2009-11-21T17:15:00Z")

</div>

Hi all. We have been trying to do a custom layout for special user’s via something like this: class ProductsController \< ApplicationController def show products\_layout @product = Product.find(params\[:id\]) end pri…

---

## [2 questions... Can anyone help?](https://www.ruby-forum.com/t/2-questions-can-anyone-help/179258)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 9\
**Last updated:** [November 21, 2009, 1:10pm UTC](https://www.ruby-forum.com/t/2-questions-can-anyone-help/179258 "2009-11-21T13:10:53Z")

</div>

hello there, I’ve just signed up to this, so apologies for the 2 questions in one post… please can anyone help with the following 2 issues I have? and what I need to do to fix them? Note - I’m quite new to rails, so…

---

## [Super Inplace Editor Plugin - Sort Problem after update](https://www.ruby-forum.com/t/super-inplace-editor-plugin-sort-problem-after-update/179296)

<div class="topic-metadata">

**Author:** [@wfspoet](https://www.ruby-forum.com/u/wfspoet)\
**Replies:** 0\
**Last updated:** [November 21, 2009, 12:51pm UTC](https://www.ruby-forum.com/t/super-inplace-editor-plugin-sort-problem-after-update/179296 "2009-11-21T12:51:54Z")

</div>

I use super inplace control plugin for editing there in place. when I run this application, sorting problem occurs For example There are two records in my db it shows the list Name argentina alaska I click argent…

---

## [Can't convert nil into String error](https://www.ruby-forum.com/t/cant-convert-nil-into-string-error/179271)

<div class="topic-metadata">

**Author:** [@introvert](https://www.ruby-forum.com/u/introvert)\
**Replies:** 2\
**Last updated:** [November 21, 2009, 5:55am UTC](https://www.ruby-forum.com/t/cant-convert-nil-into-string-error/179271 "2009-11-21T05:55:54Z")

</div>

Hello, Why is this code causing the following error: can’t convert nil into String class ApplicationController \< ActionController::Base helper :all # include all helpers, all the time protect\_from\_forgery # See Acti…

---

## [Extended lightbox plugin?](https://www.ruby-forum.com/t/extended-lightbox-plugin/179266)

<div class="topic-metadata">

**Author:** [@benol](https://www.ruby-forum.com/u/benol)\
**Replies:** 0\
**Last updated:** [November 20, 2009, 6:25pm UTC](https://www.ruby-forum.com/t/extended-lightbox-plugin/179266 "2009-11-20T18:25:09Z")

</div>

Hi, I seek something simple like http://agilewebdevelopment.com/plugins/lightbox\_helper but that allows to display “galleries”, not only separate images. I want to have a “next image” button :slight\_smile: On the oth…

---

## [Include rails code in html](https://www.ruby-forum.com/t/include-rails-code-in-html/179196)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 25\
**Last updated:** [November 20, 2009, 5:32pm UTC](https://www.ruby-forum.com/t/include-rails-code-in-html/179196 "2009-11-20T17:32:19Z")

</div>

Can I include rails tags in html text in the db? Or perhaps include a code like \[=include\_this\_page\] and do a find replace on that with \<%= render :partial =\>‘include\_this\_page’ %\> before output on the page?

---

## [How to work with GIT](https://www.ruby-forum.com/t/how-to-work-with-git/179242)

<div class="topic-metadata">

**Author:** [@nike](https://www.ruby-forum.com/u/nike)\
**Replies:** 1\
**Last updated:** [November 20, 2009, 3:00pm UTC](https://www.ruby-forum.com/t/how-to-work-with-git/179242 "2009-11-20T15:00:59Z")

</div>

Please help me how to work with GIT in eclipse

---

## [Help w/ attribute\_fu to work in show page like tadalist.com](https://www.ruby-forum.com/t/help-w-attribute-fu-to-work-in-show-page-like-tadalist-com/179235)

<div class="topic-metadata">

**Author:** [@bagadoughnuts](https://www.ruby-forum.com/u/bagadoughnuts)\
**Replies:** 1\
**Last updated:** [November 20, 2009, 2:37pm UTC](https://www.ruby-forum.com/t/help-w-attribute-fu-to-work-in-show-page-like-tadalist-com/179235 "2009-11-20T14:37:49Z")

</div>

Hi all, I followed the code and screencast from this blog on how to install attribute\_fu (Look out Ryan Bates - There's a New Screencast in Town | James Golick). Everything is working fine (using the exact code from …

---

## [Problem with using validation methods](https://www.ruby-forum.com/t/problem-with-using-validation-methods/179129)

<div class="topic-metadata">

**Author:** [@nitin\_k\_m](https://www.ruby-forum.com/u/nitin_k_m)\
**Replies:** 8\
**Last updated:** [November 20, 2009, 2:27pm UTC](https://www.ruby-forum.com/t/problem-with-using-validation-methods/179129 "2009-11-20T14:27:56Z")

</div>

Hi I am making an application using ruby on rails. For user sign up I have given following validation rules class User \< ActiveRecord::Base validates\_presence\_of :first\_name, :on =\> :create, :message =\> “First Name …

---

## [Declarative authorization funny problem](https://www.ruby-forum.com/t/declarative-authorization-funny-problem/179207)

<div class="topic-metadata">

**Author:** [@a-mj](https://www.ruby-forum.com/u/a-mj)\
**Replies:** 2\
**Last updated:** [November 20, 2009, 1:18pm UTC](https://www.ruby-forum.com/t/declarative-authorization-funny-problem/179207 "2009-11-20T13:18:28Z")

</div>

Hi! I’m having this problem: my declarative authorization gem doesn’t allow the ADMIN even to see the index of any page of my application ^^ i’m explaining better: i have, in my user table, a boolean column named “ad…

---

## [Zafu, a new templating language for Rails: needs testers](https://www.ruby-forum.com/t/zafu-a-new-templating-language-for-rails-needs-testers/179248)

<div class="topic-metadata">

**Author:** [@gazoduc](https://www.ruby-forum.com/u/gazoduc)\
**Replies:** 0\
**Last updated:** [November 20, 2009, 1:14pm UTC](https://www.ruby-forum.com/t/zafu-a-new-templating-language-for-rails-needs-testers/179248 "2009-11-20T13:14:05Z")

</div>

Hi list ! I am extracting zafu from zena and would be very glad to have some feedback on the templating language as early as possible in the process. If you are interested, I prepared a simple rails app using some zaf…

---

## [How to insert an image into database and how to display it](https://www.ruby-forum.com/t/how-to-insert-an-image-into-database-and-how-to-display-it/179186)

<div class="topic-metadata">

**Author:** [@vamsi](https://www.ruby-forum.com/u/vamsi)\
**Replies:** 11\
**Last updated:** [November 20, 2009, 12:24pm UTC](https://www.ruby-forum.com/t/how-to-insert-an-image-into-database-and-how-to-display-it/179186 "2009-11-20T12:24:41Z")

</div>

Hi all, I need to insert an image file into the oracle database and want to display the image in the view.for that i had written the following code. In the controller def image\_view @image = Imageresult.find(params\[…

---

## [How to join multiple DB tables in rails](https://www.ruby-forum.com/t/how-to-join-multiple-db-tables-in-rails/179233)

<div class="topic-metadata">

**Author:** [@kalpesh13131](https://www.ruby-forum.com/u/kalpesh13131)\
**Replies:** 1\
**Last updated:** [November 20, 2009, 12:10pm UTC](https://www.ruby-forum.com/t/how-to-join-multiple-db-tables-in-rails/179233 "2009-11-20T12:10:51Z")

</div>

I want to execute below SQL query from rails: “select T.id, F.name, I.name as image\_name from Template T, Format F, Images I WHERE F.id=T.id and I.image\_id=T.image\_id;” I tried something like this: @result = Template…

---

## [Reg: REXML](https://www.ruby-forum.com/t/reg-rexml/179239)

<div class="topic-metadata">

**Author:** [@pradheep](https://www.ruby-forum.com/u/pradheep)\
**Replies:** 0\
**Last updated:** [November 20, 2009, 7:43am UTC](https://www.ruby-forum.com/t/reg-rexml/179239 "2009-11-20T07:43:22Z")

</div>

I got an error while i am migrating a database. Please tell the solution .I need immediately. Please help with this issue (in C:/Documents and Settings/246265/My Documents/NetBeansProjects/Open) Requiring REXML rake…

---

## [Association issues](https://www.ruby-forum.com/t/association-issues/179198)

<div class="topic-metadata">

**Author:** [@aniltc](https://www.ruby-forum.com/u/aniltc)\
**Replies:** 3\
**Last updated:** [November 20, 2009, 4:35am UTC](https://www.ruby-forum.com/t/association-issues/179198 "2009-11-20T04:35:45Z")

</div>

hi all I have list of users and each user has so many friends and each users has a list of countries that they have visited and want to visit. I have created the rails association as User Model class User \< ActiveR…

---

## [Rake db:migrate error - Agile Web Dev with Rails P1.0](https://www.ruby-forum.com/t/rake-db-migrate-error-agile-web-dev-with-rails-p1-0/179226)

<div class="topic-metadata">

**Author:** [@alphacoder](https://www.ruby-forum.com/u/alphacoder)\
**Replies:** 1\
**Last updated:** [November 20, 2009, 4:26am UTC](https://www.ruby-forum.com/t/rake-db-migrate-error-agile-web-dev-with-rails-p1-0/179226 "2009-11-20T04:26:51Z")

</div>

Hi, Getting this error and hope someone can point me in the direction to solve it: == AddPriceToProduct: migrating – add\_column(:products, :price, :decimal, {:precision=\>8, :scale=\>2, :default=\>0}) rake aborted! A…

---

## [Ruby On Rails with Webrick on a Vista System](https://www.ruby-forum.com/t/ruby-on-rails-with-webrick-on-a-vista-system/165215)

<div class="topic-metadata">

**Author:** [@SnLStark](https://www.ruby-forum.com/u/SnLStark)\
**Replies:** 3\
**Last updated:** [November 19, 2009, 10:09pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-with-webrick-on-a-vista-system/165215 "2009-11-19T22:09:37Z")

</div>

Does this work. I am trying to learn ROR on my home system (Vista) using the Agile Web D. with Rails and can not get past the first program. I need some help I am currently learning Ruby on Rails and found a great b…

---

## [Get all checked checkbox!](https://www.ruby-forum.com/t/get-all-checked-checkbox/179217)

<div class="topic-metadata">

**Author:** [@simo](https://www.ruby-forum.com/u/simo)\
**Replies:** 0\
**Last updated:** [November 19, 2009, 9:12pm UTC](https://www.ruby-forum.com/t/get-all-checked-checkbox/179217 "2009-11-19T21:12:35Z")

</div>

hi, I have the following problem: product.controller.rb class Product Controller def show … end end show.html.rb . . \<% Product.find (: all). each do | product| \<% = Check\_box “product”, “name”,: checked =\> …

---

## [Session doesn't get set](https://www.ruby-forum.com/t/session-doesnt-get-set/179066)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 2\
**Last updated:** [November 19, 2009, 9:06pm UTC](https://www.ruby-forum.com/t/session-doesnt-get-set/179066 "2009-11-19T21:06:36Z")

</div>

Seems like the session doesn’t get set. Is this a know problem? What can I do, or what should I be aware of to solve this?

---

## [Non-persistent sessions? session\_options?](https://www.ruby-forum.com/t/non-persistent-sessions-session-options/179213)

<div class="topic-metadata">

**Author:** [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Replies:** 0\
**Last updated:** [November 19, 2009, 7:42pm UTC](https://www.ruby-forum.com/t/non-persistent-sessions-session-options/179213 "2009-11-19T19:42:46Z")

</div>

How can I set my Rails sessions to not be persistent accross browser restarts? That, the cookies involved with sessions/session tokens should be set to have an empty “expires” attribute, I think. It looks like maybe …

---

## [Problems with Upgrading Rails App (2.1.2 -\> 2.3.4)](https://www.ruby-forum.com/t/problems-with-upgrading-rails-app-2-1-2-2-3-4/179209)

<div class="topic-metadata">

**Author:** [@san](https://www.ruby-forum.com/u/san)\
**Replies:** 1\
**Last updated:** [November 19, 2009, 6:25pm UTC](https://www.ruby-forum.com/t/problems-with-upgrading-rails-app-2-1-2-2-3-4/179209 "2009-11-19T18:25:20Z")

</div>

Hi, Basically its about an “uninitialized constant ActionController::Session::PStore (NameError)” I had a look at: http://wiki.rubyonrails.org/getting-started/upgrading?s\[\]=upgrade I did the following commands: U…

---

## [Binary image and email](https://www.ruby-forum.com/t/binary-image-and-email/179096)

<div class="topic-metadata">

**Author:** [@lune9](https://www.ruby-forum.com/u/lune9)\
**Replies:** 4\
**Last updated:** [November 19, 2009, 5:32pm UTC](https://www.ruby-forum.com/t/binary-image-and-email/179096 "2009-11-19T17:32:29Z")

</div>

Hi, I generate graphs in Flash (with open flash charts) that I convert in a binary image. Then I send the source in an email but I don’t have the image in the mail. The content type of the mail is “text/html”. Do I h…

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

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