# Rails

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

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

---

## [Job: Video On Demand - Lead Web Tools Developer](https://www.ruby-forum.com/t/job-video-on-demand-lead-web-tools-developer/121595)

<div class="topic-metadata">

**Author:** [@onsiterecruiter](https://www.ruby-forum.com/u/onsiterecruiter)\
**Replies:** 0\
**Last updated:** [November 29, 2007, 4:12am UTC](https://www.ruby-forum.com/t/job-video-on-demand-lead-web-tools-developer/121595 "2007-11-29T04:12:32Z")

</div>

Lead Operations Developer Reports to: Director, Network Operations Company Background With the worldwide explosion of digital media throughout the world, Digital Fountain is growing at a record pace. Over the last ye…

---

## [tinyMCE issues](https://www.ruby-forum.com/t/tinymce-issues/121588)

<div class="topic-metadata">

**Author:** [@flamingsole](https://www.ruby-forum.com/u/flamingsole)\
**Replies:** 1\
**Last updated:** [November 29, 2007, 4:11am UTC](https://www.ruby-forum.com/t/tinymce-issues/121588 "2007-11-29T04:11:30Z")

</div>

Hello, In using the tinyMCE plugin, I’m having issues with the html tags being entirely stripped out before being stored in the database. Everything appears correctly in the textarea, with lists or bold or italics, o…

---

## [Taking key/value pairs and formating into string](https://www.ruby-forum.com/t/taking-key-value-pairs-and-formating-into-string/121593)

<div class="topic-metadata">

**Author:** [@mifi](https://www.ruby-forum.com/u/mifi)\
**Replies:** 0\
**Last updated:** [November 29, 2007, 4:02am UTC](https://www.ruby-forum.com/t/taking-key-value-pairs-and-formating-into-string/121593 "2007-11-29T04:02:32Z")

</div>

Hi all, I am really new to Ruby so I haven’t figured out all of the iterative functions yet, but here is my situation and I appreciate your input. I am trying to utilize a custom method inside my application helper th…

---

## [Scaffold question](https://www.ruby-forum.com/t/scaffold-question/121586)

<div class="topic-metadata">

**Author:** [@emarthinsen](https://www.ruby-forum.com/u/emarthinsen)\
**Replies:** 1\
**Last updated:** [November 29, 2007, 3:39am UTC](https://www.ruby-forum.com/t/scaffold-question/121586 "2007-11-29T03:39:48Z")

</div>

Hello- I have a class called Product that has a relationship with another class called Category. The Product “belongs\_to :category” and the Category “has\_many :products”. In my admin controller for Products, which I’…

---

## [Can't update ActiveSupport gem](https://www.ruby-forum.com/t/cant-update-activesupport-gem/121571)

<div class="topic-metadata">

**Author:** [@stasch](https://www.ruby-forum.com/u/stasch)\
**Replies:** 2\
**Last updated:** [November 29, 2007, 2:19am UTC](https://www.ruby-forum.com/t/cant-update-activesupport-gem/121571 "2007-11-29T02:19:08Z")

</div>

I’m getting the message ERROR: While executing gem … (ArgumentError) string contains null byte My RAILS implementation is now completely out of sync. All other gems are updated to latest except ActiveSupport. rake…

---

## [Is the first Agile book still relevant?](https://www.ruby-forum.com/t/is-the-first-agile-book-still-relevant/121534)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 9\
**Last updated:** [November 29, 2007, 2:14am UTC](https://www.ruby-forum.com/t/is-the-first-agile-book-still-relevant/121534 "2007-11-29T02:14:27Z")

</div>

Hi there, I bought the first Agile RoR book a couple years ago and went through about half of it. I now have a project where I would like to try our RoR again. But I don’t know if my book is now out of date. I assume …

---

## [Create rails app fails](https://www.ruby-forum.com/t/create-rails-app-fails/121558)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [November 29, 2007, 2:02am UTC](https://www.ruby-forum.com/t/create-rails-app-fails/121558 "2007-11-29T02:02:11Z")

</div>

Hi there, so I decided to go ahead and go through Rolling With Ruby on Rails, the updated version. I got InstantRails installed and pulled the cookbook up, so it all seems to be working. However, when I navigate to C…

---

## [Ruby on Rail Job- Chicago](https://www.ruby-forum.com/t/ruby-on-rail-job-chicago/121574)

<div class="topic-metadata">

**Author:** [@cassie18400](https://www.ruby-forum.com/u/cassie18400)\
**Replies:** 1\
**Last updated:** [November 29, 2007, 1:56am UTC](https://www.ruby-forum.com/t/ruby-on-rail-job-chicago/121574 "2007-11-29T01:56:46Z")

</div>

I currently have a contract position in Chicago, IL. It goes until May 2008. Looking for backend Java Developer with experience in Rubyon Rails, MySQL, and UNIX. If any one is interested in it please contact me at: …

---

## [Methods in models dont work for views?](https://www.ruby-forum.com/t/methods-in-models-dont-work-for-views/121554)

<div class="topic-metadata">

**Author:** [@tomn](https://www.ruby-forum.com/u/tomn)\
**Replies:** 5\
**Last updated:** [November 28, 2007, 11:56pm UTC](https://www.ruby-forum.com/t/methods-in-models-dont-work-for-views/121554 "2007-11-28T23:56:30Z")

</div>

This question is more towards understanding how things work rather than trying to just get something to work. I have something like this in my user model. def full\_name first\_name + " " + last\_name end This works f…

---

## [Mongel stops on first request](https://www.ruby-forum.com/t/mongel-stops-on-first-request/121527)

<div class="topic-metadata">

**Author:** [@simonsaid](https://www.ruby-forum.com/u/simonsaid)\
**Replies:** 1\
**Last updated:** [November 28, 2007, 11:30pm UTC](https://www.ruby-forum.com/t/mongel-stops-on-first-request/121527 "2007-11-28T23:30:10Z")

</div>

Hi, I have just upgraded from WEBRick to Mongrel and now when I start my rails server with script/server Mongrel is used instead. This is fine until I try to navigate to a page when it just stops. It looks like a dep…

---

## [Do changes on 'temporary' record - save back to table when finished](https://www.ruby-forum.com/t/do-changes-on-temporary-record-save-back-to-table-when-finished/121568)

<div class="topic-metadata">

**Author:** [@harryv](https://www.ruby-forum.com/u/harryv)\
**Replies:** 1\
**Last updated:** [November 28, 2007, 11:30pm UTC](https://www.ruby-forum.com/t/do-changes-on-temporary-record-save-back-to-table-when-finished/121568 "2007-11-28T23:30:10Z")

</div>

Hello I am doing an app, where the user can edit a ‘Story’. Each story contains a number of Sections (that in return contains a number of Routes each, whatsoever). Using AJAX the user can can choose to edit a Story, …

---

## [Converting times for db query](https://www.ruby-forum.com/t/converting-times-for-db-query/121564)

<div class="topic-metadata">

**Author:** [@blinking\_bear](https://www.ruby-forum.com/u/blinking_bear)\
**Replies:** 4\
**Last updated:** [November 28, 2007, 11:26pm UTC](https://www.ruby-forum.com/t/converting-times-for-db-query/121564 "2007-11-28T23:26:05Z")

</div>

Picking up a rails project for the first time in a few months and drawing a blank here… I want to compare a created\_at datetime field in a find() call @users\_week = User.count( :conditions =\> “created\_at \> ‘#{7.days.…

---

## [Moving from rails 1.2 -\> 2.0 RC](https://www.ruby-forum.com/t/moving-from-rails-1-2-2-0-rc/121473)

<div class="topic-metadata">

**Author:** [@Tarscher](https://www.ruby-forum.com/u/Tarscher)\
**Replies:** 3\
**Last updated:** [November 28, 2007, 11:09pm UTC](https://www.ruby-forum.com/t/moving-from-rails-1-2-2-0-rc/121473 "2007-11-28T23:09:53Z")

</div>

Hi all, I just installed rails 2.0 RC. How do I make that my application use the new rails 2.0? Thanks Stijn

---

## [Routing error after upgrading from 1.1 to 1.2](https://www.ruby-forum.com/t/routing-error-after-upgrading-from-1-1-to-1-2/121562)

<div class="topic-metadata">

**Author:** [@syg6](https://www.ruby-forum.com/u/syg6)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 10:59pm UTC](https://www.ruby-forum.com/t/routing-error-after-upgrading-from-1-1-to-1-2/121562 "2007-11-28T22:59:08Z")

</div>

I’ve just upgraded to the newest version of rails and was testing my existing code and ran into an odd error. I have a few ajax calls, and in one section I let users add and remove jobs from a list. For some reason, …

---

## [Remote call help](https://www.ruby-forum.com/t/remote-call-help/121561)

<div class="topic-metadata">

**Author:** [@anthony](https://www.ruby-forum.com/u/anthony)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 10:53pm UTC](https://www.ruby-forum.com/t/remote-call-help/121561 "2007-11-28T22:53:14Z")

</div>

Here is my setup: I don’t know how to use HTML on these groups, but find my code below. def change\_calendar @school = School.find\_by\_name(params\[:school\]) @events = Event.find(:all, :conditions =\> \['school\_id …

---

## [Nested sets from database](https://www.ruby-forum.com/t/nested-sets-from-database/121500)

<div class="topic-metadata">

**Author:** [@Tonkatsufan](https://www.ruby-forum.com/u/Tonkatsufan)\
**Replies:** 6\
**Last updated:** [November 28, 2007, 10:46pm UTC](https://www.ruby-forum.com/t/nested-sets-from-database/121500 "2007-11-28T22:46:13Z")

</div>

Hi, I’d like to use AR’s find to retrieve a nested dataset from the database by grouping on a column. Of course, when I group on the column, the children are not in the result set, so I was wondering what’s the best…

---

## [Where do I start?](https://www.ruby-forum.com/t/where-do-i-start/121537)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [November 28, 2007, 10:18pm UTC](https://www.ruby-forum.com/t/where-do-i-start/121537 "2007-11-28T22:18:07Z")

</div>

Ok, in line with my last post - I have the original Agile book, and I’ve been googling tutorials and whatnot. From what I can see, the ONLamp.com tutorial seems popular (Rolling with Ruby) - but it is 2 years old as w…

---

## [Redirect\_to :host Security Error](https://www.ruby-forum.com/t/redirect-to-host-security-error/121555)

<div class="topic-metadata">

**Author:** [@jonlog](https://www.ruby-forum.com/u/jonlog)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 10:08pm UTC](https://www.ruby-forum.com/t/redirect-to-host-security-error/121555 "2007-11-28T22:08:20Z")

</div>

I’m using the redirect\_to method with a :host parameter to change subdomains in a few places in my app, in one place it redirects to the url with the correct subdomain perfectly but in the current instance rails spits…

---

## [Betternestedset outside of rails](https://www.ruby-forum.com/t/betternestedset-outside-of-rails/121552)

<div class="topic-metadata">

**Author:** [@minkymorgan](https://www.ruby-forum.com/u/minkymorgan)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 9:54pm UTC](https://www.ruby-forum.com/t/betternestedset-outside-of-rails/121552 "2007-11-28T21:54:38Z")

</div>

Hi I’ve been putting together database scripts that rely on Active Record outside of rails - this link was very helpful in getting started: http://ollehost.dk/blog/?p=214 Now though, I’m having a problem getting this…

---

## [Self destruct your application?](https://www.ruby-forum.com/t/self-destruct-your-application/121357)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 19\
**Last updated:** [November 28, 2007, 9:53pm UTC](https://www.ruby-forum.com/t/self-destruct-your-application/121357 "2007-11-28T21:53:27Z")

</div>

I have dealt with some clients in the past, got screwed a couple of times, etc. Yes I have contracts, etc. Some of these jobs are so small that they are not really worth taking legal action. I want to develop a plugin…

---

## [Where to override ActiveRecord::ConnectionAdapters::SQLServerAdapter?](https://www.ruby-forum.com/t/where-to-override-activerecord-sqlserveradapter/121548)

<div class="topic-metadata">

**Author:** [@student](https://www.ruby-forum.com/u/student)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 9:15pm UTC](https://www.ruby-forum.com/t/where-to-override-activerecord-sqlserveradapter/121548 "2007-11-28T21:15:25Z")

</div>

I’m working on an existing global database running on MS SQL Server. The appropriate primary key is uniqueidentifier, so I want to set ActiveRecord::ConnectionAdapters::SQLServerAdapter#native\_database\_types\[:primary\_k…

---

## [Exploration of possible refactorings for Rails 2.0](https://www.ruby-forum.com/t/exploration-of-possible-refactorings-for-rails-2-0/121438)

<div class="topic-metadata">

**Author:** [@Sven\_F](https://www.ruby-forum.com/u/Sven_F)\
**Replies:** 7\
**Last updated:** [November 28, 2007, 9:14pm UTC](https://www.ruby-forum.com/t/exploration-of-possible-refactorings-for-rails-2-0/121438 "2007-11-28T21:14:49Z")

</div>

\[sending this to engine-developers, please advise me if this is for some reason not correct\] Hi John, to get a better overview how things are interrelated in the current implementation I’ve gone through a first coars…

---

## [Accented characters in irb on the mac](https://www.ruby-forum.com/t/accented-characters-in-irb-on-the-mac/121538)

<div class="topic-metadata">

**Author:** [@edlau](https://www.ruby-forum.com/u/edlau)\
**Replies:** 3\
**Last updated:** [November 28, 2007, 8:58pm UTC](https://www.ruby-forum.com/t/accented-characters-in-irb-on-the-mac/121538 "2007-11-28T20:58:45Z")

</div>

Hello. I’m unable to type accented characters in irb (as well as Rails’ script/console) on the Mac running Leopard (10.5.1). I’ve done a search on the web and have not found mention of this problem, so perhaps I’m mis…

---

## [Rake session problem](https://www.ruby-forum.com/t/rake-session-problem/121545)

<div class="topic-metadata">

**Author:** [@matt](https://www.ruby-forum.com/u/matt)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 8:46pm UTC](https://www.ruby-forum.com/t/rake-session-problem/121545 "2007-11-28T20:46:43Z")

</div>

Im currently working through the pragmatic rails book and have come unstuck when using the following command: rake db:sessions:create This command creates the rake file, which contains the code needed to create the t…

---

## [Non-SQL conditions in finder?](https://www.ruby-forum.com/t/non-sql-conditions-in-finder/121544)

<div class="topic-metadata">

**Author:** [@eric99](https://www.ruby-forum.com/u/eric99)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 8:35pm UTC](https://www.ruby-forum.com/t/non-sql-conditions-in-finder/121544 "2007-11-28T20:35:00Z")

</div>

find lets me specify SQL conditions like this: Product.find :all, :conditions =\> “price \> 100” where price is a SQL column. But in my Product model, price is actually a virtual attribute that’s calculated based on th…

---

## [How do I know when a file is fully created](https://www.ruby-forum.com/t/how-do-i-know-when-a-file-is-fully-created/121540)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [November 28, 2007, 8:20pm UTC](https://www.ruby-forum.com/t/how-do-i-know-when-a-file-is-fully-created/121540 "2007-11-28T20:20:19Z")

</div>

Hi, I have a rails app, that lets user submit data. I use the data to tell another app to create a file. I can’t get this app to tell me when it is finished with the file. So is there any way in Rails to check if ano…

---

## [OT: Re: \[Rails\] OpenHash class I thought I would share](https://www.ruby-forum.com/t/ot-re-rails-openhash-class-i-thought-i-would-share/121541)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 8:13pm UTC](https://www.ruby-forum.com/t/ot-re-rails-openhash-class-i-thought-i-would-share/121541 "2007-11-28T20:13:17Z")

</div>

On Nov 28, 2007 10:43 AM, uncle removed\_email\_address@domain.invalid wrote: end end (This is off-topic for the rails list). IMO, subclassing Hash like this isn’t a good idea. Hash has too many methods to get inter…

---

## [Associations problem](https://www.ruby-forum.com/t/associations-problem/121425)

<div class="topic-metadata">

**Author:** [@whitewolfaustria](https://www.ruby-forum.com/u/whitewolfaustria)\
**Replies:** 3\
**Last updated:** [November 28, 2007, 8:02pm UTC](https://www.ruby-forum.com/t/associations-problem/121425 "2007-11-28T20:02:08Z")

</div>

Hi all, I am creating a table that defines permissions to certain group or person. Classes class Report\_membership \< ActiveRecord::Base belongs\_to :member, :foreign\_key =\> :member\_id, :class\_name =\> ‘Person’ belon…

---

## [Please solve my rails problem](https://www.ruby-forum.com/t/please-solve-my-rails-problem/121465)

<div class="topic-metadata">

**Author:** [@manjularaj](https://www.ruby-forum.com/u/manjularaj)\
**Replies:** 9\
**Last updated:** [November 28, 2007, 7:47pm UTC](https://www.ruby-forum.com/t/please-solve-my-rails-problem/121465 "2007-11-28T19:47:31Z")

</div>

Hi, In this controller i’ve to put the condition for attandance. I’m doing attandance application. In this when the user login with username and password in my attandance table their attandance will marked. now i want …

---

## [Multiple Custom Form Builders](https://www.ruby-forum.com/t/multiple-custom-form-builders/121535)

<div class="topic-metadata">

**Author:** [@enduro](https://www.ruby-forum.com/u/enduro)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 7:38pm UTC](https://www.ruby-forum.com/t/multiple-custom-form-builders/121535 "2007-11-28T19:38:21Z")

</div>

Hi What’s the best approach if you need the functionality of several custom form builders to create a single form? Example: You want to create a form using the labelling\_form\_helper plugin and at the same time your o…

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

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