# Rails

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

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

---

## [Ensuring a password is Alpha-Numeric](https://www.ruby-forum.com/t/ensuring-a-password-is-alpha-numeric/175787)

<div class="topic-metadata">

**Author:** [@RubyonRails\_newbie](https://www.ruby-forum.com/u/RubyonRails_newbie)\
**Replies:** 7\
**Last updated:** [September 20, 2009, 11:18am UTC](https://www.ruby-forum.com/t/ensuring-a-password-is-alpha-numeric/175787 "2009-09-20T11:18:28Z")

</div>

Hi there, I am trying to make every effort in making the registration process as secure as possible. One way of this, I was told was to ensure that a user registering on the site MUST enter a password that is encrypt…

---

## [Getting image dimensions with file\_column](https://www.ruby-forum.com/t/getting-image-dimensions-with-file-column/84586)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 7\
**Last updated:** [September 20, 2009, 1:25am UTC](https://www.ruby-forum.com/t/getting-image-dimensions-with-file-column/84586 "2009-09-20T01:25:08Z")

</div>

If I’m using file\_column and RMagick to upload images and associate them with my database records, what should I do to find out the exact dimensions of a given image? I can use the url\_for\_file\_column command to link …

---

## [New to RoR - working through book have some questions](https://www.ruby-forum.com/t/new-to-ror-working-through-book-have-some-questions/175796)

<div class="topic-metadata">

**Author:** [@andrew](https://www.ruby-forum.com/u/andrew)\
**Replies:** 1\
**Last updated:** [September 20, 2009, 12:03am UTC](https://www.ruby-forum.com/t/new-to-ror-working-through-book-have-some-questions/175796 "2009-09-20T00:03:00Z")

</div>

Greetings, I’m new to Ruby on Rails. I’m working through “Agile Web D. with Rails 3rd Edition” and it is going quite well. However, there are times I don’t quite understand why I’m doing something. For some items,…

---

## [ANN: New Rails-based hosted content management system](https://www.ruby-forum.com/t/ann-new-rails-based-hosted-content-management-system/175697)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 2\
**Last updated:** [September 19, 2009, 11:37pm UTC](https://www.ruby-forum.com/t/ann-new-rails-based-hosted-content-management-system/175697 "2009-09-19T23:37:50Z")

</div>

My colleague Christopher Haupt and I have been working for two years on a Rails-based hosted content management system, and it’s recently emerged from Beta. We’d love to hear your feedback: you can sign up for a free …

---

## [List out banking application](https://www.ruby-forum.com/t/list-out-banking-application/175792)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [September 19, 2009, 10:17pm UTC](https://www.ruby-forum.com/t/list-out-banking-application/175792 "2009-09-19T22:17:20Z")

</div>

Hi all, I am newbie to RoR, though impressed with it’s rapid development. I have few concerns on security. As couple of my networking apps are related to Finance domain I would like to know if any security issues ar…

---

## [Sqlite3-ruby Not Needed for Rails?](https://www.ruby-forum.com/t/sqlite3-ruby-not-needed-for-rails/175755)

<div class="topic-metadata">

**Author:** [@nbnbnb](https://www.ruby-forum.com/u/nbnbnb)\
**Replies:** 2\
**Last updated:** [September 19, 2009, 10:01pm UTC](https://www.ruby-forum.com/t/sqlite3-ruby-not-needed-for-rails/175755 "2009-09-19T22:01:49Z")

</div>

I’ve always thought the sqlite3-ruby gem is needed for Rails apps to use SQLite3 databases, until the other day. I set up a VM running Ubuntu 9.0.4, 32-bit server edition with Rails 2.2.2 to host an app I had written …

---

## [Guideline for email setup scenario](https://www.ruby-forum.com/t/guideline-for-email-setup-scenario/175767)

<div class="topic-metadata">

**Author:** [@codecarpenter](https://www.ruby-forum.com/u/codecarpenter)\
**Replies:** 1\
**Last updated:** [September 19, 2009, 9:43pm UTC](https://www.ruby-forum.com/t/guideline-for-email-setup-scenario/175767 "2009-09-19T21:43:06Z")

</div>

I am searching for a tutorial/example/guide if there is one on sending an email from a visitor (no user registration is needed currently) to my site to someone else. The visitor has to enter their email address and t…

---

## [Need to know how to use an image as a submit button](https://www.ruby-forum.com/t/need-to-know-how-to-use-an-image-as-a-submit-button/175759)

<div class="topic-metadata">

**Author:** [@explainer](https://www.ruby-forum.com/u/explainer)\
**Replies:** 4\
**Last updated:** [September 19, 2009, 7:40pm UTC](https://www.ruby-forum.com/t/need-to-know-how-to-use-an-image-as-a-submit-button/175759 "2009-09-19T19:40:46Z")

</div>

I have been searching around for a way to replace the ugly ‘submit’ button with a pretty graphic, and I cannot seem to get anything to work. This has to be easier than it seems! An example would be much appreciated. …

---

## [Attachment\_fu\_fixtures problem](https://www.ruby-forum.com/t/attachment-fu-fixtures-problem/175785)

<div class="topic-metadata">

**Author:** [@cojones](https://www.ruby-forum.com/u/cojones)\
**Replies:** 0\
**Last updated:** [September 19, 2009, 7:22pm UTC](https://www.ruby-forum.com/t/attachment-fu-fixtures-problem/175785 "2009-09-19T19:22:36Z")

</div>

Hey guys, I’m using attachment\_fu plugin to upload images. It’s working fine and I wanted to add some fixtures for testing and all that. The readme says you online need to install the plugin and put "attachment\_file: …

---

## [Sqlite error with timezones](https://www.ruby-forum.com/t/sqlite-error-with-timezones/175762)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 3\
**Last updated:** [September 19, 2009, 5:40pm UTC](https://www.ruby-forum.com/t/sqlite-error-with-timezones/175762 "2009-09-19T17:40:40Z")

</div>

Any ideas where I should look, have this error while deploying to Heroku, ActiveRecord::StatementInvalid (PGError: ERROR: function strftime(unknown, timestamp without time zone, unknown) does not exist LINE 1: SELEC…

---

## [For crone](https://www.ruby-forum.com/t/for-crone/175770)

<div class="topic-metadata">

**Author:** [@preksha](https://www.ruby-forum.com/u/preksha)\
**Replies:** 1\
**Last updated:** [September 19, 2009, 4:52pm UTC](https://www.ruby-forum.com/t/for-crone/175770 "2009-09-19T16:52:13Z")

</div>

hi all, i haven’t used crone yet but now i want to use it and got some idea about crone from google but not exactly… so i want to use crone in ruby on rails application. in application i want to fire some query every…

---

## [Silent scope?](https://www.ruby-forum.com/t/silent-scope/175769)

<div class="topic-metadata">

**Author:** [@bingobob](https://www.ruby-forum.com/u/bingobob)\
**Replies:** 9\
**Last updated:** [September 19, 2009, 4:07pm UTC](https://www.ruby-forum.com/t/silent-scope/175769 "2009-09-19T16:07:10Z")

</div>

I do this in my model. named\_scope :popular, :order =\> ‘name’, :conditions =\> \[‘popular\_resort = ?’, true\] default\_scope :order =\> ‘resort\_height DESC, name’ By default my resorts are sorted by resort\_height then nam…

---

## [Ruby on Rails and mySQL](https://www.ruby-forum.com/t/ruby-on-rails-and-mysql/175778)

<div class="topic-metadata">

**Author:** [@Artful](https://www.ruby-forum.com/u/Artful)\
**Replies:** 2\
**Last updated:** [September 19, 2009, 3:32pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-and-mysql/175778 "2009-09-19T15:32:01Z")

</div>

I’m new to RoR so please forgive this trivial question. I’m working through Timothy Fisher’s Ruby on Rails Bible, I have the components up and running. I have created the contactlist database and within it the contact…

---

## [Rendering a Collection in a Partial](https://www.ruby-forum.com/t/rendering-a-collection-in-a-partial/175784)

<div class="topic-metadata">

**Author:** [@glenn](https://www.ruby-forum.com/u/glenn)\
**Replies:** 1\
**Last updated:** [September 19, 2009, 3:03pm UTC](https://www.ruby-forum.com/t/rendering-a-collection-in-a-partial/175784 "2009-09-19T15:03:20Z")

</div>

New to rails and having some trouble rendering a partial. Essentially, I want the partial to display an index of all the items from another model. Do I need to add something to the controller to do this? projects #sh…

---

## [Strange XML Parse Error](https://www.ruby-forum.com/t/strange-xml-parse-error/175781)

<div class="topic-metadata">

**Author:** [@steve](https://www.ruby-forum.com/u/steve)\
**Replies:** 0\
**Last updated:** [September 19, 2009, 2:31pm UTC](https://www.ruby-forum.com/t/strange-xml-parse-error/175781 "2009-09-19T14:31:08Z")

</div>

Hi there, I created a basic blog app using ./script/generate scaffold command, everything works fine, however, when I try to get the xml of the posts like 0.0.0.0:3000/posts.xml, it gave me a: XML Parsing Error: XML …

---

## [Finding bbcode plugin](https://www.ruby-forum.com/t/finding-bbcode-plugin/175779)

<div class="topic-metadata">

**Author:** [@Fall-From-Grace](https://www.ruby-forum.com/u/Fall-From-Grace)\
**Replies:** 0\
**Last updated:** [September 19, 2009, 2:30pm UTC](https://www.ruby-forum.com/t/finding-bbcode-plugin/175779 "2009-09-19T14:30:33Z")

</div>

I have tried following plugins: But they has one bad thing: they can’t parse codes with same codes inside, for example: o rly? Ah, rbbcode is able to parse it, but it’s very hard to add your own codes. Also it …

---

## [Merging API data and ActiveRecord data for display in the view](https://www.ruby-forum.com/t/merging-api-data-and-activerecord-data-for-display-in-the-view/175780)

<div class="topic-metadata">

**Author:** [@ressister](https://www.ruby-forum.com/u/ressister)\
**Replies:** 0\
**Last updated:** [September 19, 2009, 2:24pm UTC](https://www.ruby-forum.com/t/merging-api-data-and-activerecord-data-for-display-in-the-view/175780 "2009-09-19T14:24:06Z")

</div>

Hi there, I’m trying to merge JSON results from an API call in with ActiveRecord results for a blended display in a view. I’d like to be able to merge the two result sets based on ‘created\_at’ which is is common in bo…

---

## [Validations on a field](https://www.ruby-forum.com/t/validations-on-a-field/175775)

<div class="topic-metadata">

**Author:** [@stratboy](https://www.ruby-forum.com/u/stratboy)\
**Replies:** 1\
**Last updated:** [September 19, 2009, 12:18pm UTC](https://www.ruby-forum.com/t/validations-on-a-field/175775 "2009-09-19T12:18:18Z")

</div>

hi, i have a model with 2 validations on a field example: validates\_presence\_of :email validates\_length\_of :email, :within =\> 6…100 #removed\_email\_address@domain.invalid validates\_uniqueness\_of :email …

---

## [How to store / use a calculated field? - Intermediate Noob -](https://www.ruby-forum.com/t/how-to-store-use-a-calculated-field-intermediate-noob/175761)

<div class="topic-metadata">

**Author:** [@internetchris](https://www.ruby-forum.com/u/internetchris)\
**Replies:** 1\
**Last updated:** [September 19, 2009, 9:47am UTC](https://www.ruby-forum.com/t/how-to-store-use-a-calculated-field-intermediate-noob/175761 "2009-09-19T09:47:50Z")

</div>

Hey Everyone I’m not sure how to ask this properly - that’s probably the reason I’m not sure how to implement it. I’m an intermediate noob and I’m not sure how to bring this together… Here’s my scenerio… people usin…

---

## [Should I chmod gem writable directories?](https://www.ruby-forum.com/t/should-i-chmod-gem-writable-directories/175707)

<div class="topic-metadata">

**Author:** [@catel1](https://www.ruby-forum.com/u/catel1)\
**Replies:** 6\
**Last updated:** [September 19, 2009, 5:47am UTC](https://www.ruby-forum.com/t/should-i-chmod-gem-writable-directories/175707 "2009-09-19T05:47:24Z")

</div>

I am new to Solaris and new to Ruby. When I install some gem file using gem install, I get this warning. I’d like to make these gems available globally: bash-3.00$ gem install thor WARNING: Installing to ~/.gem sin…

---

## [Inheritance problem on site5](https://www.ruby-forum.com/t/inheritance-problem-on-site5/175678)

<div class="topic-metadata">

**Author:** [@gatsby](https://www.ruby-forum.com/u/gatsby)\
**Replies:** 2\
**Last updated:** [September 19, 2009, 4:16am UTC](https://www.ruby-forum.com/t/inheritance-problem-on-site5/175678 "2009-09-19T04:16:34Z")

</div>

Hello, I’ve uploaded my web application to site5 recently and I’ve encountered a big inheritance problem. My application has an abstract model Media that is inherited by several other models (such as Post, Picture, …

---

## [Add symbol in collection\_select helper](https://www.ruby-forum.com/t/add-symbol-in-collection-select-helper/174283)

<div class="topic-metadata">

**Author:** [@aldoitalo](https://www.ruby-forum.com/u/aldoitalo)\
**Replies:** 2\
**Last updated:** [September 19, 2009, 12:23am UTC](https://www.ruby-forum.com/t/add-symbol-in-collection-select-helper/174283 "2009-09-19T00:23:00Z")

</div>

hi, i have a collection\_select helper wich i retrieve a select multiple with the names of my reports: \<%= f.collection\_select :report\_ids, @reports, :id, :name, {}, { :multiple =\> true, :size =\> 10 } %\> but now i wa…

---

## [Rake migrations with namespace (prefix)](https://www.ruby-forum.com/t/rake-migrations-with-namespace-prefix/175741)

<div class="topic-metadata">

**Author:** [@catel1](https://www.ruby-forum.com/u/catel1)\
**Replies:** 0\
**Last updated:** [September 18, 2009, 8:40pm UTC](https://www.ruby-forum.com/t/rake-migrations-with-namespace-prefix/175741 "2009-09-18T20:40:36Z")

</div>

I have access to a shared database. So, I wanted to create my application tables with a prefix “cmro\_”. So, I did this: I edited config/environment.rb and added this line: config.active\_record.table\_name\_prefix = ‘cm…

---

## [Connecting to Oracle (Solaris Sparc 10)](https://www.ruby-forum.com/t/connecting-to-oracle-solaris-sparc-10/175646)

<div class="topic-metadata">

**Author:** [@catel1](https://www.ruby-forum.com/u/catel1)\
**Replies:** 12\
**Last updated:** [September 18, 2009, 8:39pm UTC](https://www.ruby-forum.com/t/connecting-to-oracle-solaris-sparc-10/175646 "2009-09-18T20:39:26Z")

</div>

My company’s System-admin installed Ruby and Gems (using Sun Coolstack package) and I have sudo access to ruby, gem etc. Now I need to get my app to talk to oracle db (through network). From what I understand, it requ…

---

## [Keeping track of model changes with Paper Trail](https://www.ruby-forum.com/t/keeping-track-of-model-changes-with-paper-trail/175703)

<div class="topic-metadata">

**Author:** [@msojka](https://www.ruby-forum.com/u/msojka)\
**Replies:** 1\
**Last updated:** [September 18, 2009, 6:58pm UTC](https://www.ruby-forum.com/t/keeping-track-of-model-changes-with-paper-trail/175703 "2009-09-18T18:58:11Z")

</div>

Archive all versions of your model. http://www.linux-mag.com/id/7528 Thanks for reading. Martin

---

## [Counting blog comments](https://www.ruby-forum.com/t/counting-blog-comments/175711)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 3\
**Last updated:** [September 18, 2009, 6:11pm UTC](https://www.ruby-forum.com/t/counting-blog-comments/175711 "2009-09-18T18:11:20Z")

</div>

I have “posts” and “comments”, and I’d like to display the number of comments each post has (and display 0 if none). In the index Posts view, I display a list of posts and their authors using the below partial. Wha…

---

## [\[JOBS\] Rails Developer 60%-100% (in Switzerland, Area Bern/Zurich)](https://www.ruby-forum.com/t/jobs-rails-developer-60-100-in-switzerland-area-bern-zurich/175732)

<div class="topic-metadata">

**Author:** [@at-point\_ag\_SHR](https://www.ruby-forum.com/u/at-point_ag_SHR)\
**Replies:** 0\
**Last updated:** [September 18, 2009, 5:11pm UTC](https://www.ruby-forum.com/t/jobs-rails-developer-60-100-in-switzerland-area-bern-zurich/175732 "2009-09-18T17:11:37Z")

</div>

Dear List We are at-point http://www.at-point.ch/ – a small software engineering company specializing in web apps, data aggregation, data visualization and a great user experience. Due to the fact that we’re looking f…

---

## [Ruby On Rails Problems](https://www.ruby-forum.com/t/ruby-on-rails-problems/175688)

<div class="topic-metadata">

**Author:** [@joe](https://www.ruby-forum.com/u/joe)\
**Replies:** 6\
**Last updated:** [September 18, 2009, 4:44pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-problems/175688 "2009-09-18T16:44:41Z")

</div>

Ive posted the following on various forums and had no reply, and was told this was the place were i could get an answer: Hi, As you may know I currently own and maintain dev-hq.co.uk, and basically ive been trying to …

---

## [Noob simple question create custom options\_for\_select](https://www.ruby-forum.com/t/noob-simple-question-create-custom-options-for-select/175676)

<div class="topic-metadata">

**Author:** [@Marcos\_MSSS\_ller](https://www.ruby-forum.com/u/Marcos_MSSS_ller)\
**Replies:** 1\
**Last updated:** [September 18, 2009, 4:42pm UTC](https://www.ruby-forum.com/t/noob-simple-question-create-custom-options-for-select/175676 "2009-09-18T16:42:56Z")

</div>

Hello everyone, I’m starting learning ruby on rails and i have a question that maybe is more about ruby but anyway. I have a table with 2 columns type and value and i would like to create a select that had like opt…

---

## [Precision multi-page printing](https://www.ruby-forum.com/t/precision-multi-page-printing/175579)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 2\
**Last updated:** [September 18, 2009, 4:05pm UTC](https://www.ruby-forum.com/t/precision-multi-page-printing/175579 "2009-09-18T16:05:28Z")

</div>

I am at a point where I will need to print checks in an application. I guess the best way to describe this is that I am using pre-printed checks and that I want to hit the prescribed areas with my text output. Should …

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

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