# Rails

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

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

---

## [Conditional model validation](https://www.ruby-forum.com/t/conditional-model-validation/163676)

<div class="topic-metadata">

**Author:** [@jzimmek](https://www.ruby-forum.com/u/jzimmek)\
**Replies:** 1\
**Last updated:** [March 23, 2009, 10:19pm UTC](https://www.ruby-forum.com/t/conditional-model-validation/163676 "2009-03-23T22:19:00Z")

</div>

i really like the declarative model-based validation in rails, but i run into trouble while doing some real world (more complex) stuff. class User \< ActiveRecord::Base belongs\_to :address accepts\_nested\_attributes\_fo…

---

## [Dynamically generated form + Saving multiple records at once](https://www.ruby-forum.com/t/dynamically-generated-form-saving-multiple-records-at-once/163526)

<div class="topic-metadata">

**Author:** [@Marcelo\_Ruiz](https://www.ruby-forum.com/u/Marcelo_Ruiz)\
**Replies:** 3\
**Last updated:** [March 23, 2009, 10:09pm UTC](https://www.ruby-forum.com/t/dynamically-generated-form-saving-multiple-records-at-once/163526 "2009-03-23T22:09:35Z")

</div>

Hi Everybody, My name is Marcelo Ruiz, software developer from Argentina starting to work with rails. I’m building a web app to track traffic information for roads. We have operators that create Reports associated to…

---

## [Problem with running functional tests( ActionView::Template)](https://www.ruby-forum.com/t/problem-with-running-functional-tests-actionview-template/153290)

<div class="topic-metadata">

**Author:** [@kirankinuforu](https://www.ruby-forum.com/u/kirankinuforu)\
**Replies:** 1\
**Last updated:** [March 23, 2009, 8:48pm UTC](https://www.ruby-forum.com/t/problem-with-running-functional-tests-actionview-template/153290 "2009-03-23T20:48:34Z")

</div>

Hi, I am trying to run functional tests in my application but I am getting following error when I am trying to the tests: Error: test\_profile\_member\_card\_visitor\_viewing\_public(MembersControllerTest): ActionView::T…

---

## [Where is the sqlite .db file?](https://www.ruby-forum.com/t/where-is-the-sqlite-db-file/163637)

<div class="topic-metadata">

**Author:** [@vfgilber](https://www.ruby-forum.com/u/vfgilber)\
**Replies:** 3\
**Last updated:** [March 23, 2009, 8:29pm UTC](https://www.ruby-forum.com/t/where-is-the-sqlite-db-file/163637 "2009-03-23T20:29:30Z")

</div>

Hi all, I’ve been reading a ton, doing tutorial, and generally trying to learn Ruby on Rails. I have a question that I haven’t been able to find the answer to. Where is the .db file that sqlite3 creates for Rails pro…

---

## [How to create the environment files for development, production and test?](https://www.ruby-forum.com/t/how-to-create-the-environment-files-for-development-production-and-test/163668)

<div class="topic-metadata">

**Author:** [@gustavo](https://www.ruby-forum.com/u/gustavo)\
**Replies:** 1\
**Last updated:** [March 23, 2009, 7:49pm UTC](https://www.ruby-forum.com/t/how-to-create-the-environment-files-for-development-production-and-test/163668 "2009-03-23T19:49:20Z")

</div>

Hi, I have created the weblog in my house yesterday and uploaded to a SourceRepo svn repository. Today I started to work in other machine and checked out a version to another NetBeans. Somehow, the files inside the d…

---

## [Deploy the Ruby Weblog tutorial](https://www.ruby-forum.com/t/deploy-the-ruby-weblog-tutorial/163671)

<div class="topic-metadata">

**Author:** [@gustavo](https://www.ruby-forum.com/u/gustavo)\
**Replies:** 0\
**Last updated:** [March 23, 2009, 7:48pm UTC](https://www.ruby-forum.com/t/deploy-the-ruby-weblog-tutorial/163671 "2009-03-23T19:48:08Z")

</div>

Hi, I am trying to deploy locally the application created in this tutorial. But for normal apps, the apache doc root configuration should point to the public directory. As the application doesnt have a index inside t…

---

## [Fleximage : help](https://www.ruby-forum.com/t/fleximage-help/163669)

<div class="topic-metadata">

**Author:** [@senthil\_raja](https://www.ruby-forum.com/u/senthil_raja)\
**Replies:** 0\
**Last updated:** [March 23, 2009, 7:47pm UTC](https://www.ruby-forum.com/t/fleximage-help/163669 "2009-03-23T19:47:32Z")

</div>

hi dude I am very much impressed on fleximage plugin functionality. But practically facing many problem, By default it stores in png type, which takes more space. Is there any way to upload a file in jpg format. …

---

## [Mysql error on scoped find\_or\_create\_by\_attr](https://www.ruby-forum.com/t/mysql-error-on-scoped-find-or-create-by-attr/163659)

<div class="topic-metadata">

**Author:** [@klochner](https://www.ruby-forum.com/u/klochner)\
**Replies:** 2\
**Last updated:** [March 23, 2009, 7:16pm UTC](https://www.ruby-forum.com/t/mysql-error-on-scoped-find-or-create-by-attr/163659 "2009-03-23T19:16:53Z")

</div>

Anyone have insight on this one? class Parent has\_many :children end add\_index “children”, \[“parent\_id”, “name”\], :name =\> “by\_parent\_name”, :unique =\> true a = Parent.find(1) a.children.find\_or\_create\_by\_name “fo…

---

## [Ext\_scaffold](https://www.ruby-forum.com/t/ext-scaffold/163665)

<div class="topic-metadata">

**Author:** [@ykazu714](https://www.ruby-forum.com/u/ykazu714)\
**Replies:** 0\
**Last updated:** [March 23, 2009, 7:12pm UTC](https://www.ruby-forum.com/t/ext-scaffold/163665 "2009-03-23T19:12:44Z")

</div>

Hello,everybody. I started to use ext\_scaffold recently, and I read this article,could set up form. http://jonathanbarket.com/post/78831424/simple-associations-with-ext-scaffold But, I cannot search country name from…

---

## [Mysql performance](https://www.ruby-forum.com/t/mysql-performance/163662)

<div class="topic-metadata">

**Author:** [@marmolin](https://www.ruby-forum.com/u/marmolin)\
**Replies:** 1\
**Last updated:** [March 23, 2009, 7:06pm UTC](https://www.ruby-forum.com/t/mysql-performance/163662 "2009-03-23T19:06:51Z")

</div>

Rails mysql performance I have an application that reads an xml file, parse it and from there updates the database. My models has many associations and there are a lot of creation of new records in the database. The …

---

## [Mass Assginment and has\_many others.build](https://www.ruby-forum.com/t/mass-assginment-and-has-many-others-build/163656)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 1\
**Last updated:** [March 23, 2009, 6:49pm UTC](https://www.ruby-forum.com/t/mass-assginment-and-has-many-others-build/163656 "2009-03-23T18:49:56Z")

</div>

Typically, when one creates a has\_many associated table one does this: hasone.hasmany.build({attribute hash},{attribute hash},…} or hasone.hasmany.create({attribute hash}, … However, if mass assignment is turned off (…

---

## [Emailing](https://www.ruby-forum.com/t/emailing/163572)

<div class="topic-metadata">

**Author:** [@Shelly](https://www.ruby-forum.com/u/Shelly)\
**Replies:** 1\
**Last updated:** [March 23, 2009, 6:02pm UTC](https://www.ruby-forum.com/t/emailing/163572 "2009-03-23T18:02:12Z")

</div>

Hi, I am trying to send emails out using ActionMailer. Currently, the console shows that everything is sending out correctly, but I am not actually receiving any emails. Thanks in advance, Shelly

---

## [Bounding width when we give users' TinyMCE or FCKEditor?](https://www.ruby-forum.com/t/bounding-width-when-we-give-users-tinymce-or-fckeditor/163650)

<div class="topic-metadata">

**Author:** [@InventoryTrackers](https://www.ruby-forum.com/u/InventoryTrackers)\
**Replies:** 1\
**Last updated:** [March 23, 2009, 5:37pm UTC](https://www.ruby-forum.com/t/bounding-width-when-we-give-users-tinymce-or-fckeditor/163650 "2009-03-23T17:37:49Z")

</div>

I finally got TinyMCE to work beautifully and now am trying to understand how I will bound my users’ from not pushing the HTML beyond the borders that I grant them. For example, if I type; 999999999999999999999999999…

---

## [JOBS: RoR Developer](https://www.ruby-forum.com/t/jobs-ror-developer/163652)

<div class="topic-metadata">

**Author:** [@craig](https://www.ruby-forum.com/u/craig)\
**Replies:** 0\
**Last updated:** [March 23, 2009, 5:11pm UTC](https://www.ruby-forum.com/t/jobs-ror-developer/163652 "2009-03-23T17:11:56Z")

</div>

Hello Everyone, I am an executive recruiter in Toronto, one of my long standing clients have recently retained me to find a Rails developer. I have included the posting below and please respond to me if you have int…

---

## [Rails 2.3 Nested models](https://www.ruby-forum.com/t/rails-2-3-nested-models/163599)

<div class="topic-metadata">

**Author:** [@JonMagic](https://www.ruby-forum.com/u/JonMagic)\
**Replies:** 2\
**Last updated:** [March 23, 2009, 4:49pm UTC](https://www.ruby-forum.com/t/rails-2-3-nested-models/163599 "2009-03-23T16:49:00Z")

</div>

I am moving an existing app from rails 2.2.2 to 2.3.2, and really like the idea of the new nested model implementation, but I’m having some issues. Has anyone written a good comprehensive howto for the new nested mode…

---

## [Helper](https://www.ruby-forum.com/t/helper/163633)

<div class="topic-metadata">

**Author:** [@giga](https://www.ruby-forum.com/u/giga)\
**Replies:** 3\
**Last updated:** [March 23, 2009, 4:27pm UTC](https://www.ruby-forum.com/t/helper/163633 "2009-03-23T16:27:16Z")

</div>

How can I replace this with helper? \<% if flash\[:error\] %\> \<%= flash\[:error\] %\> \<% end %\> \<% if flash\[:warning\] %\> \<%= flash\[:warning\] %\> \<% end %\> \<% if flash\[:notice\] %\> \<%= flash\[:notice\] %\> \<% end %\>

---

## [Ajax not defined](https://www.ruby-forum.com/t/ajax-not-defined/163638)

<div class="topic-metadata">

**Author:** [@intern\_ruby](https://www.ruby-forum.com/u/intern_ruby)\
**Replies:** 1\
**Last updated:** [March 23, 2009, 2:14pm UTC](https://www.ruby-forum.com/t/ajax-not-defined/163638 "2009-03-23T14:14:48Z")

</div>

This is my code and I am trying to call remote function when somebody click on add button after selecting something from select\_tag. Please tell me where I am wrong ? I am getting following error: Ajax not defined. …

---

## [To avoid blank page](https://www.ruby-forum.com/t/to-avoid-blank-page/163640)

<div class="topic-metadata">

**Author:** [@geetha](https://www.ruby-forum.com/u/geetha)\
**Replies:** 0\
**Last updated:** [March 23, 2009, 2:13pm UTC](https://www.ruby-forum.com/t/to-avoid-blank-page/163640 "2009-03-23T14:13:38Z")

</div>

In Jasper Reports,I am having one parameter,thats Receipttype …Receipt tyape mean Manifest,Nonmanifest,Both.f i gave manifest Mean Maniefst datas will be printed and,if i gave Nonmanifest mean nonmanifest datas will b…

---

## [GoogleMaps book and FCC ASR Database](https://www.ruby-forum.com/t/googlemaps-book-and-fcc-asr-database/163580)

<div class="topic-metadata">

**Author:** [@agustinvinao](https://www.ruby-forum.com/u/agustinvinao)\
**Replies:** 2\
**Last updated:** [March 23, 2009, 1:56pm UTC](https://www.ruby-forum.com/t/googlemaps-book-and-fcc-asr-database/163580 "2009-03-23T13:56:38Z")

</div>

Hi, im reading the book GoogleMaps app with Rails and ajax, in the chapter 5, i need to download the FCC ASR Database (http://wireless.fcc.gov/uls/data/complete/r\_tower.zip) but the link is broken. Do you know where …

---

## [About membership of this group](https://www.ruby-forum.com/t/about-membership-of-this-group/163632)

<div class="topic-metadata">

**Author:** [@pankaj88](https://www.ruby-forum.com/u/pankaj88)\
**Replies:** 1\
**Last updated:** [March 23, 2009, 1:04pm UTC](https://www.ruby-forum.com/t/about-membership-of-this-group/163632 "2009-03-23T13:04:58Z")

</div>

Hi to every one i m new to ruby on rails. I want to join this group for get my question regarding RoR answered.

---

## [To\_param vs to\_query](https://www.ruby-forum.com/t/to-param-vs-to-query/162680)

<div class="topic-metadata">

**Author:** [@miguelrodriguez](https://www.ruby-forum.com/u/miguelrodriguez)\
**Replies:** 5\
**Last updated:** [March 23, 2009, 12:25pm UTC](https://www.ruby-forum.com/t/to-param-vs-to-query/162680 "2009-03-23T12:25:16Z")

</div>

to\_param and to\_query, what’s the difference between those methods?

---

## [Export to pdf, txt and the utf8-problem](https://www.ruby-forum.com/t/export-to-pdf-txt-and-the-utf8-problem/163628)

<div class="topic-metadata">

**Author:** [@rudy](https://www.ruby-forum.com/u/rudy)\
**Replies:** 0\
**Last updated:** [March 23, 2009, 11:40am UTC](https://www.ruby-forum.com/t/export-to-pdf-txt-and-the-utf8-problem/163628 "2009-03-23T11:40:33Z")

</div>

Hi, can’t seem to figure it out. I have text saved as UTF8 in my MySQL database, and it shows up fine in the browser. However, I want to export to pdf (pdf;writer) and csv-text. When I do that the accented foreign ch…

---

## [In\_place\_edit\_for in models](https://www.ruby-forum.com/t/in-place-edit-for-in-models/163625)

<div class="topic-metadata">

**Author:** [@rmswarna](https://www.ruby-forum.com/u/rmswarna)\
**Replies:** 0\
**Last updated:** [March 23, 2009, 11:08am UTC](https://www.ruby-forum.com/t/in-place-edit-for-in-models/163625 "2009-03-23T11:08:58Z")

</div>

Hi all, I am new to RoR. At present I am working with Ajax. I have doubt in place\_editing. Kindly please help me in this regard. I am struggling with this for past one week. Any help from your side…

---

## [When are activerecord associations made?](https://www.ruby-forum.com/t/when-are-activerecord-associations-made/163488)

<div class="topic-metadata">

**Author:** [@Christopher\_Lee](https://www.ruby-forum.com/u/Christopher_Lee)\
**Replies:** 1\
**Last updated:** [March 23, 2009, 9:56am UTC](https://www.ruby-forum.com/t/when-are-activerecord-associations-made/163488 "2009-03-23T09:56:48Z")

</div>

Hello, My question is when ActiveRecord associations are actually made? To me, it doesn’t seem like the relationship is made until of the objects is saved into the database. Let’s say i have models like: Library ha…

---

## [URL-encoding and decoding on Rails](https://www.ruby-forum.com/t/url-encoding-and-decoding-on-rails/163620)

<div class="topic-metadata">

**Author:** [@evan](https://www.ruby-forum.com/u/evan)\
**Replies:** 0\
**Last updated:** [March 23, 2009, 9:22am UTC](https://www.ruby-forum.com/t/url-encoding-and-decoding-on-rails/163620 "2009-03-23T09:22:06Z")

</div>

I have a URL parameter that has special characters on it, so I do URL encoding as such: my\_url(:email =\> CGI.escape(“removed\_email\_address@domain.invalid”) Now, I would expect to call a CGI.unescape(params\[:email\]) on…

---

## [Rails routing](https://www.ruby-forum.com/t/rails-routing/163577)

<div class="topic-metadata">

**Author:** [@judge](https://www.ruby-forum.com/u/judge)\
**Replies:** 2\
**Last updated:** [March 23, 2009, 7:58am UTC](https://www.ruby-forum.com/t/rails-routing/163577 "2009-03-23T07:58:10Z")

</div>

Hi, everybody Is there a way to simplify address path from: http://0.0.0.0:3000/books/3/pages/1 to this format: http://0.0.0.0:3000/3/1 My current routes.rb looks like: ActionController::Routing::Routes.draw do |ma…

---

## [Rake goes crazy on me!](https://www.ruby-forum.com/t/rake-goes-crazy-on-me/163614)

<div class="topic-metadata">

**Author:** [@arghx1](https://www.ruby-forum.com/u/arghx1)\
**Replies:** 2\
**Last updated:** [March 23, 2009, 7:19am UTC](https://www.ruby-forum.com/t/rake-goes-crazy-on-me/163614 "2009-03-23T07:19:09Z")

</div>

OK, so I used ./scripts/generate to generate a model, and then I entered the db/migrate/ and edit 001xxxx.rb so I can populated the database. After I entered some ruby code to have the file 001xxx.rb to generate some …

---

## [Can\`t connect to MySQL Database with Netbeans 6 for RoR?](https://www.ruby-forum.com/t/can-t-connect-to-mysql-database-with-netbeans-6-for-ror/122142)

<div class="topic-metadata">

**Author:** [@pel](https://www.ruby-forum.com/u/pel)\
**Replies:** 33\
**Last updated:** [March 23, 2009, 6:18am UTC](https://www.ruby-forum.com/t/can-t-connect-to-mysql-database-with-netbeans-6-for-ror/122142 "2009-03-23T06:18:48Z")

</div>

Hello, I am just yes fighting is the right word through the Netbeans 6.0 for RoR guidance: \[quote\]1.gem install mysql 2.Choose the win32 build. 3.Install MySQL and put its /bin directory on your path.\[/quote\] did t…

---

## [\[ANN\] rspec 1.2.1 Released](https://www.ruby-forum.com/t/ann-rspec-1-2-1-released/163611)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 0\
**Last updated:** [March 23, 2009, 6:09am UTC](https://www.ruby-forum.com/t/ann-rspec-1-2-1-released/163611 "2009-03-23T06:09:17Z")

</div>

rspec version 1.2.1 has been released! http://rspec.info http://rubyforge.org/projects/rspec http://github.com/dchelimsky/rspec/wikis removed\_email\_address@domain.invalid Behaviour Driven Development for Ruby. Change…

---

## [Cannot set ENV\['RAILS\_RELATIVE\_URL\_ROOT'\]](https://www.ruby-forum.com/t/cannot-set-env-rails-relative-url-root/84879)

<div class="topic-metadata">

**Author:** [@fero](https://www.ruby-forum.com/u/fero)\
**Replies:** 2\
**Last updated:** [March 23, 2009, 5:05am UTC](https://www.ruby-forum.com/t/cannot-set-env-rails-relative-url-root/84879 "2009-03-23T05:05:24Z")

</div>

i am on lighttpd now, and i cannot set cannot set enviroment variable: i added this line to enviroment.rb, but it doesn not work!! ENV\[‘RAILS\_RELATIVE\_URL\_ROOT’\] = ‘something’ links on my page are ok, but all links t…

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

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