# Rails

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

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

---

## [Transaction blocks and error handling](https://www.ruby-forum.com/t/transaction-blocks-and-error-handling/178818)

<div class="topic-metadata">

**Author:** [@SurviveStyle5](https://www.ruby-forum.com/u/SurviveStyle5)\
**Replies:** 0\
**Last updated:** [November 11, 2009, 7:36pm UTC](https://www.ruby-forum.com/t/transaction-blocks-and-error-handling/178818 "2009-11-11T19:36:18Z")

</div>

I have a question about transaction blocks and error handling. I have an big\_object that has an array of other\_objects. So i’m updating these objects from user input and i wrap the whole thing in a transaction, go thr…

---

## [Host\_with\_port in config/environment.rb](https://www.ruby-forum.com/t/host-with-port-in-config-environment-rb/178794)

<div class="topic-metadata">

**Author:** [@shark83](https://www.ruby-forum.com/u/shark83)\
**Replies:** 4\
**Last updated:** [November 11, 2009, 7:08pm UTC](https://www.ruby-forum.com/t/host-with-port-in-config-environment-rb/178794 "2009-11-11T19:08:47Z")

</div>

Hello everyone… i’m Italian, sorry for my poor English, but I find myself in difficulties with this method.I don’t need to redirect the logout of rubycas in a host other than localhost… when the decoy in “config/envir…

---

## [Before filter help](https://www.ruby-forum.com/t/before-filter-help/178755)

<div class="topic-metadata">

**Author:** [@Nicholas\_Y](https://www.ruby-forum.com/u/Nicholas_Y)\
**Replies:** 3\
**Last updated:** [November 11, 2009, 6:37pm UTC](https://www.ruby-forum.com/t/before-filter-help/178755 "2009-11-11T18:37:46Z")

</div>

First off, I want to apologize if this topic has been previously addressed on the list. I looked, but could have missed it. I’m trying to run a subscription site, and have created a Subscription resource. I now have a…

---

## [Is it possible to do Reverse Engineering in rails migrations?](https://www.ruby-forum.com/t/is-it-possible-to-do-reverse-engineering-in-rails-migrations/178804)

<div class="topic-metadata">

**Author:** [@sathish](https://www.ruby-forum.com/u/sathish)\
**Replies:** 3\
**Last updated:** [November 11, 2009, 5:32pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-do-reverse-engineering-in-rails-migrations/178804 "2009-11-11T17:32:48Z")

</div>

Hi All, This is my first post as in joined just now and have some doubts, I need a to discuss about Rails migrations in detail, I have a doubt on doing reverse engineering concept in migrations on existing database. …

---

## [Should be simple -- will\_paginate ordered by acts\_as\_rated](https://www.ruby-forum.com/t/should-be-simple-will-paginate-ordered-by-acts-as-rated/178727)

<div class="topic-metadata">

**Author:** [@jeffpritchard](https://www.ruby-forum.com/u/jeffpritchard)\
**Replies:** 5\
**Last updated:** [November 11, 2009, 5:01pm UTC](https://www.ruby-forum.com/t/should-be-simple-will-paginate-ordered-by-acts-as-rated/178727 "2009-11-11T17:01:47Z")

</div>

It seems like this should be very simple and very common. I’m using “acts\_as\_rated” plugin to rate images I’m using mislav-will\_paginate gem to paginate a list of images (not really relevant, but also using paperclip …

---

## [ActiveRecord will not change port](https://www.ruby-forum.com/t/activerecord-will-not-change-port/178753)

<div class="topic-metadata">

**Author:** [@mpiskorz](https://www.ruby-forum.com/u/mpiskorz)\
**Replies:** 3\
**Last updated:** [November 11, 2009, 4:49pm UTC](https://www.ruby-forum.com/t/activerecord-will-not-change-port/178753 "2009-11-11T16:49:45Z")

</div>

Hello, I’m trying to connect to a remote mysql server using a ssh tunnel and activerecord. I know the ssh tunnel is working because I can connect via the cmd line client. I’ve set the ssh tunnel up like this: ssh -L…

---

## [File security](https://www.ruby-forum.com/t/file-security/178810)

<div class="topic-metadata">

**Author:** [@penguinjr](https://www.ruby-forum.com/u/penguinjr)\
**Replies:** 0\
**Last updated:** [November 11, 2009, 4:36pm UTC](https://www.ruby-forum.com/t/file-security/178810 "2009-11-11T16:36:04Z")

</div>

Hi! again I have another question: I’m using Apach2 (preforks) + mod\_rails for deploy my RoR app. Ok, i changed the ownership of al files/dir of the RoR proyect to www-data/www-data, and set 755 attr. (rwx,rx,rx) Is…

---

## [How to: Check if Javascript is enabled](https://www.ruby-forum.com/t/how-to-check-if-javascript-is-enabled/178797)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 4\
**Last updated:** [November 11, 2009, 3:48pm UTC](https://www.ruby-forum.com/t/how-to-check-if-javascript-is-enabled/178797 "2009-11-11T15:48:34Z")

</div>

Hi there, Rails has fantastic Javascript helpers, which I have immediately used for my website. Since some features of my website now rely 100% on Javascript being enabled in the user’s browser, I now need a way to e…

---

## [Authlogic and Restful Authentication - Security Issues](https://www.ruby-forum.com/t/authlogic-and-restful-authentication-security-issues/178775)

<div class="topic-metadata">

**Author:** [@Katherine](https://www.ruby-forum.com/u/Katherine)\
**Replies:** 3\
**Last updated:** [November 11, 2009, 3:36pm UTC](https://www.ruby-forum.com/t/authlogic-and-restful-authentication-security-issues/178775 "2009-11-11T15:36:05Z")

</div>

Greetings. I need to know an expert’s opinion on Authlogic and Restful Authentication as to security. I have used both and I personally like Authlogic precisely because it is more flexible. As to security I am not aw…

---

## [Online app to be developed using RoR and sqlite3](https://www.ruby-forum.com/t/online-app-to-be-developed-using-ror-and-sqlite3/178762)

<div class="topic-metadata">

**Author:** [@OluwayomiSO.Oluwa](https://www.ruby-forum.com/u/OluwayomiSO.Oluwa)\
**Replies:** 8\
**Last updated:** [November 11, 2009, 3:33pm UTC](https://www.ruby-forum.com/t/online-app-to-be-developed-using-ror-and-sqlite3/178762 "2009-11-11T15:33:21Z")

</div>

Hi all, I want to implement a web based application(A B2C e-commerce web site selling textbooks) using Ruby on rails as my server side scripting lang and squlite3 as my database.Can any body give me a clue as to how t…

---

## [Constants in model](https://www.ruby-forum.com/t/constants-in-model/178802)

<div class="topic-metadata">

**Author:** [@Mehmet\_Davut](https://www.ruby-forum.com/u/Mehmet_Davut)\
**Replies:** 0\
**Last updated:** [November 11, 2009, 2:48pm UTC](https://www.ruby-forum.com/t/constants-in-model/178802 "2009-11-11T14:48:52Z")

</div>

Hi, I have a constant in Model like; class Post \< ActiveRecord::Base STATES = {:id =\> 100, :status =\> “public”}, {:id =\> 110, :status =\> “protected”}, {:id =\> 120, :status =\> “private”}, {:id =\> 130, :status =\> “de…

---

## [Ruby on Rails install/config](https://www.ruby-forum.com/t/ruby-on-rails-install-config/178754)

<div class="topic-metadata">

**Author:** [@bct](https://www.ruby-forum.com/u/bct)\
**Replies:** 3\
**Last updated:** [November 11, 2009, 1:22pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-install-config/178754 "2009-11-11T13:22:14Z")

</div>

Hello, I am installing Rails, with MySQL, based on the steps found at: The step for MySQL says: "Now that we have the Rails framework installed on our system, we need a database connector, in order to connect our R…

---

## [Doubt in attachment](https://www.ruby-forum.com/t/doubt-in-attachment/178791)

<div class="topic-metadata">

**Author:** [@karthik](https://www.ruby-forum.com/u/karthik)\
**Replies:** 0\
**Last updated:** [November 11, 2009, 12:40pm UTC](https://www.ruby-forum.com/t/doubt-in-attachment/178791 "2009-11-11T12:40:40Z")

</div>

Hi I have some four items in the page one among that is attachment when i leave one mandatory field blank and attach one file and hit submit it will say as one field is mandatory but the path is not available Pleas…

---

## [Post and redirect from a controller](https://www.ruby-forum.com/t/post-and-redirect-from-a-controller/135155)

<div class="topic-metadata">

**Author:** [@tomh](https://www.ruby-forum.com/u/tomh)\
**Replies:** 1\
**Last updated:** [November 11, 2009, 11:43am UTC](https://www.ruby-forum.com/t/post-and-redirect-from-a-controller/135155 "2009-11-11T11:43:42Z")

</div>

Hi, I am trying to do something similar to a thread, http://groups.google.com/group/rubyonrails-talk/browse\_thread/thread/ad6cfd2d9b5e7e1 but a little different. Using Paypal (website payments standard), I’m trying t…

---

## [Controller Problem](https://www.ruby-forum.com/t/controller-problem/178785)

<div class="topic-metadata">

**Author:** [@vinay](https://www.ruby-forum.com/u/vinay)\
**Replies:** 1\
**Last updated:** [November 11, 2009, 10:24am UTC](https://www.ruby-forum.com/t/controller-problem/178785 "2009-11-11T10:24:18Z")

</div>

Hi, I am new to this ruby on rails talk. and also fairly new to rails. As i was working on controller i had faced a new problem. I created a controller like script/server generate controller Home::hello index and on…

---

## [Help! cannot display model's attr\_accessor](https://www.ruby-forum.com/t/help-cannot-display-models-attr-accessor/178786)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [November 11, 2009, 10:21am UTC](https://www.ruby-forum.com/t/help-cannot-display-models-attr-accessor/178786 "2009-11-11T10:21:57Z")

</div>

hi, i m new to ruby on rails, this question might sound stupid, but i m really confused by the relationship between attributes of the model and the column in that model table. i have two tables ‘institutions’ and ‘al…

---

## [Problem in displaying all older tweets](https://www.ruby-forum.com/t/problem-in-displaying-all-older-tweets/178731)

<div class="topic-metadata">

**Author:** [@nilez](https://www.ruby-forum.com/u/nilez)\
**Replies:** 1\
**Last updated:** [November 11, 2009, 10:17am UTC](https://www.ruby-forum.com/t/problem-in-displaying-all-older-tweets/178731 "2009-11-11T10:17:51Z")

</div>

Hi Everyone, I want to display all the older tweets in my application. I am using jquery plugin(jquery.tweet.js) for that. I am getting only 9 days old tweets. Is it possible to get all the older tweets. If yes, pl…

---

## [How to 301 redirect with passenger(mode\_rails)?](https://www.ruby-forum.com/t/how-to-301-redirect-with-passenger-mode-rails/178490)

<div class="topic-metadata">

**Author:** [@k560](https://www.ruby-forum.com/u/k560)\
**Replies:** 2\
**Last updated:** [November 11, 2009, 10:17am UTC](https://www.ruby-forum.com/t/how-to-301-redirect-with-passenger-mode-rails/178490 "2009-11-11T10:17:51Z")

</div>

I’ve rebuild my site and many url has changed. I want to redirect 301 these url. However, I don’t know how to do it with passenger. Any advice?

---

## [Job Post - ROR Jr Programmer - Austin,TX](https://www.ruby-forum.com/t/job-post-ror-jr-programmer-austin-tx/178781)

<div class="topic-metadata">

**Author:** [@amwfllc](https://www.ruby-forum.com/u/amwfllc)\
**Replies:** 0\
**Last updated:** [November 11, 2009, 10:17am UTC](https://www.ruby-forum.com/t/job-post-ror-jr-programmer-austin-tx/178781 "2009-11-11T10:17:15Z")

</div>

Ruby on Rails Programmer - Junior Our client, based in Austin, TX, is looking for a Ruby on Rails Programmer to join their dynamic team of experienced programmers. As a Ruby on Rails Programmer, you will perform a cri…

---

## [Help me on how to](https://www.ruby-forum.com/t/help-me-on-how-to/178776)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 5\
**Last updated:** [November 11, 2009, 8:53am UTC](https://www.ruby-forum.com/t/help-me-on-how-to/178776 "2009-11-11T08:53:31Z")

</div>

i want to check the given mysql database is exists or not using rails… i searched the net and found the below SELECT SCHEMA\_NAME FROM INFORMATION\_SCHEMA.SCHEMATA WHERE SCHEMA\_NAME = ‘testdb’ this is works in query br…

---

## [How to find the current database?](https://www.ruby-forum.com/t/how-to-find-the-current-database/178777)

<div class="topic-metadata">

**Author:** [@martin\_mercy2001](https://www.ruby-forum.com/u/martin_mercy2001)\
**Replies:** 1\
**Last updated:** [November 11, 2009, 7:11am UTC](https://www.ruby-forum.com/t/how-to-find-the-current-database/178777 "2009-11-11T07:11:06Z")

</div>

Dear Frienz, Iam using two databases in my application and how to find the current database name? Also how to find the existance of a database? I have option to change the database? so if a user gives a database name …

---

## [What can go into the User model to allow users to have profiles?](https://www.ruby-forum.com/t/what-can-go-into-the-user-model-to-allow-users-to-have-profiles/178768)

<div class="topic-metadata">

**Author:** [@AlwaysCharging](https://www.ruby-forum.com/u/AlwaysCharging)\
**Replies:** 1\
**Last updated:** [November 11, 2009, 2:32am UTC](https://www.ruby-forum.com/t/what-can-go-into-the-user-model-to-allow-users-to-have-profiles/178768 "2009-11-11T02:32:02Z")

</div>

I’m learning Rails and still a little unclear as to what goes where. In my app I want to have Users (which I’ll probably use restful\_authentication or authlogic). So I set up my Users model (which I can follow), but …

---

## [UserMailer Issue - Can any one help?](https://www.ruby-forum.com/t/usermailer-issue-can-any-one-help/178758)

<div class="topic-metadata">

**Author:** [@RubyonRails\_newbie](https://www.ruby-forum.com/u/RubyonRails_newbie)\
**Replies:** 5\
**Last updated:** [November 11, 2009, 1:35am UTC](https://www.ruby-forum.com/t/usermailer-issue-can-any-one-help/178758 "2009-11-11T01:35:10Z")

</div>

Hi there everyone! I am looking to add email functionality to my project, whilst following the railsspace tutorial. The book suggests that I add the following into the environment.rb file: ActionMailer::Base.deliver…

---

## [How to force AR belongs\_to include option to eager load?](https://www.ruby-forum.com/t/how-to-force-ar-belongs-to-include-option-to-eager-load/178330)

<div class="topic-metadata">

**Author:** [@arturaz](https://www.ruby-forum.com/u/arturaz)\
**Replies:** 3\
**Last updated:** [November 11, 2009, 12:43am UTC](https://www.ruby-forum.com/t/how-to-force-ar-belongs-to-include-option-to-eager-load/178330 "2009-11-11T00:43:06Z")

</div>

Hello I have two classes class SolarSystem \< ActiveRecord::Base has\_many :fow\_ss\_entries, :dependent =\> :delete\_all class FowSsEntry \< ActiveRecord::Base belongs\_to :galaxy belongs\_to :solar\_system belongs\_to :pla…

---

## [Rails and Mails: what is the right mix?](https://www.ruby-forum.com/t/rails-and-mails-what-is-the-right-mix/178723)

<div class="topic-metadata">

**Author:** [@Kazim\_Z](https://www.ruby-forum.com/u/Kazim_Z)\
**Replies:** 2\
**Last updated:** [November 10, 2009, 11:12pm UTC](https://www.ruby-forum.com/t/rails-and-mails-what-is-the-right-mix/178723 "2009-11-10T23:12:23Z")

</div>

I’m doing a Rails app. and at a point where I need to send out mails ( confirmation email, weekly newsletter etc.) I’m confused (and overwhelmed) about the choices to make for mail servers in our staging and producti…

---

## [Where to keep static arrays of data](https://www.ruby-forum.com/t/where-to-keep-static-arrays-of-data/178528)

<div class="topic-metadata">

**Author:** [@Zovar](https://www.ruby-forum.com/u/Zovar)\
**Replies:** 9\
**Last updated:** [November 10, 2009, 11:06pm UTC](https://www.ruby-forum.com/t/where-to-keep-static-arrays-of-data/178528 "2009-11-10T23:06:32Z")

</div>

Hello, I was wondering if there is a right way to keep some static arrays of data inside the application. I want to be able to access them globally. (it’s not for setting vars, just simple arrays, i.e. \[‘ICQ’, ‘AIM’,…

---

## [Interactive Shell with the underlying system](https://www.ruby-forum.com/t/interactive-shell-with-the-underlying-system/178736)

<div class="topic-metadata">

**Author:** [@deinspanjer](https://www.ruby-forum.com/u/deinspanjer)\
**Replies:** 22\
**Last updated:** [November 10, 2009, 9:38pm UTC](https://www.ruby-forum.com/t/interactive-shell-with-the-underlying-system/178736 "2009-11-10T21:38:09Z")

</div>

Hey Guys out there, i have the idea to make an shell via website in rails, like the tryruby thing. But not to only execute ruby commands. I want it to be like the system shell an execute commands like in the shell of …

---

## [How to install rexml](https://www.ruby-forum.com/t/how-to-install-rexml/178735)

<div class="topic-metadata">

**Author:** [@hunt](https://www.ruby-forum.com/u/hunt)\
**Replies:** 1\
**Last updated:** [November 10, 2009, 8:35pm UTC](https://www.ruby-forum.com/t/how-to-install-rexml/178735 "2009-11-10T20:35:05Z")

</div>

Friends, I configured acts\_as\_solr to my application, and on starting script/console, a message comes requring REXML…? How am i suppose to do so? cheers Hunt

---

## [Ar\_mailer alternatives?](https://www.ruby-forum.com/t/ar-mailer-alternatives/178749)

<div class="topic-metadata">

**Author:** [@Hassan\_S](https://www.ruby-forum.com/u/Hassan_S)\
**Replies:** 0\
**Last updated:** [November 10, 2009, 6:10pm UTC](https://www.ruby-forum.com/t/ar-mailer-alternatives/178749 "2009-11-10T18:10:23Z")

</div>

Does anyone know of alternatives to ar\_mailer ? I have an existing site using it (1.3.1) mostly successfully, but when an email has, say, an invalid address, it just dies on that email and the queue backs up until som…

---

## [Ready to use tinymce](https://www.ruby-forum.com/t/ready-to-use-tinymce/174757)

<div class="topic-metadata">

**Author:** [@Trausti\_Thor\_J](https://www.ruby-forum.com/u/Trausti_Thor_J)\
**Replies:** 1\
**Last updated:** [November 10, 2009, 4:47pm UTC](https://www.ruby-forum.com/t/ready-to-use-tinymce/174757 "2009-11-10T16:47:16Z")

</div>

Hi, Does anyone have a ready to use tinymce with image upload capability that either allows to upload pictures through a controller or better yet allows you only to pick already uploaded pictures ? My controller is c…

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

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