# Rails

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

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

---

## [Rails3, Datamapper and select](https://www.ruby-forum.com/t/rails3-datamapper-and-select/185972)

<div class="topic-metadata">

**Author:** [@Sylvain](https://www.ruby-forum.com/u/Sylvain)\
**Replies:** 0\
**Last updated:** [March 29, 2010, 10:39pm UTC](https://www.ruby-forum.com/t/rails3-datamapper-and-select/185972 "2010-03-29T22:39:09Z")

</div>

Hi all, I’m testing rails3 with Datamapper on a simple project. I’ve 2 classes : class Societe include DataMapper::Resource property :id, Serial property :nom, String property :adresse, Text has n, :cl…

---

## [Ruby on Rails Jobs Available in New Orleans](https://www.ruby-forum.com/t/ruby-on-rails-jobs-available-in-new-orleans/185968)

<div class="topic-metadata">

**Author:** [@sid137](https://www.ruby-forum.com/u/sid137)\
**Replies:** 0\
**Last updated:** [March 29, 2010, 9:21pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-jobs-available-in-new-orleans/185968 "2010-03-29T21:21:00Z")

</div>

I am an IT recruiter with TEKsystems. I’m working with a client here in New Orleans that is looking to bring on several entry level Ruby on Rails developers. I’m looking for anyone that is a Ruby novice all the way up…

---

## [Overriding default image, stylesheet and javascript paths](https://www.ruby-forum.com/t/overriding-default-image-stylesheet-and-javascript-paths/185838)

<div class="topic-metadata">

**Author:** [@cult\_hero](https://www.ruby-forum.com/u/cult_hero)\
**Replies:** 6\
**Last updated:** [March 29, 2010, 8:16pm UTC](https://www.ruby-forum.com/t/overriding-default-image-stylesheet-and-javascript-paths/185838 "2010-03-29T20:16:20Z")

</div>

Is there some way to override the paths for images, stylesheets and javascripts without monkey patching? (Rails 3 Beta) I just looked at asset\_tag\_helper.rb and I see this: def stylesheet\_path(source) compute\_public\_…

---

## [My model object's attributes are not being saved](https://www.ruby-forum.com/t/my-model-objects-attributes-are-not-being-saved/185954)

<div class="topic-metadata">

**Author:** [@BarryOg](https://www.ruby-forum.com/u/BarryOg)\
**Replies:** 2\
**Last updated:** [March 29, 2010, 6:28pm UTC](https://www.ruby-forum.com/t/my-model-objects-attributes-are-not-being-saved/185954 "2010-03-29T18:28:37Z")

</div>

Hello all, I’m into my first week of rails coding and I’m really enjoying it so far. I’ve run into a bit of an problem. I have a user model which represents the currently logged in user. I’m also creating a gas\_re…

---

## [How to get observe\_field to work with :on =\> keyup?](https://www.ruby-forum.com/t/how-to-get-observe-field-to-work-with-on-keyup/185957)

<div class="topic-metadata">

**Author:** [@mpaxton](https://www.ruby-forum.com/u/mpaxton)\
**Replies:** 0\
**Last updated:** [March 29, 2010, 6:01pm UTC](https://www.ruby-forum.com/t/how-to-get-observe-field-to-work-with-on-keyup/185957 "2010-03-29T18:01:56Z")

</div>

Hi All, I’ve be looking all over for a definitive answer to this question but it’s eluding me. There are many, many examples of the use of observe\_field that include :on =\> ‘keyup’ – supposedly allowing one to bind a…

---

## [Toggling jumping?](https://www.ruby-forum.com/t/toggling-jumping/185953)

<div class="topic-metadata">

**Author:** [@Dudebot](https://www.ruby-forum.com/u/Dudebot)\
**Replies:** 0\
**Last updated:** [March 29, 2010, 5:52pm UTC](https://www.ruby-forum.com/t/toggling-jumping/185953 "2010-03-29T17:52:55Z")

</div>

I get the feeling I’m using toggle in a way that it wasn’t intended. This works: \<div id="show" style='display:none;'\> \<%= button\_to\_remote "Show", :complete =\> visual\_effect( :toggle\_appear, “show” ) + visual\_…

---

## [Fader Issues](https://www.ruby-forum.com/t/fader-issues/185933)

<div class="topic-metadata">

**Author:** [@mercurius](https://www.ruby-forum.com/u/mercurius)\
**Replies:** 1\
**Last updated:** [March 29, 2010, 4:53pm UTC](https://www.ruby-forum.com/t/fader-issues/185933 "2010-03-29T16:53:27Z")

</div>

What I want is to be able to fade an Image from a News Story with the summary text. Both from the same record, from the same database table. I’ve placed the fader into a seperate partial that’s being rendered on an in…

---

## [Issue with Sortables and Rails. Is it Javascript/rails problem?](https://www.ruby-forum.com/t/issue-with-sortables-and-rails-is-it-javascript-rails-problem/185946)

<div class="topic-metadata">

**Author:** [@droopy](https://www.ruby-forum.com/u/droopy)\
**Replies:** 0\
**Last updated:** [March 29, 2010, 4:09pm UTC](https://www.ruby-forum.com/t/issue-with-sortables-and-rails-is-it-javascript-rails-problem/185946 "2010-03-29T16:09:53Z")

</div>

Hi there, I have an issue with Sortables that I can’t figure out. I’m not sure if this issue is related to Sortables or if it is a more generic Javascript/Rails interaction issue Let’s say I have a sortable with a li…

---

## [Find efficiently "greater" string in model attribute](https://www.ruby-forum.com/t/find-efficiently-greater-string-in-model-attribute/185941)

<div class="topic-metadata">

**Author:** [@kinunt](https://www.ruby-forum.com/u/kinunt)\
**Replies:** 2\
**Last updated:** [March 29, 2010, 3:35pm UTC](https://www.ruby-forum.com/t/find-efficiently-greater-string-in-model-attribute/185941 "2010-03-29T15:35:20Z")

</div>

How can I find efficiently the model Invoice with the greater code (invoice attribute) when the code is a string like “1/10”, “2/10”, “3/10” (without quotes) and where only the number before the slash count? 1/10 \< 2/…

---

## [Checking for SSL in a view](https://www.ruby-forum.com/t/checking-for-ssl-in-a-view/185935)

<div class="topic-metadata">

**Author:** [@pjmorse](https://www.ruby-forum.com/u/pjmorse)\
**Replies:** 0\
**Last updated:** [March 29, 2010, 2:03pm UTC](https://www.ruby-forum.com/t/checking-for-ssl-in-a-view/185935 "2010-03-29T14:03:26Z")

</div>

Here’s the situation: I have a site where a few pages are ssl-required but the whole site is ssl-allowed. (In other words, most of the site can be reached by either https or http.) In order to minimize user’s bro…

---

## [Relationship between Customer, Person, Employee, User entity](https://www.ruby-forum.com/t/relationship-between-customer-person-employee-user-entity/185927)

<div class="topic-metadata">

**Author:** [@paritian](https://www.ruby-forum.com/u/paritian)\
**Replies:** 4\
**Last updated:** [March 29, 2010, 12:47pm UTC](https://www.ruby-forum.com/t/relationship-between-customer-person-employee-user-entity/185927 "2010-03-29T12:47:55Z")

</div>

Hello Friends, I am trying to define relationship between real-world entities in my application… But I am feel, I am over-representing it a little and hence would like your opinion. class User \< ActiveRecord::Base h…

---

## [Plugin Paperclip has\_attached\_file error](https://www.ruby-forum.com/t/plugin-paperclip-has-attached-file-error/185929)

<div class="topic-metadata">

**Author:** [@ESESES](https://www.ruby-forum.com/u/ESESES)\
**Replies:** 0\
**Last updated:** [March 29, 2010, 12:16pm UTC](https://www.ruby-forum.com/t/plugin-paperclip-has-attached-file-error/185929 "2010-03-29T12:16:54Z")

</div>

I installed the plugin Paperclip but I still I get the error undefined method \`has\_attached\_file’ when I try to use it. I followed the directions on this http://media.railscasts.com/videos/134\_paperclip.mov Why woul…

---

## [Join tables](https://www.ruby-forum.com/t/join-tables/185918)

<div class="topic-metadata">

**Author:** [@brianp](https://www.ruby-forum.com/u/brianp)\
**Replies:** 5\
**Last updated:** [March 29, 2010, 10:50am UTC](https://www.ruby-forum.com/t/join-tables/185918 "2010-03-29T10:50:51Z")

</div>

Just working out my db schema before I start development and I got stuck on my join tables. With the way most associations work in rails already. Are join tables really needed? Rails will handle most of that auto magi…

---

## [Seed data](https://www.ruby-forum.com/t/seed-data/185798)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 7\
**Last updated:** [March 29, 2010, 10:25am UTC](https://www.ruby-forum.com/t/seed-data/185798 "2010-03-29T10:25:40Z")

</div>

Hi I am using seed\_fu to seed initial data to tables (GitHub - mbleigh/seed-fu: Advanced seed data handling for Rails, combining the best practices of several methods together.) . And in db/fixtures/state.rb I have va…

---

## [Polymorphic association and has\_one retrieval issues](https://www.ruby-forum.com/t/polymorphic-association-and-has-one-retrieval-issues/185923)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [March 29, 2010, 9:57am UTC](https://www.ruby-forum.com/t/polymorphic-association-and-has-one-retrieval-issues/185923 "2010-03-29T09:57:00Z")

</div>

class Address \< ActiveRecord::Base belongs\_to :addressable, :polymorphic =\> true end class Client \< ActiveRecord::Base has\_one :address, :as =\> :addressable end Now I’am able to create a correct entry in the db f…

---

## [Upload thru IFRAME](https://www.ruby-forum.com/t/upload-thru-iframe/185922)

<div class="topic-metadata">

**Author:** [@hunt](https://www.ruby-forum.com/u/hunt)\
**Replies:** 1\
**Last updated:** [March 29, 2010, 9:57am UTC](https://www.ruby-forum.com/t/upload-thru-iframe/185922 "2010-03-29T09:57:00Z")

</div>

I created one Prototype helper.In that a method with following name is there def form\_remote\_tag\_with\_multipart\_support(options = {}, &block) if options\[:html\]\[:multipart\] uid = “a#{Time.now.to\_f.hash.abs}” options\[…

---

## [Error in uploading file(help me urgnt)](https://www.ruby-forum.com/t/error-in-uploading-file-help-me-urgnt/185910)

<div class="topic-metadata">

**Author:** [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Replies:** 4\
**Last updated:** [March 29, 2010, 9:00am UTC](https://www.ruby-forum.com/t/error-in-uploading-file-help-me-urgnt/185910 "2010-03-29T09:00:49Z")

</div>

when i tried to crate an upload file application in rails i am getting error like this Template is missing Missing template app\\views\\upload\\uploadfile.html.erb in view path app/views this is ma model class Dat…

---

## [Toggle appear starts hidden?](https://www.ruby-forum.com/t/toggle-appear-starts-hidden/185914)

<div class="topic-metadata">

**Author:** [@Dudebot](https://www.ruby-forum.com/u/Dudebot)\
**Replies:** 6\
**Last updated:** [March 29, 2010, 8:50am UTC](https://www.ruby-forum.com/t/toggle-appear-starts-hidden/185914 "2010-03-29T08:50:52Z")

</div>

This definitely works: \<%= button\_to\_remote “Test”, :complete =\> visual\_effect( :toggle\_appear, “toggle\_appear” ) %\> yada yada yada To toggle content off -\> content on, etc. But is there any way to have the initial…

---

## [Act\_as\_Solr Query time](https://www.ruby-forum.com/t/act-as-solr-query-time/185913)

<div class="topic-metadata">

**Author:** [@mahesh\_s](https://www.ruby-forum.com/u/mahesh_s)\
**Replies:** 0\
**Last updated:** [March 29, 2010, 7:57am UTC](https://www.ruby-forum.com/t/act-as-solr-query-time/185913 "2010-03-29T07:57:36Z")

</div>

Hi friends Im using act as solr for my project i would like to display query time for my results, im getting the query time from solr whether the Qtime is microsecond or millisecond can any one help me for this

---

## [Error with Textmate Cucumber Bundle Run Command](https://www.ruby-forum.com/t/error-with-textmate-cucumber-bundle-run-command/185907)

<div class="topic-metadata">

**Author:** [@Ruby.Tuesday](https://www.ruby-forum.com/u/Ruby.Tuesday)\
**Replies:** 0\
**Last updated:** [March 29, 2010, 4:45am UTC](https://www.ruby-forum.com/t/error-with-textmate-cucumber-bundle-run-command/185907 "2010-03-29T04:45:37Z")

</div>

I’m encountering an error within Textmate when executing the Run command, Command-R, from within a .feature file. The error message is “env: sh: No such file or directory”. I’ve installed the Cucumber bundle from gi…

---

## [Prototype Helpers & jQuery](https://www.ruby-forum.com/t/prototype-helpers-jquery/185799)

<div class="topic-metadata">

**Author:** [@kampers](https://www.ruby-forum.com/u/kampers)\
**Replies:** 16\
**Last updated:** [March 29, 2010, 12:20am UTC](https://www.ruby-forum.com/t/prototype-helpers-jquery/185799 "2010-03-29T00:20:19Z")

</div>

Hi guys: I’m trying to get both jQuery (specifically in this example with prettyphoto but would like to use other jquery elements as well) and prototype to work together but none of the docs I see online seem to be wo…

---

## [Adding data to database directly through Ruby code](https://www.ruby-forum.com/t/adding-data-to-database-directly-through-ruby-code/185895)

<div class="topic-metadata">

**Author:** [@derek](https://www.ruby-forum.com/u/derek)\
**Replies:** 2\
**Last updated:** [March 28, 2010, 11:43pm UTC](https://www.ruby-forum.com/t/adding-data-to-database-directly-through-ruby-code/185895 "2010-03-28T23:43:39Z")

</div>

(First, I’m very new to Rails and still slightly new to Ruby. So bare with me.) I made a Ruby application that allows me to view local XML files which contain information on my favorite movies. My program reads the XM…

---

## [ActiveRecord::StatementInvalid: Mysql Errorr public\_indices](https://www.ruby-forum.com/t/activerecord-mysql-errorr-public-indices/185893)

<div class="topic-metadata">

**Author:** [@graham](https://www.ruby-forum.com/u/graham)\
**Replies:** 2\
**Last updated:** [March 28, 2010, 8:26pm UTC](https://www.ruby-forum.com/t/activerecord-mysql-errorr-public-indices/185893 "2010-03-28T20:26:11Z")

</div>

Hi all, I’m new to ROR so sorry if this is simple. I’m using NetBeans 6.8 as my IDE and I’m trying to run tests on my shared project but I’m hitting the error beow and I can’t figure out what it means. ActiveRecord:…

---

## [Accepts\_nested\_attributes\_for - issue](https://www.ruby-forum.com/t/accepts-nested-attributes-for-issue/185878)

<div class="topic-metadata">

**Author:** [@slindsey3000](https://www.ruby-forum.com/u/slindsey3000)\
**Replies:** 4\
**Last updated:** [March 28, 2010, 8:25pm UTC](https://www.ruby-forum.com/t/accepts-nested-attributes-for-issue/185878 "2010-03-28T20:25:50Z")

</div>

Just trying a simple example to try to get nested to work… but can’t get it! Been 2 days! Please help. VERY SIMPLE controller, view, models… listed below. ----------------------ERROR MESSAGE----------------------…

---

## [Array data type----What can Be Done](https://www.ruby-forum.com/t/array-data-type-what-can-be-done/185885)

<div class="topic-metadata">

**Author:** [@kevid](https://www.ruby-forum.com/u/kevid)\
**Replies:** 3\
**Last updated:** [March 28, 2010, 6:35pm UTC](https://www.ruby-forum.com/t/array-data-type-what-can-be-done/185885 "2010-03-28T18:35:12Z")

</div>

Hi all, please i have an array in my rails application (for example; $x = \[23, how, this,56, you, nice\]) I want to store it in a mysql database as a SINGLE RECORD with a name . thus i can get each array with its n…

---

## [Keeping track of who did what](https://www.ruby-forum.com/t/keeping-track-of-who-did-what/185888)

<div class="topic-metadata">

**Author:** [@eugenio](https://www.ruby-forum.com/u/eugenio)\
**Replies:** 1\
**Last updated:** [March 28, 2010, 6:21pm UTC](https://www.ruby-forum.com/t/keeping-track-of-who-did-what/185888 "2010-03-28T18:21:09Z")

</div>

hello everybody. i need to log “who did what” on some models. i was reading recipe 59 of rails recipes and i created something like that: class LogSweeper \< ActionController::Caching::Sweeper observe :model1, :model2…

---

## [eCommerce admin systems](https://www.ruby-forum.com/t/ecommerce-admin-systems/185884)

<div class="topic-metadata">

**Author:** [@JezCrooks](https://www.ruby-forum.com/u/JezCrooks)\
**Replies:** 0\
**Last updated:** [March 28, 2010, 12:49pm UTC](https://www.ruby-forum.com/t/ecommerce-admin-systems/185884 "2010-03-28T12:49:56Z")

</div>

Hi - I’m looking for a catalogue/order management/CRM back office…anyone got any recommendations? Thanks, Cheers, J.

---

## [How can i install ruby on rails in ubuntu](https://www.ruby-forum.com/t/how-can-i-install-ruby-on-rails-in-ubuntu/185871)

<div class="topic-metadata">

**Author:** [@sachiguns](https://www.ruby-forum.com/u/sachiguns)\
**Replies:** 6\
**Last updated:** [March 28, 2010, 12:42pm UTC](https://www.ruby-forum.com/t/how-can-i-install-ruby-on-rails-in-ubuntu/185871 "2010-03-28T12:42:20Z")

</div>

i am new to rails so please help me to install ruby on rails to my ubuntu 9.10 Thanks

---

## [Displaying model data in a form](https://www.ruby-forum.com/t/displaying-model-data-in-a-form/185881)

<div class="topic-metadata">

**Author:** [@Constantin](https://www.ruby-forum.com/u/Constantin)\
**Replies:** 1\
**Last updated:** [March 28, 2010, 10:37am UTC](https://www.ruby-forum.com/t/displaying-model-data-in-a-form/185881 "2010-03-28T10:37:07Z")

</div>

I have an edit form with multiple input fields, however I would like some of the object data to be displayed just as reference data, not in an actual input field. How do I include simple object data in a form, without…

---

## [Keeping it DRY. Same constant needed in js, sass, and rails](https://www.ruby-forum.com/t/keeping-it-dry-same-constant-needed-in-js-sass-and-rails/185874)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 0\
**Last updated:** [March 28, 2010, 6:36am UTC](https://www.ruby-forum.com/t/keeping-it-dry-same-constant-needed-in-js-sass-and-rails/185874 "2010-03-28T06:36:55Z")

</div>

I need a constant, X, to be known in a jQuery script In an .rb file in Rails ins some css/SASS How can I get this constant known in all three places?

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

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