# Rails

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

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

---

## [How can I get a list of all associations from my model](https://www.ruby-forum.com/t/how-can-i-get-a-list-of-all-associations-from-my-model/165217)

<div class="topic-metadata">

**Author:** [@kretch](https://www.ruby-forum.com/u/kretch)\
**Replies:** 0\
**Last updated:** [April 10, 2009, 9:28am UTC](https://www.ruby-forum.com/t/how-can-i-get-a-list-of-all-associations-from-my-model/165217 "2009-04-10T09:28:23Z")

</div>

Hi All I have a model defined as follows: class a\< ActiveRecord::Base has\_many :a\_b\_mappings has\_many :bs, :through =\> :a\_b\_mappings, :uniq =\> true has\_many :a\_c\_mappings has\_many :cs, :through =\> :a\_c\_mappings, :u…

---

## [Sanitize\_name](https://www.ruby-forum.com/t/sanitize-name/165214)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 0\
**Last updated:** [April 10, 2009, 8:31am UTC](https://www.ruby-forum.com/t/sanitize-name/165214 "2009-04-10T08:31:29Z")

</div>

Hi … i found this below code somewhere… And Curious to know UserInfo.sanitize\_name( first\_name ) unless name.nil? or name.blank? Actually what it does and wht it returns… Kindly Guide Me… Thanks

---

## [Render problems in upgrading from 2.1.2 to 2.3.2](https://www.ruby-forum.com/t/render-problems-in-upgrading-from-2-1-2-to-2-3-2/165199)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 1\
**Last updated:** [April 10, 2009, 3:53am UTC](https://www.ruby-forum.com/t/render-problems-in-upgrading-from-2-1-2-to-2-3-2/165199 "2009-04-10T03:53:50Z")

</div>

My custom layout file for the AdminController in in views/layouts/admin.html.erb and has the following code: \<% content\_for :secondary\_nav do %\> \<%= sub\_navigation \[:prospect\_statuses, :client\_statuses, :business\_sta…

---

## [P3p policy and rails 2.3](https://www.ruby-forum.com/t/p3p-policy-and-rails-2-3/165195)

<div class="topic-metadata">

**Author:** [@arvias](https://www.ruby-forum.com/u/arvias)\
**Replies:** 0\
**Last updated:** [April 10, 2009, 2:09am UTC](https://www.ruby-forum.com/t/p3p-policy-and-rails-2-3/165195 "2009-04-10T02:09:09Z")

</div>

Hi, Has anyone encountered a problem where IE6 rejects all P3P policies sent by Rails/Nginx? I had a simple setup that worked in 2.2.2 and it doesn’t anymore: Server: nginx/0.6.32 Date: Fri, 10 Apr 2009 00:03:36 GMT …

---

## [Routing error?](https://www.ruby-forum.com/t/routing-error/165169)

<div class="topic-metadata">

**Author:** [@ali](https://www.ruby-forum.com/u/ali)\
**Replies:** 1\
**Last updated:** [April 10, 2009, 1:18am UTC](https://www.ruby-forum.com/t/routing-error/165169 "2009-04-10T01:18:17Z")

</div>

I hope this will be an easy question… I’m trying to migrate from Rails 1.2 to 2.1, and I must admit, the routing is somewhat confusing me. When I update a form, I’m getting a routing error. (“No route matches {id}”)…

---

## [ActiveRecord.save With No SELECT Privileges (MySQL)](https://www.ruby-forum.com/t/activerecord-save-with-no-select-privileges-mysql/165187)

<div class="topic-metadata">

**Author:** [@Phoenix\_R](https://www.ruby-forum.com/u/Phoenix_R)\
**Replies:** 1\
**Last updated:** [April 10, 2009, 1:08am UTC](https://www.ruby-forum.com/t/activerecord-save-with-no-select-privileges-mysql/165187 "2009-04-10T01:08:55Z")

</div>

I’m writing a customer-facing application that’s responsible for obtaining extremely sensitive data, much to my dismay and despite my vehement protests. Long story short, to stay in compliance with various policies, …

---

## [Where to store scrape results?](https://www.ruby-forum.com/t/where-to-store-scrape-results/164745)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 11\
**Last updated:** [April 10, 2009, 12:38am UTC](https://www.ruby-forum.com/t/where-to-store-scrape-results/164745 "2009-04-10T00:38:29Z")

</div>

Given a users search query my app goes off and scrapes a few sites and provides the results to the user. The user can also choose to filter these results even further by category, age etc and this will be updated via …

---

## [Another TimeZone Question - Multiple Legacy Databases](https://www.ruby-forum.com/t/another-timezone-question-multiple-legacy-databases/165189)

<div class="topic-metadata">

**Author:** [@Mike\_P](https://www.ruby-forum.com/u/Mike_P)\
**Replies:** 0\
**Last updated:** [April 10, 2009, 12:32am UTC](https://www.ruby-forum.com/t/another-timezone-question-multiple-legacy-databases/165189 "2009-04-10T00:32:06Z")

</div>

We had to create a reporting software that connects to multiple databases that are all in different time zones. Is there any way for us to tell Rails which time zone each database is in and still be able to have time …

---

## [Can startups post equity-based techcofounder positions here and](https://www.ruby-forum.com/t/can-startups-post-equity-based-techcofounder-positions-here-and/165168)

<div class="topic-metadata">

**Author:** [@gary\_krane\_SDavidvG](https://www.ruby-forum.com/u/gary_krane_SDavidvG)\
**Replies:** 1\
**Last updated:** [April 10, 2009, 12:09am UTC](https://www.ruby-forum.com/t/can-startups-post-equity-based-techcofounder-positions-here-and/165168 "2009-04-10T00:09:52Z")

</div>

if so how. I do not find a moderator address at the bottom of your emails, otherwise i would have written that person. Yours truly for love, justice, and the planet, Gary Krane PhD Director/Founder, David vs Goliath …

---

## [ActiveRecord find/include question (MySQL)](https://www.ruby-forum.com/t/activerecord-find-include-question-mysql/165184)

<div class="topic-metadata">

**Author:** [@gmoniey](https://www.ruby-forum.com/u/gmoniey)\
**Replies:** 1\
**Last updated:** [April 10, 2009, 12:07am UTC](https://www.ruby-forum.com/t/activerecord-find-include-question-mysql/165184 "2009-04-10T00:07:32Z")

</div>

I found that if I do something like (on MySQL): File.all(:conditions =\> {‘files.deleted’ =\> false, ‘assets.deleted’ =\> false}, :include =\> :assets) will only return Files which have at least 1 assets associated with i…

---

## [Need help on using workling/starling](https://www.ruby-forum.com/t/need-help-on-using-workling-starling/165183)

<div class="topic-metadata">

**Author:** [@kuvkir](https://www.ruby-forum.com/u/kuvkir)\
**Replies:** 0\
**Last updated:** [April 9, 2009, 11:23pm UTC](https://www.ruby-forum.com/t/need-help-on-using-workling-starling/165183 "2009-04-09T23:23:01Z")

</div>

Hello! My rails app’s using a queue of tasks that should be handled asynchronously. Task handling should be done in the following way: rails app does some basic logic and puts the further work into the queue of tas…

---

## [Managing ads banner](https://www.ruby-forum.com/t/managing-ads-banner/162779)

<div class="topic-metadata">

**Author:** [@semyou](https://www.ruby-forum.com/u/semyou)\
**Replies:** 4\
**Last updated:** [April 9, 2009, 11:22pm UTC](https://www.ruby-forum.com/t/managing-ads-banner/162779 "2009-04-09T23:22:25Z")

</div>

Hi guys, What is the best way to include ad banners in rails? Do you include them in default layout? What is the ideal way if the ad has to change each time? Thanks,

---

## [Attach CSV String as attachment](https://www.ruby-forum.com/t/attach-csv-string-as-attachment/165177)

<div class="topic-metadata">

**Author:** [@mgiorno](https://www.ruby-forum.com/u/mgiorno)\
**Replies:** 0\
**Last updated:** [April 9, 2009, 9:30pm UTC](https://www.ruby-forum.com/t/attach-csv-string-as-attachment/165177 "2009-04-09T21:30:25Z")

</div>

I am trying to take a csv string output and send it as a file attachment, but keep my data is only coming out as gobbly gook. The csv string is valid going into the mailer action. Valid CSV id,name,dealer\_code,creat…

---

## [Method\_exists? is missing?](https://www.ruby-forum.com/t/method-exists-is-missing/165167)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 1\
**Last updated:** [April 9, 2009, 8:42pm UTC](https://www.ruby-forum.com/t/method-exists-is-missing/165167 "2009-04-09T20:42:49Z")

</div>

In a controller run through webrick I do this: @entity = Entity.new print @entity.methods.sort.to\_yaml and I see this: logger mark\_for\_destruction marked\_for\_destruction? metaclass method method\_missing methods new\_…

---

## [JRuby on Rails on Google App Engine](https://www.ruby-forum.com/t/jruby-on-rails-on-google-app-engine/196934)

<div class="topic-metadata">

**Author:** [@Ola\_B](https://www.ruby-forum.com/u/Ola_B)\
**Replies:** 1\
**Last updated:** [April 9, 2009, 8:11pm UTC](https://www.ruby-forum.com/t/jruby-on-rails-on-google-app-engine/196934 "2009-04-09T20:11:07Z")

</div>

Hi friends, As you might have heard, Google has released support for Java on App Engine. I’ve been part of a preview, and know that JRuby, Ruby on Rails and Merb works very well on it. More information here: http:/…

---

## [What's 'logger', really](https://www.ruby-forum.com/t/whats-logger-really/164283)

<div class="topic-metadata">

**Author:** [@stevedogers](https://www.ruby-forum.com/u/stevedogers)\
**Replies:** 3\
**Last updated:** [April 9, 2009, 7:35pm UTC](https://www.ruby-forum.com/t/whats-logger-really/164283 "2009-04-09T19:35:55Z")

</div>

Hi, I don’t understand how we can just call ‘logger’ from any method, but when using observers we have to have it attached to some kind of object (usually the model of the object being observed). Why is that? What is …

---

## [Map.connect '' doesn't work](https://www.ruby-forum.com/t/map-connect-doesnt-work/165159)

<div class="topic-metadata">

**Author:** [@CiriusMex](https://www.ruby-forum.com/u/CiriusMex)\
**Replies:** 4\
**Last updated:** [April 9, 2009, 6:51pm UTC](https://www.ruby-forum.com/t/map-connect-doesnt-work/165159 "2009-04-09T18:51:19Z")

</div>

Hi, got a problem with the map.connect ‘’ in my website (I don’t know much of routes as I never really checked it). Ok so I just want to redirect automaticaly the users to my index page when they get to the site. So t…

---

## [Cucumber + authlogic trouble](https://www.ruby-forum.com/t/cucumber-authlogic-trouble/165152)

<div class="topic-metadata">

**Author:** [@scottnj](https://www.ruby-forum.com/u/scottnj)\
**Replies:** 1\
**Last updated:** [April 9, 2009, 6:06pm UTC](https://www.ruby-forum.com/t/cucumber-authlogic-trouble/165152 "2009-04-09T18:06:53Z")

</div>

i am trying to learn testing for rails apps. i followed the two authlogic tutorials (basic authlogic setup and password reset) and now i am trying to add some integration tests with cucumber (i know you are supposed t…

---

## [Create databse tables](https://www.ruby-forum.com/t/create-databse-tables/165157)

<div class="topic-metadata">

**Author:** [@zeusone](https://www.ruby-forum.com/u/zeusone)\
**Replies:** 2\
**Last updated:** [April 9, 2009, 5:22pm UTC](https://www.ruby-forum.com/t/create-databse-tables/165157 "2009-04-09T17:22:16Z")

</div>

Hi all! I am a RoR newbie. I want to install an exist RoR project. I installed all but I cannot create the database tables. I configure my config/database.yml and it works because if I run the command rake db:creat…

---

## [How to run 2.2.2 and 2.3 / 1.8.7 and 1.9 on same dev box](https://www.ruby-forum.com/t/how-to-run-2-2-2-and-2-3-1-8-7-and-1-9-on-same-dev-box/165142)

<div class="topic-metadata">

**Author:** [@bartee](https://www.ruby-forum.com/u/bartee)\
**Replies:** 1\
**Last updated:** [April 9, 2009, 4:29pm UTC](https://www.ruby-forum.com/t/how-to-run-2-2-2-and-2-3-1-8-7-and-1-9-on-same-dev-box/165142 "2009-04-09T16:29:19Z")

</div>

I am starting new project and want to jump into the 2.3 / 1.9 world. How do I run both envirnments on same box. I inderstand I can freeze 2.2.2 in my current aps, but a little lost on the 1.8.7 and 1.9 ruby runtime wo…

---

## [Having trouble extending a class from a Rails plugin](https://www.ruby-forum.com/t/having-trouble-extending-a-class-from-a-rails-plugin/165077)

<div class="topic-metadata">

**Author:** [@jfoxny](https://www.ruby-forum.com/u/jfoxny)\
**Replies:** 4\
**Last updated:** [April 9, 2009, 4:28pm UTC](https://www.ruby-forum.com/t/having-trouble-extending-a-class-from-a-rails-plugin/165077 "2009-04-09T16:28:47Z")

</div>

I have class in a plugin that I want to crack open and add some functionality to for a particular application. So, I created a file by the same name as the class in my app/models folder and added some methods to the c…

---

## [Datepicker array](https://www.ruby-forum.com/t/datepicker-array/165099)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 1\
**Last updated:** [April 9, 2009, 4:17pm UTC](https://www.ruby-forum.com/t/datepicker-array/165099 "2009-04-09T16:17:02Z")

</div>

I have a from that will require multiple dates and or times. I am using the jquery datepicker that I have been using for a long time. I am doing this in a partial for multiple date/times: \<%= text\_field\_tag "mopdate\[…

---

## [Rails 2.3 Upgrade Issue with MemCache](https://www.ruby-forum.com/t/rails-2-3-upgrade-issue-with-memcache/163449)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 9\
**Last updated:** [April 9, 2009, 4:10pm UTC](https://www.ruby-forum.com/t/rails-2-3-upgrade-issue-with-memcache/163449 "2009-04-09T16:10:34Z")

</div>

One of the plugins I use is Workling. It throws the following error when I try to run it under 2.3: /Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active\_support/ dependencies.rb:443:in \`load\_missing\_constant’: …

---

## [TypeError problem with active\_merchant](https://www.ruby-forum.com/t/typeerror-problem-with-active-merchant/226037)

<div class="topic-metadata">

**Author:** [@yorkie-t](https://www.ruby-forum.com/u/yorkie-t)\
**Replies:** 0\
**Last updated:** [April 9, 2009, 3:36pm UTC](https://www.ruby-forum.com/t/typeerror-problem-with-active-merchant/226037 "2009-04-09T15:36:16Z")

</div>

Hi folks I’m doing some work on a project with active\_merchant and I keep getting the following error: TypeError in CheckoutController#place\_order exception class/object expected heres the piece of code from my co…

---

## [Web service for processing files](https://www.ruby-forum.com/t/web-service-for-processing-files/165145)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 0\
**Last updated:** [April 9, 2009, 3:06pm UTC](https://www.ruby-forum.com/t/web-service-for-processing-files/165145 "2009-04-09T15:06:33Z")

</div>

Not sure, really, where to ask this - and Rails is the first thing I think of when I want to wireframe something and know, due to the corporate world, it will end up in production anyway. (And that’s ok.) I need a ser…

---

## [Data is not passing from Form to controller actions](https://www.ruby-forum.com/t/data-is-not-passing-from-form-to-controller-actions/165134)

<div class="topic-metadata">

**Author:** [@vaibhav\_darji](https://www.ruby-forum.com/u/vaibhav_darji)\
**Replies:** 1\
**Last updated:** [April 9, 2009, 1:55pm UTC](https://www.ruby-forum.com/t/data-is-not-passing-from-form-to-controller-actions/165134 "2009-04-09T13:55:33Z")

</div>

How to render the data from form to controller actions? This is my controller:- class ViewController \< ApplicationController def index end def new @txt=params\[:txt\] end end Index Page:- New Page:- View…

---

## [MemoryStore vs Class Variables](https://www.ruby-forum.com/t/memorystore-vs-class-variables/165140)

<div class="topic-metadata">

**Author:** [@sshaikh](https://www.ruby-forum.com/u/sshaikh)\
**Replies:** 0\
**Last updated:** [April 9, 2009, 1:50pm UTC](https://www.ruby-forum.com/t/memorystore-vs-class-variables/165140 "2009-04-09T13:50:08Z")

</div>

Apart from the possibility of changing the Store of the Rails’ cache without much code modification, what’s the benefit of using a MemoryStore backed cache over class variables to cache models? Excuse the contrived qu…

---

## [Images in select combo box](https://www.ruby-forum.com/t/images-in-select-combo-box/165135)

<div class="topic-metadata">

**Author:** [@joel](https://www.ruby-forum.com/u/joel)\
**Replies:** 0\
**Last updated:** [April 9, 2009, 1:10pm UTC](https://www.ruby-forum.com/t/images-in-select-combo-box/165135 "2009-04-09T13:10:52Z")

</div>

Hello All, does someone know how to add images (icons) as options in a select tag ? Thanks in advance, Joel

---

## [Test helpers in Rails-2.3.2](https://www.ruby-forum.com/t/test-helpers-in-rails-2-3-2/165133)

<div class="topic-metadata">

**Author:** [@anasmd](https://www.ruby-forum.com/u/anasmd)\
**Replies:** 0\
**Last updated:** [April 9, 2009, 1:07pm UTC](https://www.ruby-forum.com/t/test-helpers-in-rails-2-3-2/165133 "2009-04-09T13:07:21Z")

</div>

hey Iam runing on latestproject rails 2.3.2, strangley i seee that my test cases are not working. I wonder if any body bumped into the same …, thanks in advance and let me know if I need to pass on more info… Than…

---

## [Finding record between 2 dates](https://www.ruby-forum.com/t/finding-record-between-2-dates/165026)

<div class="topic-metadata">

**Author:** [@vaibhav\_darji](https://www.ruby-forum.com/u/vaibhav_darji)\
**Replies:** 5\
**Last updated:** [April 9, 2009, 11:41am UTC](https://www.ruby-forum.com/t/finding-record-between-2-dates/165026 "2009-04-09T11:41:46Z")

</div>

I am very new to ruby on rails programming, I am using the oracle as my database, In my project there r 2 text box fields and in first and second text boxes i want the date field to be enter by the client and want to …

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

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