# Rails

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

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

---

## [Strange behaviour with ActiveRecord and collection\_ids](https://www.ruby-forum.com/t/strange-behaviour-with-activerecord-and-collection-ids/176450)

<div class="topic-metadata">

**Author:** [@MaurSSS\_cio\_Szabo](https://www.ruby-forum.com/u/MaurSSS_cio_Szabo)\
**Replies:** 1\
**Last updated:** [October 3, 2009, 1:28am UTC](https://www.ruby-forum.com/t/strange-behaviour-with-activerecord-and-collection-ids/176450 "2009-10-03T01:28:46Z")

</div>

Hello, I don’t exactly know if this can be considered a bug, but before posting it as a bug I’d like to see if there is a workaround In my application, I have a couple of students and the subjects (matter subjects) th…

---

## [Escape html encode problem](https://www.ruby-forum.com/t/escape-html-encode-problem/176608)

<div class="topic-metadata">

**Author:** [@yumiu](https://www.ruby-forum.com/u/yumiu)\
**Replies:** 0\
**Last updated:** [October 3, 2009, 1:13am UTC](https://www.ruby-forum.com/t/escape-html-encode-problem/176608 "2009-10-03T01:13:53Z")

</div>

hey guys what will this \<%= ‘Mike’s Test’ %\> in your rails? I have two servers. One of them gives me Mike’s Test The other gives me Mike’s Test The first is what I want. Any ideas? Thanks in advance!

---

## [Alternate display of records](https://www.ruby-forum.com/t/alternate-display-of-records/176595)

<div class="topic-metadata">

**Author:** [@snlsn](https://www.ruby-forum.com/u/snlsn)\
**Replies:** 7\
**Last updated:** [October 2, 2009, 11:11pm UTC](https://www.ruby-forum.com/t/alternate-display-of-records/176595 "2009-10-02T23:11:47Z")

</div>

What is the current best practice for displaying records in alternate ways? This relates to an internal scheduling app I’m trying to get off the ground for our photo studio. I have a model: Assignment I’d like the o…

---

## [Master id or guid](https://www.ruby-forum.com/t/master-id-or-guid/176591)

<div class="topic-metadata">

**Author:** [@andreas](https://www.ruby-forum.com/u/andreas)\
**Replies:** 2\
**Last updated:** [October 2, 2009, 9:22pm UTC](https://www.ruby-forum.com/t/master-id-or-guid/176591 "2009-10-02T21:22:54Z")

</div>

Hi I’ve just started looking into building a rails frontend to a database project I’ve been working on but I need some help with how to convert some parts of the database. The database got a bunch of tables each desc…

---

## [Naming conventions for models / controllers](https://www.ruby-forum.com/t/naming-conventions-for-models-controllers/176596)

<div class="topic-metadata">

**Author:** [@roa](https://www.ruby-forum.com/u/roa)\
**Replies:** 2\
**Last updated:** [October 2, 2009, 8:50pm UTC](https://www.ruby-forum.com/t/naming-conventions-for-models-controllers/176596 "2009-10-02T20:50:02Z")

</div>

Hi, this might be a stupid question, but is there like a naming convention for base models? Lets say you develop an application where custom work is possible. So you create a core for your application. But for the cu…

---

## [In\_place\_edit\_for - non clickable when value is blank](https://www.ruby-forum.com/t/in-place-edit-for-non-clickable-when-value-is-blank/157506)

<div class="topic-metadata">

**Author:** [@yankees26](https://www.ruby-forum.com/u/yankees26)\
**Replies:** 7\
**Last updated:** [October 2, 2009, 8:47pm UTC](https://www.ruby-forum.com/t/in-place-edit-for-non-clickable-when-value-is-blank/157506 "2009-10-02T20:47:06Z")

</div>

A pretty common problem but I haven’t found a solution that works. I’m using in\_place\_editor\_field in my view and all works well when there is data but when the field is blank, I am unable to edit as there is no click…

---

## [CGI::Session::ActiveRecordStore and 2.3.2](https://www.ruby-forum.com/t/cgi-activerecordstore-and-2-3-2/176583)

<div class="topic-metadata">

**Author:** [@jbaty](https://www.ruby-forum.com/u/jbaty)\
**Replies:** 2\
**Last updated:** [October 2, 2009, 8:36pm UTC](https://www.ruby-forum.com/t/cgi-activerecordstore-and-2-3-2/176583 "2009-10-02T20:36:33Z")

</div>

Hi all, Before 2.3.2 I was able to do something like this to get a list of logged-in users: @logged\_in\_users = CGI::Session::ActiveRecordStore::Session.find(:all, :conditions =\> \[“updated\_at \>= ?”, 30.minutes.ago\], :…

---

## [SMS via Skype](https://www.ruby-forum.com/t/sms-via-skype/176577)

<div class="topic-metadata">

**Author:** [@artchrst](https://www.ruby-forum.com/u/artchrst)\
**Replies:** 12\
**Last updated:** [October 2, 2009, 8:26pm UTC](https://www.ruby-forum.com/t/sms-via-skype/176577 "2009-10-02T20:26:39Z")

</div>

Is it possible to send sms via skype account in rails? It seems that skype charge much less than the other sms gateways. Arthur

---

## [Ruby4Skype works?](https://www.ruby-forum.com/t/ruby4skype-works/176588)

<div class="topic-metadata">

**Author:** [@artchrst](https://www.ruby-forum.com/u/artchrst)\
**Replies:** 0\
**Last updated:** [October 2, 2009, 7:15pm UTC](https://www.ruby-forum.com/t/ruby4skype-works/176588 "2009-10-02T19:15:15Z")

</div>

I’ve installed ruby4skype. I have tried a simple function with the methods found from the ruby4skype gems’ lib/sms.rb, trying to send a sms: @sms\_targets =\[’+852123’, ‘+852456’\] @sms\_id, @sms\_status = Skype::SMS.crea…

---

## [Respond\_to and params:format\]](https://www.ruby-forum.com/t/respond-to-and-params-format/176580)

<div class="topic-metadata">

**Author:** [@Gert\_Thiel](https://www.ruby-forum.com/u/Gert_Thiel)\
**Replies:** 1\
**Last updated:** [October 2, 2009, 6:02pm UTC](https://www.ruby-forum.com/t/respond-to-and-params-format/176580 "2009-10-02T18:02:38Z")

</div>

Hoi. I’m creating a configurable export feature for my application’s backend. I have a form that allows administrators the select what data they want to export, how that data should be ordered and in which file forma…

---

## [Version of Engines that's compatible with rails 2.2.2?](https://www.ruby-forum.com/t/version-of-engines-thats-compatible-with-rails-2-2-2/176501)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 2\
**Last updated:** [October 2, 2009, 5:42pm UTC](https://www.ruby-forum.com/t/version-of-engines-thats-compatible-with-rails-2-2-2/176501 "2009-10-02T17:42:44Z")

</div>

Hi - sorry if this has been asked, i searched the archive for 2.2.2 but couldn’t see anything. Anyway - is there a version of Engines compatible with rails 2.2.2? The one i got off github requires 2.3.2 or later. I c…

---

## [Problems with validates\_uniqueness\_of](https://www.ruby-forum.com/t/problems-with-validates-uniqueness-of/176581)

<div class="topic-metadata">

**Author:** [@arosasj](https://www.ruby-forum.com/u/arosasj)\
**Replies:** 0\
**Last updated:** [October 2, 2009, 5:38pm UTC](https://www.ruby-forum.com/t/problems-with-validates-uniqueness-of/176581 "2009-10-02T17:38:13Z")

</div>

Hi to everybody, well i recently became a RoR developer, web i was following the video class from Lynda, and i introduce more code in my aplicacion, my application is a music store web site, ok so i add the funcionali…

---

## [RESTful design](https://www.ruby-forum.com/t/restful-design/176487)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 5\
**Last updated:** [October 2, 2009, 4:45pm UTC](https://www.ruby-forum.com/t/restful-design/176487 "2009-10-02T16:45:20Z")

</div>

I have difficulties to get into restful thinking, so sorry for a possibly stupid question. How do you deal with a product listing which has one interface for admin and another for customers? It needs more methods than…

---

## [\[Rspec\] Using Mocha results in uninitialized constant, using a 'fix' breaks RSpec output](https://www.ruby-forum.com/t/rspec-using-mocha-results-in-uninitialized-constant-using-a-fix-breaks-rspec-output/175195)

<div class="topic-metadata">

**Author:** [@Lb2007](https://www.ruby-forum.com/u/Lb2007)\
**Replies:** 3\
**Last updated:** [October 2, 2009, 4:35pm UTC](https://www.ruby-forum.com/t/rspec-using-mocha-results-in-uninitialized-constant-using-a-fix-breaks-rspec-output/175195 "2009-10-02T16:35:23Z")

</div>

After installation of Mocha (0.9.7), running “script/spec spec” results in a “\`const\_missing’: uninitialized constant Test::Unit::TestResult::TestResultFailureSupport (NameError)” error. (As shown here; Ruby code - 15…

---

## [Databaseless app choices](https://www.ruby-forum.com/t/databaseless-app-choices/176569)

<div class="topic-metadata">

**Author:** [@rhubarb](https://www.ruby-forum.com/u/rhubarb)\
**Replies:** 3\
**Last updated:** [October 2, 2009, 3:55pm UTC](https://www.ruby-forum.com/t/databaseless-app-choices/176569 "2009-10-02T15:55:35Z")

</div>

Hi I want to write a simple Rails app that gets a list (of TFS Workitems) using a Web Service and presents it on a web page to users. I would like to: try and avoid using a DB (for simplicity) have a free text sear…

---

## [Problem with composite primary keys, fixtures](https://www.ruby-forum.com/t/problem-with-composite-primary-keys-fixtures/176551)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 3\
**Last updated:** [October 2, 2009, 3:50pm UTC](https://www.ruby-forum.com/t/problem-with-composite-primary-keys-fixtures/176551 "2009-10-02T15:50:54Z")

</div>

Hi, Rails 2.3.4 Composite Primary Keys 2.3.2 I’m having trouble loading fixture data for models with composite primary keys. NoMethodError: You have a nil object when you didn’t expect it! You might have expected a…

---

## [Warning: already initialized constant](https://www.ruby-forum.com/t/warning-already-initialized-constant/176576)

<div class="topic-metadata">

**Author:** [@Fifigyuri](https://www.ruby-forum.com/u/Fifigyuri)\
**Replies:** 0\
**Last updated:** [October 2, 2009, 3:39pm UTC](https://www.ruby-forum.com/t/warning-already-initialized-constant/176576 "2009-10-02T15:39:46Z")

</div>

Hi, Every time I start the console, run tests or start any rake thing I get this at the beginning: /home/sweethome/railsproject/vendor/rails/railties/lib/rails/ version.rb:3: warning: already initialized constant MAJ…

---

## [Stumped by scheduler](https://www.ruby-forum.com/t/stumped-by-scheduler/176568)

<div class="topic-metadata">

**Author:** [@snlsn](https://www.ruby-forum.com/u/snlsn)\
**Replies:** 2\
**Last updated:** [October 2, 2009, 2:41pm UTC](https://www.ruby-forum.com/t/stumped-by-scheduler/176568 "2009-10-02T14:41:13Z")

</div>

I’m an amateur coder. Know enough to get into trouble, not enough to get out of it. I’m trying to make an office app for the photo studio I work for. Part of this app is a scheduler. Our assignments typically do not …

---

## [Problems switching language after search form resuls](https://www.ruby-forum.com/t/problems-switching-language-after-search-form-resuls/176573)

<div class="topic-metadata">

**Author:** [@mitch\_newbie](https://www.ruby-forum.com/u/mitch_newbie)\
**Replies:** 0\
**Last updated:** [October 2, 2009, 1:02pm UTC](https://www.ruby-forum.com/t/problems-switching-language-after-search-form-resuls/176573 "2009-10-02T13:02:51Z")

</div>

I have a form that allows the user to search for a manufacturer. It works fine. Now I am making the site in two languages French and English. I have the basics of I18ln working as suggested in Agile Web D. book. Howe…

---

## [Retrieving object from a user](https://www.ruby-forum.com/t/retrieving-object-from-a-user/176574)

<div class="topic-metadata">

**Author:** [@kinunt](https://www.ruby-forum.com/u/kinunt)\
**Replies:** 1\
**Last updated:** [October 2, 2009, 1:01pm UTC](https://www.ruby-forum.com/t/retrieving-object-from-a-user/176574 "2009-10-02T13:01:43Z")

</div>

Hi, I would like which is the best way to implement this: I have an application with invoices, lines, accouts, etc… lots of models. Each element of a model belongs to a different user so when a user is logged he will…

---

## [Strange problem with "and" - "&&"](https://www.ruby-forum.com/t/strange-problem-with-and/176533)

<div class="topic-metadata">

**Author:** [@johndel](https://www.ruby-forum.com/u/johndel)\
**Replies:** 9\
**Last updated:** [October 2, 2009, 10:40am UTC](https://www.ruby-forum.com/t/strange-problem-with-and/176533 "2009-10-02T10:40:38Z")

</div>

Hello I have a strange problem with this code: \<%unless (@students.empty? and params\[:commit\].nil?) %\> \<%=“test”%\> \<%= render :partial =\> ‘results’ %\> \<% end %\> Even though in some cases @students.empty? returns …

---

## [Is a given timezone in day light savings time?](https://www.ruby-forum.com/t/is-a-given-timezone-in-day-light-savings-time/176548)

<div class="topic-metadata">

**Author:** [@tashfeen.ekram](https://www.ruby-forum.com/u/tashfeen.ekram)\
**Replies:** 7\
**Last updated:** [October 2, 2009, 10:08am UTC](https://www.ruby-forum.com/t/is-a-given-timezone-in-day-light-savings-time/176548 "2009-10-02T10:08:25Z")

</div>

Is there a way to figure out if a given timezone is in daylight savings? I have a reminder system setup that allows users to setup reminders (daily, weekly, monthly, or yearly) however it does not currently account f…

---

## [Junior RoR Programmers](https://www.ruby-forum.com/t/junior-ror-programmers/176567)

<div class="topic-metadata">

**Author:** [@Recruiting](https://www.ruby-forum.com/u/Recruiting)\
**Replies:** 0\
**Last updated:** [October 2, 2009, 9:50am UTC](https://www.ruby-forum.com/t/junior-ror-programmers/176567 "2009-10-02T09:50:16Z")

</div>

Must have 1 year of RoR programming experieince Position is located in Austin Texas $30-40k Email resume or referals to removed\_email\_address@domain.invalid

---

## [Learn Ruby on Rails with Sarah Allen one of the contributors of OpenLazlo](https://www.ruby-forum.com/t/learn-ruby-on-rails-with-sarah-allen-one-of-the-contributors-of-openlazlo/176566)

<div class="topic-metadata">

**Author:** [@Rooz](https://www.ruby-forum.com/u/Rooz)\
**Replies:** 0\
**Last updated:** [October 2, 2009, 9:50am UTC](https://www.ruby-forum.com/t/learn-ruby-on-rails-with-sarah-allen-one-of-the-contributors-of-openlazlo/176566 "2009-10-02T09:50:15Z")

</div>

Hi All, I have a 20% off coupon for this kick ass RoR training class, email me if you are interested: rooz (at) Marakana (dot) com \*\*\*Ruby on Rails training course with Sarah A. In this 4-day Marakana Ruby on Rails T…

---

## [StyleSheets on Ruby on Rails](https://www.ruby-forum.com/t/stylesheets-on-ruby-on-rails/176494)

<div class="topic-metadata">

**Author:** [@metdos](https://www.ruby-forum.com/u/metdos)\
**Replies:** 2\
**Last updated:** [October 2, 2009, 9:13am UTC](https://www.ruby-forum.com/t/stylesheets-on-ruby-on-rails/176494 "2009-10-02T09:13:58Z")

</div>

I’m making some changes on Redmine Project on my local, I need to alter appearance, so I changed application.css, then I realized that I need changes in only some views, so let application.css to be same, but I copy m…

---

## [Has\_one :through](https://www.ruby-forum.com/t/has-one-through/176549)

<div class="topic-metadata">

**Author:** [@mlittle](https://www.ruby-forum.com/u/mlittle)\
**Replies:** 6\
**Last updated:** [October 2, 2009, 8:08am UTC](https://www.ruby-forum.com/t/has-one-through/176549 "2009-10-02T08:08:59Z")

</div>

Another newbie question by me… I have this: class User \< ActiveRecord::Base … has\_one :book, :through =\> :library … end class Library \< ActiveRecord::Base has\_one :book, :dependent =\> :destroy end class Library…

---

## [Polymorphic belongs\_to](https://www.ruby-forum.com/t/polymorphic-belongs-to/176563)

<div class="topic-metadata">

**Author:** [@thelemcke](https://www.ruby-forum.com/u/thelemcke)\
**Replies:** 0\
**Last updated:** [October 2, 2009, 7:13am UTC](https://www.ruby-forum.com/t/polymorphic-belongs-to/176563 "2009-10-02T07:13:58Z")

</div>

I am creating an appointment system where appointments can be made for current users or for non-registered users. I need a way to create a appointment that references a client with polymorphic association. I use a P…

---

## [Sqlite limit](https://www.ruby-forum.com/t/sqlite-limit/176477)

<div class="topic-metadata">

**Author:** [@kashyap](https://www.ruby-forum.com/u/kashyap)\
**Replies:** 3\
**Last updated:** [October 2, 2009, 7:13am UTC](https://www.ruby-forum.com/t/sqlite-limit/176477 "2009-10-02T07:13:23Z")

</div>

Hi All, I am working on a POC that I’d like to show a group of 10 to 15 folks. I was wondering if sqlite would do for db with about 20 people hitting on the application. Does sqlite locking the entire db while writing …

---

## [Options](https://www.ruby-forum.com/t/options/176560)

<div class="topic-metadata">

**Author:** [@corneto82](https://www.ruby-forum.com/u/corneto82)\
**Replies:** 0\
**Last updated:** [October 2, 2009, 5:57am UTC](https://www.ruby-forum.com/t/options/176560 "2009-10-02T05:57:10Z")

</div>

Hi Group! I started working with Rails about a week ago. I created this app that acts pretty much like a public blog. So far users can register for an account with Authlogic (http://github.com/ binarylogic/authlogic).…

---

## [Routing/format (I'm lost.)](https://www.ruby-forum.com/t/routing-format-im-lost/176525)

<div class="topic-metadata">

**Author:** [@djames](https://www.ruby-forum.com/u/djames)\
**Replies:** 5\
**Last updated:** [October 2, 2009, 5:41am UTC](https://www.ruby-forum.com/t/routing-format-im-lost/176525 "2009-10-02T05:41:29Z")

</div>

I understand that the default Rails routing matches URLs with the form: /controller/action/id.format Default values exist for each of the parts to the right of the controller. I also understand that the default form…

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

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