# Rails

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

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

---

## [Spare bike in Portland during RailsConf?](https://www.ruby-forum.com/t/spare-bike-in-portland-during-railsconf/138377)

<div class="topic-metadata">

**Author:** [@Christoph\_O](https://www.ruby-forum.com/u/Christoph_O)\
**Replies:** 3\
**Last updated:** [May 26, 2008, 11:23am UTC](https://www.ruby-forum.com/t/spare-bike-in-portland-during-railsconf/138377 "2008-05-26T11:23:11Z")

</div>

Hi! I’d love to have a bike during RailsConf to be able to explore Portland a bit better than last year, when the only thing that I really had a bit of time to explore was Powell’s City of Books. I already bought mys…

---

## [Problem with .to\_xml and Hash.form\_xml?](https://www.ruby-forum.com/t/problem-with-to-xml-and-hash-form-xml/138496)

<div class="topic-metadata">

**Author:** [@differenthink](https://www.ruby-forum.com/u/differenthink)\
**Replies:** 3\
**Last updated:** [May 26, 2008, 10:37am UTC](https://www.ruby-forum.com/t/problem-with-to-xml-and-hash-form-xml/138496 "2008-05-26T10:37:47Z")

</div>

Hi, i m trying to do some kind of database dump using .to\_xml and after i try to fill my database back (well an other) with the content of the xml. Right now i m doing that : @xml = Video.find(:all).to\_xml(:include=\>…

---

## [Ruby On Rails For Dummies](https://www.ruby-forum.com/t/ruby-on-rails-for-dummies/138591)

<div class="topic-metadata">

**Author:** [@Young\_Ben](https://www.ruby-forum.com/u/Young_Ben)\
**Replies:** 8\
**Last updated:** [May 26, 2008, 10:13am UTC](https://www.ruby-forum.com/t/ruby-on-rails-for-dummies/138591 "2008-05-26T10:13:01Z")

</div>

As I’m a dummy, I got this book out of the library as a first step to learning ROR. After I followed the instructions for installing the interpreter, then rails, then java I went to install the authors’ custom version…

---

## [Setfocus to a field in view](https://www.ruby-forum.com/t/setfocus-to-a-field-in-view/138640)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 0\
**Last updated:** [May 26, 2008, 10:10am UTC](https://www.ruby-forum.com/t/setfocus-to-a-field-in-view/138640 "2008-05-26T10:10:37Z")

</div>

Hi I have a div “reason\_for\_transfer\_search\_sd” like \<%= render :partial =\> "service\_desk\_part/on\_action\_transfer\_reason\_sd\_search", :locals =\> { :sd\_ticket=\>sd\_ticket } %\> And in on\_action\_transfer\_reason\_sd\_search …

---

## [Can't seem to export MySQLDump and then import MySQLImport?](https://www.ruby-forum.com/t/cant-seem-to-export-mysqldump-and-then-import-mysqlimport/138626)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [May 26, 2008, 9:10am UTC](https://www.ruby-forum.com/t/cant-seem-to-export-mysqldump-and-then-import-mysqlimport/138626 "2008-05-26T09:10:02Z")

</div>

I’ve got my applications running on a server that backs up every hour using MySQLdump. My goal is to take this ‘dump’ and re-import it into my desktop computer using MySQLAdministrator. I go through the procedure of …

---

## [Storing data from a txt file in ruby?](https://www.ruby-forum.com/t/storing-data-from-a-txt-file-in-ruby/138620)

<div class="topic-metadata">

**Author:** [@GabrielG1976](https://www.ruby-forum.com/u/GabrielG1976)\
**Replies:** 2\
**Last updated:** [May 26, 2008, 8:02am UTC](https://www.ruby-forum.com/t/storing-data-from-a-txt-file-in-ruby/138620 "2008-05-26T08:02:43Z")

</div>

Hello Im trying to write a a ruby program that takes a list of books title ,author so on and i can read in the file with no problem but im trying to store the list into either a array or hash so i ca say run different…

---

## [Noob SASS error (permission denied)](https://www.ruby-forum.com/t/noob-sass-error-permission-denied/138624)

<div class="topic-metadata">

**Author:** [@jko170](https://www.ruby-forum.com/u/jko170)\
**Replies:** 5\
**Last updated:** [May 26, 2008, 7:34am UTC](https://www.ruby-forum.com/t/noob-sass-error-permission-denied/138624 "2008-05-26T07:34:59Z")

</div>

I just created the sass directory in my stylesheets directory and when I reload my page I get this error: Status: 500 Internal Server Error Permission denied - /Users/Justin/kicksite/trunk/public/ stylesheets/ appl…

---

## [Dojo\_toolbocks](https://www.ruby-forum.com/t/dojo-toolbocks/138634)

<div class="topic-metadata">

**Author:** [@jaisonsj](https://www.ruby-forum.com/u/jaisonsj)\
**Replies:** 0\
**Last updated:** [May 26, 2008, 6:32am UTC](https://www.ruby-forum.com/t/dojo-toolbocks/138634 "2008-05-26T06:32:51Z")

</div>

Hi I’m a newbie in rails, and I was trying to embed dojo-toolkit into rails, I keep getting the same readme file on every search i did. Followed the instructions completely and I still end up with this error: “No plu…

---

## [Controller Testing and Role Based Access Control](https://www.ruby-forum.com/t/controller-testing-and-role-based-access-control/138631)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 0\
**Last updated:** [May 26, 2008, 5:53am UTC](https://www.ruby-forum.com/t/controller-testing-and-role-based-access-control/138631 "2008-05-26T05:53:47Z")

</div>

I think I have a handle on Unit testing and have set up tests for approximately 20 of my models. I’m now fooling with Controller testing and still following the AWDWR book with some success. I have a Role Based Access…

---

## [Making a New Site](https://www.ruby-forum.com/t/making-a-new-site/138522)

<div class="topic-metadata">

**Author:** [@cz231](https://www.ruby-forum.com/u/cz231)\
**Replies:** 11\
**Last updated:** [May 26, 2008, 5:09am UTC](https://www.ruby-forum.com/t/making-a-new-site/138522 "2008-05-26T05:09:55Z")

</div>

Hi, I’m kind of new to Ruby on Rails, I’ve been slowly learning it for a while now, and think I am ready to further my learning, by actually attempting to make a site. I’ve already made a site and styled it, I only n…

---

## [How to generate printer friendly view](https://www.ruby-forum.com/t/how-to-generate-printer-friendly-view/138628)

<div class="topic-metadata">

**Author:** [@jh100000](https://www.ruby-forum.com/u/jh100000)\
**Replies:** 0\
**Last updated:** [May 26, 2008, 5:08am UTC](https://www.ruby-forum.com/t/how-to-generate-printer-friendly-view/138628 "2008-05-26T05:08:56Z")

</div>

I am looking to generate a printer friendly view for each page that hides my navigation, etc. I found a technique that does something close to this: The article’s method directly calls up the print dialogue to print …

---

## [Trying to Not Repeat Myself...a question concerning storing dates](https://www.ruby-forum.com/t/trying-to-not-repeat-myself-a-question-concerning-storing-dates/138618)

<div class="topic-metadata">

**Author:** [@Nathaniel\_Riethmann](https://www.ruby-forum.com/u/Nathaniel_Riethmann)\
**Replies:** 2\
**Last updated:** [May 26, 2008, 4:44am UTC](https://www.ruby-forum.com/t/trying-to-not-repeat-myself-a-question-concerning-storing-dates/138618 "2008-05-26T04:44:47Z")

</div>

I’m working on a project that requires tracking the sales data for six stores (although that number may increase). Each store is open Monday through Saturday and only four specific holidays are observed. With that sai…

---

## [Addthis button popup](https://www.ruby-forum.com/t/addthis-button-popup/138627)

<div class="topic-metadata">

**Author:** [@joel](https://www.ruby-forum.com/u/joel)\
**Replies:** 0\
**Last updated:** [May 26, 2008, 3:55am UTC](https://www.ruby-forum.com/t/addthis-button-popup/138627 "2008-05-26T03:55:38Z")

</div>

Hello, my addthis button ( social share - http://www.addthis.com/ ) does not popup in already popup/modal window. Anyone know if this is solvable ? Regards, joel

---

## [Rake db task](https://www.ruby-forum.com/t/rake-db-task/138623)

<div class="topic-metadata">

**Author:** [@joel](https://www.ruby-forum.com/u/joel)\
**Replies:** 1\
**Last updated:** [May 26, 2008, 2:50am UTC](https://www.ruby-forum.com/t/rake-db-task/138623 "2008-05-26T02:50:05Z")

</div>

Hello, just wanted to know how to create a rake db task to populate data into a database. Thanks Joel

---

## [Problem creating database](https://www.ruby-forum.com/t/problem-creating-database/138260)

<div class="topic-metadata">

**Author:** [@yuwtnb](https://www.ruby-forum.com/u/yuwtnb)\
**Replies:** 4\
**Last updated:** [May 26, 2008, 2:03am UTC](https://www.ruby-forum.com/t/problem-creating-database/138260 "2008-05-26T02:03:25Z")

</div>

Hello I have a problem with creating the database using rake command I have executed the following command but failed. \[root@essen test\]# rake db\_setup --trace (in /usr/local/lib/ruby/coreware) \*\* Invoke db\_setup (…

---

## [RedBox Next And Previous Buttons](https://www.ruby-forum.com/t/redbox-next-and-previous-buttons/138621)

<div class="topic-metadata">

**Author:** [@joel](https://www.ruby-forum.com/u/joel)\
**Replies:** 0\
**Last updated:** [May 26, 2008, 1:48am UTC](https://www.ruby-forum.com/t/redbox-next-and-previous-buttons/138621 "2008-05-26T01:48:05Z")

</div>

Hello All, I have on my page a list of promotion items with a “Details” link to a popup window ( using redbox ) that gives more precise details about the promotion item. However I would like to add next and previous …

---

## [Just installed Ubuntu Hardy Heron, WOW](https://www.ruby-forum.com/t/just-installed-ubuntu-hardy-heron-wow/138488)

<div class="topic-metadata">

**Author:** [@rubyfreak](https://www.ruby-forum.com/u/rubyfreak)\
**Replies:** 11\
**Last updated:** [May 26, 2008, 12:50am UTC](https://www.ruby-forum.com/t/just-installed-ubuntu-hardy-heron-wow/138488 "2008-05-26T00:50:45Z")

</div>

After being publicly humiliated by the likes of Obie F. for my use of the…(whisper) Windows… platform, I decided to try installing Ubuntu again. Besides, it would only be worse if I showed up at Rails Conf running…(wh…

---

## [Please suggest an approach for a 'Team' model](https://www.ruby-forum.com/t/please-suggest-an-approach-for-a-team-model/138617)

<div class="topic-metadata">

**Author:** [@Fountain](https://www.ruby-forum.com/u/Fountain)\
**Replies:** 1\
**Last updated:** [May 26, 2008, 12:31am UTC](https://www.ruby-forum.com/t/please-suggest-an-approach-for-a-team-model/138617 "2008-05-26T00:31:25Z")

</div>

I’m new to programming but wanted to try my hand at implementing a ‘Team’ model for my site and wanted to see how others would approach it. Right now I am creating a ‘Team’ model that would be owned by a Team Captain…

---

## [Has\_many associations](https://www.ruby-forum.com/t/has-many-associations/138619)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [May 25, 2008, 11:58pm UTC](https://www.ruby-forum.com/t/has-many-associations/138619 "2008-05-25T23:58:01Z")

</div>

I have two tables, Zip (representing a zip code) and District (representing different districts a state or county is divided into). Zip references District multiple times, for example: belongs\_to :x\_district, :class\_n…

---

## [Association Error](https://www.ruby-forum.com/t/association-error/138606)

<div class="topic-metadata">

**Author:** [@mxp](https://www.ruby-forum.com/u/mxp)\
**Replies:** 1\
**Last updated:** [May 25, 2008, 11:51pm UTC](https://www.ruby-forum.com/t/association-error/138606 "2008-05-25T23:51:30Z")

</div>

Hello, I’m having a touch time with the implementation of as has\_many relationship between 3 models: Here are my models files product.rb contains(note that I’m extending the product model from the plugin substruct): …

---

## [ActiveRecord::Base#find is SQL injection free?](https://www.ruby-forum.com/t/activerecord-base-find-is-sql-injection-free/136784)

<div class="topic-metadata">

**Author:** [@MohsinHijazee](https://www.ruby-forum.com/u/MohsinHijazee)\
**Replies:** 7\
**Last updated:** [May 25, 2008, 11:13pm UTC](https://www.ruby-forum.com/t/activerecord-base-find-is-sql-injection-free/136784 "2008-05-25T23:13:04Z")

</div>

Hello All! Is the ActiveRecord::Base.find() :conditions option is safe to SQL Injections? Any comments on that?

---

## [Restful\_acl and namespaces](https://www.ruby-forum.com/t/restful-acl-and-namespaces/138542)

<div class="topic-metadata">

**Author:** [@tranquiliste](https://www.ruby-forum.com/u/tranquiliste)\
**Replies:** 9\
**Last updated:** [May 25, 2008, 9:52pm UTC](https://www.ruby-forum.com/t/restful-acl-and-namespaces/138542 "2008-05-25T21:52:16Z")

</div>

Hello, I am using Restful\_acl (and Restful\_authentication) for my project. I am currently facing a problem with namespaces map.resources :rooms do |room| building.resources :users, :controller =\> “rooms/users” end m…

---

## [Streamlined and ActiveScaffold question](https://www.ruby-forum.com/t/streamlined-and-activescaffold-question/110152)

<div class="topic-metadata">

**Author:** [@bmihelac](https://www.ruby-forum.com/u/bmihelac)\
**Replies:** 1\
**Last updated:** [May 25, 2008, 9:46pm UTC](https://www.ruby-forum.com/t/streamlined-and-activescaffold-question/110152 "2008-05-25T21:46:59Z")

</div>

Hi all, I am evaluating Streamlined and ActiveScaffold for implementing simple backend system for rails application and both seems attractive, and packaged with nice features. I wander which one would be easier to ex…

---

## [Record will absolutely not save! so weird, please help](https://www.ruby-forum.com/t/record-will-absolutely-not-save-so-weird-please-help/138593)

<div class="topic-metadata">

**Author:** [@jko170](https://www.ruby-forum.com/u/jko170)\
**Replies:** 2\
**Last updated:** [May 25, 2008, 9:21pm UTC](https://www.ruby-forum.com/t/record-will-absolutely-not-save-so-weird-please-help/138593 "2008-05-25T21:21:42Z")

</div>

I have a weird problem going on. All of sudden, records for a certain model will not save with #save Please take a look at this: p = Payment.new(:payment\_reason\_id =\> 1, :payment\_method\_id =\> 1, :date =\> Date.today, …

---

## [Encoding problem with rails migration](https://www.ruby-forum.com/t/encoding-problem-with-rails-migration/138610)

<div class="topic-metadata">

**Author:** [@georges](https://www.ruby-forum.com/u/georges)\
**Replies:** 0\
**Last updated:** [May 25, 2008, 8:57pm UTC](https://www.ruby-forum.com/t/encoding-problem-with-rails-migration/138610 "2008-05-25T20:57:20Z")

</div>

Hi to everyone here !!! Here is my (dummy) problem: when I populate my newly created DB, Ruby (aka “rake db:migrate”) detects “syntax errors” because of the extended chars I use. When I replace those “extended chars” …

---

## [Simple and Easy Image Upload](https://www.ruby-forum.com/t/simple-and-easy-image-upload/138603)

<div class="topic-metadata">

**Author:** [@bagadoughnuts](https://www.ruby-forum.com/u/bagadoughnuts)\
**Replies:** 2\
**Last updated:** [May 25, 2008, 7:10pm UTC](https://www.ruby-forum.com/t/simple-and-easy-image-upload/138603 "2008-05-25T19:10:30Z")

</div>

Hi all, I’ve done a good 8+ hours of searching for a good solution to my problem but have had little success finding a nice and easy image upload solution. Oh, and I am new to rails. My problem/requirement is that I …

---

## [TMail and logger](https://www.ruby-forum.com/t/tmail-and-logger/138604)

<div class="topic-metadata">

**Author:** [@mekdigital](https://www.ruby-forum.com/u/mekdigital)\
**Replies:** 0\
**Last updated:** [May 25, 2008, 6:51pm UTC](https://www.ruby-forum.com/t/tmail-and-logger/138604 "2008-05-25T18:51:42Z")

</div>

Hello, I’m the creator and ror developer of vipc.it, a photographic competition that works pretty well. I’ve created different releases and implemented different techniques to collect entries, from simple http to fle…

---

## [To\_xml for Foo::Bar active records](https://www.ruby-forum.com/t/to-xml-for-foo-bar-active-records/138568)

<div class="topic-metadata">

**Author:** [@pedz](https://www.ruby-forum.com/u/pedz)\
**Replies:** 1\
**Last updated:** [May 25, 2008, 6:09pm UTC](https://www.ruby-forum.com/t/to-xml-for-foo-bar-active-records/138568 "2008-05-25T18:09:52Z")

</div>

20 / 20 hind sight, I would probably do things different today but I have most of my active record classes under different parent classes. For example: module Foo class Bar \< ActiveRecord::Base … end end The to\_x…

---

## [Specific config.plugins for each environment](https://www.ruby-forum.com/t/specific-config-plugins-for-each-environment/138601)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 0\
**Last updated:** [May 25, 2008, 5:59pm UTC](https://www.ruby-forum.com/t/specific-config-plugins-for-each-environment/138601 "2008-05-25T17:59:02Z")

</div>

Hi, I wanted to use config.plugins. It works perfectly in environment.rb, but for instance I don’t want to load the rspec plugin when in production mode. However specifying config.plugins in config/environments/produ…

---

## [Has\_many / polymorphic](https://www.ruby-forum.com/t/has-many-polymorphic/138595)

<div class="topic-metadata">

**Author:** [@ara\_howard](https://www.ruby-forum.com/u/ara_howard)\
**Replies:** 2\
**Last updated:** [May 25, 2008, 4:48pm UTC](https://www.ruby-forum.com/t/has-many-polymorphic/138595 "2008-05-25T16:48:18Z")

</div>

hi all - i’ve got roughly the following from a legacy db (so no suggestions of changing schema) a class which models a peice a web content class WebContent # web\_contentid | content end a join table which maps to …

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

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