# Rails

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

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

---

## [Soap](https://www.ruby-forum.com/t/soap/177073)

<div class="topic-metadata">

**Author:** [@soderic](https://www.ruby-forum.com/u/soderic)\
**Replies:** 1\
**Last updated:** [October 13, 2009, 6:49pm UTC](https://www.ruby-forum.com/t/soap/177073 "2009-10-13T18:49:42Z")

</div>

I have a project where I need to access NetSuite’s SuiteTalk platform which uses a SOAP based web service. What would be the best way / Rails Way to go about this? Has anyone had any experience using soap4r? Any inf…

---

## [Rails Scaffold for Existing Model](https://www.ruby-forum.com/t/rails-scaffold-for-existing-model/177135)

<div class="topic-metadata">

**Author:** [@raji](https://www.ruby-forum.com/u/raji)\
**Replies:** 2\
**Last updated:** [October 13, 2009, 5:45pm UTC](https://www.ruby-forum.com/t/rails-scaffold-for-existing-model/177135 "2009-10-13T17:45:48Z")

</div>

I’ve got a Rails app with a ‘User’ model and a ‘users’ controller. The users controller handles user registration in the Rails app. I’d like to build a user admin feature using a namespaced controller titled ‘admin/us…

---

## [Default .rjs](https://www.ruby-forum.com/t/default-rjs/177092)

<div class="topic-metadata">

**Author:** [@jhaagmans](https://www.ruby-forum.com/u/jhaagmans)\
**Replies:** 5\
**Last updated:** [October 13, 2009, 4:40pm UTC](https://www.ruby-forum.com/t/default-rjs/177092 "2009-10-13T16:40:50Z")

</div>

Hi, I’ve asked this before, but I wasn’t sure what I was looking for and what the problem was back then. What I want is to be able to tell Rails that after -every- AJAX- request, some default RJS gets executed. I’ve …

---

## [Formatting Dates in my view](https://www.ruby-forum.com/t/formatting-dates-in-my-view/177171)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 6\
**Last updated:** [October 13, 2009, 4:39pm UTC](https://www.ruby-forum.com/t/formatting-dates-in-my-view/177171 "2009-10-13T16:39:04Z")

</div>

Hi, Currently my dates look like this: 2009-10-10 00:55:37 UTC I want to format them in my view to look like this: 10 Oct 2009 00:55 Is it possible to do the formatting in the view using the to\_s method? Thanks, Dav…

---

## [ODBC with Snow Leopard](https://www.ruby-forum.com/t/odbc-with-snow-leopard/177180)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [October 13, 2009, 4:32pm UTC](https://www.ruby-forum.com/t/odbc-with-snow-leopard/177180 "2009-10-13T16:32:38Z")

</div>

Can someone please post or refer to detailed instructions for getting Rails going on Snow Leopard with ODBC to a MS SQL server? The Rails Wiki is pretty bad and I can’t seem to get it going! Thanks, Tom

---

## [Il.add\_index question](https://www.ruby-forum.com/t/il-add-index-question/177201)

<div class="topic-metadata">

**Author:** [@steveb56](https://www.ruby-forum.com/u/steveb56)\
**Replies:** 4\
**Last updated:** [October 13, 2009, 4:20pm UTC](https://www.ruby-forum.com/t/il-add-index-question/177201 "2009-10-13T16:20:20Z")

</div>

I have a table that is modeling a friendship between two players. I’d like it so that there can only be one record for this friendship in the table. I have added an index to the table to make sure that a record is un…

---

## [Using transaction in non-active record model](https://www.ruby-forum.com/t/using-transaction-in-non-active-record-model/177193)

<div class="topic-metadata">

**Author:** [@diabolist](https://www.ruby-forum.com/u/diabolist)\
**Replies:** 2\
**Last updated:** [October 13, 2009, 4:06pm UTC](https://www.ruby-forum.com/t/using-transaction-in-non-active-record-model/177193 "2009-10-13T16:06:17Z")

</div>

I want to use logical models to aggregate data to present information to the user. For example, I have a controller: class OrdersController \< ApplicationController def end

---

## [Script sometimes sends random data to database?](https://www.ruby-forum.com/t/script-sometimes-sends-random-data-to-database/177218)

<div class="topic-metadata">

**Author:** [@trevoke](https://www.ruby-forum.com/u/trevoke)\
**Replies:** 0\
**Last updated:** [October 13, 2009, 3:51pm UTC](https://www.ruby-forum.com/t/script-sometimes-sends-random-data-to-database/177218 "2009-10-13T15:51:48Z")

</div>

I use the rufus-scheduler to execute jobs within my Rails application. I have the following code: http://pastie.org/652937 This is run every ~10 min. The database is mySQL, just in case it matters. The data that gets…

---

## [Empty parameter submitted but .nil failed to detect it](https://www.ruby-forum.com/t/empty-parameter-submitted-but-nil-failed-to-detect-it/177216)

<div class="topic-metadata">

**Author:** [@ct9a](https://www.ruby-forum.com/u/ct9a)\
**Replies:** 3\
**Last updated:** [October 13, 2009, 3:08pm UTC](https://www.ruby-forum.com/t/empty-parameter-submitted-but-nil-failed-to-detect-it/177216 "2009-10-13T15:08:55Z")

</div>

hi guys i have a form which has an element, “category id”. When i submit it with values, i can see param(:category) with a value (as i print out that value in the controller’s method. Anyway, when i submit my form wi…

---

## [How to protect against DoS?](https://www.ruby-forum.com/t/how-to-protect-against-dos/176998)

<div class="topic-metadata">

**Author:** [@MaurSSS\_cio\_Szabo](https://www.ruby-forum.com/u/MaurSSS_cio_Szabo)\
**Replies:** 13\
**Last updated:** [October 13, 2009, 3:08pm UTC](https://www.ruby-forum.com/t/how-to-protect-against-dos/176998 "2009-10-13T15:08:46Z")

</div>

Hello, folks. We have a system that is used by all students on the university. Problem is, when the system is overloaded, people keep strinking F5, and eventually things become too slow to be usable (sometimes, even …

---

## [Proper Way to Force Model to be Creation-time Only Member of another](https://www.ruby-forum.com/t/proper-way-to-force-model-to-be-creation-time-only-member-of-another/177215)

<div class="topic-metadata">

**Author:** [@ambrice](https://www.ruby-forum.com/u/ambrice)\
**Replies:** 0\
**Last updated:** [October 13, 2009, 2:54pm UTC](https://www.ruby-forum.com/t/proper-way-to-force-model-to-be-creation-time-only-member-of-another/177215 "2009-10-13T14:54:52Z")

</div>

Hi all, What is the proper way to do this. I have a Bundle model. And I wish for it to be able to have many Products. But I wish that the products that a bundle has only be able to be set at the creation time of th…

---

## [How To Unlock Locked iPod](https://www.ruby-forum.com/t/how-to-unlock-locked-ipod/177211)

<div class="topic-metadata">

**Author:** [@stimpy](https://www.ruby-forum.com/u/stimpy)\
**Replies:** 0\
**Last updated:** [October 13, 2009, 1:21pm UTC](https://www.ruby-forum.com/t/how-to-unlock-locked-ipod/177211 "2009-10-13T13:21:47Z")

</div>

How To Unlock Locked iPod http://bit.ly/hddpp http://bit.ly/hddpp How To Unlock Locked iPod --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to …

---

## [Cms system](https://www.ruby-forum.com/t/cms-system/177210)

<div class="topic-metadata">

**Author:** [@Trausti\_Thor\_J](https://www.ruby-forum.com/u/Trausti_Thor_J)\
**Replies:** 0\
**Last updated:** [October 13, 2009, 1:15pm UTC](https://www.ruby-forum.com/t/cms-system/177210 "2009-10-13T13:15:55Z")

</div>

Hi All, I am looking for some system written in Rails (of course) that is similar to Joomla or Liferay or ezpublish. I have only found a few mentioned on the http://www.ajaxlines.com/ajax/stuff/article/top\_ruby\_cms.…

---

## [A simple form](https://www.ruby-forum.com/t/a-simple-form/177204)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 5\
**Last updated:** [October 13, 2009, 1:02pm UTC](https://www.ruby-forum.com/t/a-simple-form/177204 "2009-10-13T13:02:07Z")

</div>

I’m a bit confused on how to write a simple form. But not a form\_tag and not using RESTful. I would like to be able to design without RESTful design. I’ve used it a bit but don’t see the point. It’s complicating thing…

---

## [WEBrick crash](https://www.ruby-forum.com/t/webrick-crash/177206)

<div class="topic-metadata">

**Author:** [@fiddler](https://www.ruby-forum.com/u/fiddler)\
**Replies:** 0\
**Last updated:** [October 13, 2009, 12:07pm UTC](https://www.ruby-forum.com/t/webrick-crash/177206 "2009-10-13T12:07:21Z")

</div>

Hi all, Using Rails 2.1.1 and Ruby 1.8.6, WEBrick crashes at first request with the following trace : /usr/lib/ruby/1.8/webrick/server.rb:162: \[BUG\] Segmentation fault My app used to work well, and this error appeare…

---

## [Single Table Inheritance (STI) Broken: NameError](https://www.ruby-forum.com/t/single-table-inheritance-sti-broken-nameerror/177202)

<div class="topic-metadata">

**Author:** [@novaruby](https://www.ruby-forum.com/u/novaruby)\
**Replies:** 2\
**Last updated:** [October 13, 2009, 11:32am UTC](https://www.ruby-forum.com/t/single-table-inheritance-sti-broken-nameerror/177202 "2009-10-13T11:32:20Z")

</div>

Some how I’m getting NameError: uninitialized constant when accessing a child models that inherits form the parent model. However, if I access the parent model first, then the child model is resolved. What am I doing…

---

## [Invitation to connect on LinkedIn](https://www.ruby-forum.com/t/invitation-to-connect-on-linkedin/177205)

<div class="topic-metadata">

**Author:** [@F\_fireflyman](https://www.ruby-forum.com/u/F_fireflyman)\
**Replies:** 0\
**Last updated:** [October 13, 2009, 11:13am UTC](https://www.ruby-forum.com/t/invitation-to-connect-on-linkedin/177205 "2009-10-13T11:13:35Z")

</div>

LinkedIn F fireflyman requested to add you as a connection on LinkedIn: Mitin, I’d like to add you to my professional network on LinkedIn. F Accept invitation from F fireflyman View invitation from F fireflyman …

---

## [How to test background jobs?](https://www.ruby-forum.com/t/how-to-test-background-jobs/177203)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 0\
**Last updated:** [October 13, 2009, 10:33am UTC](https://www.ruby-forum.com/t/how-to-test-background-jobs/177203 "2009-10-13T10:33:52Z")

</div>

When a model gets created, it requires some processing handled by a background job. How can I test it in such case?

---

## [Rake test vs rake test RAILS\_ENV=test](https://www.ruby-forum.com/t/rake-test-vs-rake-test-rails-env-test/177187)

<div class="topic-metadata">

**Author:** [@ate50eggs](https://www.ruby-forum.com/u/ate50eggs)\
**Replies:** 1\
**Last updated:** [October 13, 2009, 10:19am UTC](https://www.ruby-forum.com/t/rake-test-vs-rake-test-rails-env-test/177187 "2009-10-13T10:19:32Z")

</div>

Is it bad to invoke ‘rake test’ with RAILS\_ENV=test? I get significantly different results when I do or don’t. When I don’t include a RAILS\_ENV, the migration check is done against my development profile, but the test…

---

## [When and how to use ActiveRecord::Migration](https://www.ruby-forum.com/t/when-and-how-to-use-activerecord-migration/175967)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 3\
**Last updated:** [October 13, 2009, 10:09am UTC](https://www.ruby-forum.com/t/when-and-how-to-use-activerecord-migration/175967 "2009-10-13T10:09:11Z")

</div>

Interestingly, the text book Practical Ruby Gems http://www.apress.com/book/view/9781590598115 listing 5-1 uses ActiveRecord::Base wheras ActiveRecord::Migration would give more flexibility, right? How would I impl…

---

## [Why a nil date makes I18n.l fail?](https://www.ruby-forum.com/t/why-a-nil-date-makes-i18n-l-fail/177178)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 2\
**Last updated:** [October 13, 2009, 10:00am UTC](https://www.ruby-forum.com/t/why-a-nil-date-makes-i18n-l-fail/177178 "2009-10-13T10:00:24Z")

</div>

I’s all in the title! I find it very painful, to always have to supply a date so that I18n.l doesn’t miserably fail. Why doesn’t simply return “”???

---

## [Shopping Cart for production](https://www.ruby-forum.com/t/shopping-cart-for-production/177198)

<div class="topic-metadata">

**Author:** [@elioncho](https://www.ruby-forum.com/u/elioncho)\
**Replies:** 0\
**Last updated:** [October 13, 2009, 7:56am UTC](https://www.ruby-forum.com/t/shopping-cart-for-production/177198 "2009-10-13T07:56:19Z")

</div>

Reading the Agile book there’s an excerpt that states: ‘‘Make the Cart class an Active Record object and store cart data in the database. The session would then store the cart object’s id. When a request comes in, we’…

---

## [Booting failure](https://www.ruby-forum.com/t/booting-failure/177146)

<div class="topic-metadata">

**Author:** [@deva](https://www.ruby-forum.com/u/deva)\
**Replies:** 4\
**Last updated:** [October 13, 2009, 7:28am UTC](https://www.ruby-forum.com/t/booting-failure/177146 "2009-10-13T07:28:38Z")

</div>

JRuby limited openssl loaded. gem install jruby-openssl for full support. http://wiki.jruby.org/wiki/JRuby\_Builtin\_OpenSSL i got this message while booting my jruby project in netbeans… please guide me to solve this …

---

## [Yaml ?nodes? or nested maps](https://www.ruby-forum.com/t/yaml-nodes-or-nested-maps/177129)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 2\
**Last updated:** [October 13, 2009, 6:40am UTC](https://www.ruby-forum.com/t/yaml-nodes-or-nested-maps/177129 "2009-10-13T06:40:48Z")

</div>

I want to iterate ?nodes? and ?leafs? for a yaml document: thufir@ARRAKIS:~/projects/rss$ thufir@ARRAKIS:~/projects/rss$ ruby user.rb user.rb:6: undefined method \[\]' for nil:NilClass (NoMethodError) from user.rb:5:i…

---

## [Re: Overwriting default accessors](https://www.ruby-forum.com/t/re-overwriting-default-accessors/177196)

<div class="topic-metadata">

**Author:** [@builtbysimple](https://www.ruby-forum.com/u/builtbysimple)\
**Replies:** 0\
**Last updated:** [October 13, 2009, 4:15am UTC](https://www.ruby-forum.com/t/re-overwriting-default-accessors/177196 "2009-10-13T04:15:04Z")

</div>

On Oct 13, 2:24 am, Marnen Laibow-Koser removed\_email\_address@domain.invalid wrote: Then you want something like def status=(value) new\_value = do\_something\_to(value) self\[:status\] = new\_value # assuming this class…

---

## [Populate a combo box](https://www.ruby-forum.com/t/populate-a-combo-box/177113)

<div class="topic-metadata">

**Author:** [@spitfire](https://www.ruby-forum.com/u/spitfire)\
**Replies:** 2\
**Last updated:** [October 13, 2009, 12:42am UTC](https://www.ruby-forum.com/t/populate-a-combo-box/177113 "2009-10-13T00:42:55Z")

</div>

Hi, I am struggling with this problem: in a page there are 2 combo box: category and subcategory. When I select a category the subcategory combo must update its values. I would like to use JQuery with Ajax to load su…

---

## [Undefined error on the 'Welcome Aboard' page](https://www.ruby-forum.com/t/undefined-error-on-the-welcome-aboard-page/177181)

<div class="topic-metadata">

**Author:** [@kousen](https://www.ruby-forum.com/u/kousen)\
**Replies:** 2\
**Last updated:** [October 13, 2009, 12:17am UTC](https://www.ruby-forum.com/t/undefined-error-on-the-welcome-aboard-page/177181 "2009-10-13T00:17:56Z")

</div>

Okay, so I just installed Ruby and rails on my pc. Windows XP service pak 3. Got it running and went to the 127.0.0.1:3000 url and got the welcome aboard page, but when I click to check the Application Environment I g…

---

## [About custom validations](https://www.ruby-forum.com/t/about-custom-validations/177168)

<div class="topic-metadata">

**Author:** [@bakkhoz](https://www.ruby-forum.com/u/bakkhoz)\
**Replies:** 1\
**Last updated:** [October 12, 2009, 11:17pm UTC](https://www.ruby-forum.com/t/about-custom-validations/177168 "2009-10-12T23:17:03Z")

</div>

Hello, I suppose this topic has been widely discussed, but i’ve not found exactly what i need. I thought validate\_associations would in fact validate the associations of my models, but it simply verifies that the fie…

---

## [Nested attributes and deep references](https://www.ruby-forum.com/t/nested-attributes-and-deep-references/177177)

<div class="topic-metadata">

**Author:** [@bouldr-matt](https://www.ruby-forum.com/u/bouldr-matt)\
**Replies:** 0\
**Last updated:** [October 12, 2009, 9:55pm UTC](https://www.ruby-forum.com/t/nested-attributes-and-deep-references/177177 "2009-10-12T21:55:45Z")

</div>

I’m using nested attributes in a new project, but struggling with one issue. Imagine, for example you have the models User, Book, and Shelf. A user has\_many books, and has\_many shelves. A shelf also has\_many books. …

---

## [Reload data inside a test?](https://www.ruby-forum.com/t/reload-data-inside-a-test/177175)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 1\
**Last updated:** [October 12, 2009, 9:12pm UTC](https://www.ruby-forum.com/t/reload-data-inside-a-test/177175 "2009-10-12T21:12:39Z")

</div>

Hi, I something like: def test\_something @object = Object.create(…) @object.update\_attribute(…) assert\_equal “changed”, @object.attribute end The problem is that in the assertion, @object still holds the old valu…

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

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