# Rails

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

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

---

## [Ruby on rails restful path not working (savage beast)](https://www.ruby-forum.com/t/ruby-on-rails-restful-path-not-working-savage-beast/133708)

<div class="topic-metadata">

**Author:** [@Mongdar](https://www.ruby-forum.com/u/Mongdar)\
**Replies:** 1\
**Last updated:** [April 2, 2008, 10:06pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-restful-path-not-working-savage-beast/133708 "2008-04-02T22:06:58Z")

</div>

I did some modification to my installment of savage beast 2 but I am getting the following error whenever I edit and create forum, topic, or post NoMethodError (undefined method controller\_name' for nil:NilClass): /us…

---

## [Object\_transactions plugin w/2.x disables AR session store](https://www.ruby-forum.com/t/object-transactions-plugin-w-2-x-disables-ar-session-store/132420)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 5\
**Last updated:** [April 2, 2008, 9:35pm UTC](https://www.ruby-forum.com/t/object-transactions-plugin-w-2-x-disables-ar-session-store/132420 "2008-04-02T21:35:35Z")

</div>

All, Win XP Rails 2.0.2 object\_transactions plugin (http://code.bitsweat.net/svn/object\_transactions/) transaction-simple gem 1.4 (required by object\_transactions plugin) AR SQL Server Adapter 1.0 SQL Server 2000 …

---

## [Problem using Javascript with Rails](https://www.ruby-forum.com/t/problem-using-javascript-with-rails/196633)

<div class="topic-metadata">

**Author:** [@tensaijin](https://www.ruby-forum.com/u/tensaijin)\
**Replies:** 3\
**Last updated:** [April 2, 2008, 8:40pm UTC](https://www.ruby-forum.com/t/problem-using-javascript-with-rails/196633 "2008-04-02T20:40:33Z")

</div>

Hello, I am new to Ruby and I am currently creating a webpage which lists bug stats information for various development teams. Each team is represented on the page with an image. When a team’s link is clicked, I want…

---

## [Autocomplete for searching using id and lists](https://www.ruby-forum.com/t/autocomplete-for-searching-using-id-and-lists/133701)

<div class="topic-metadata">

**Author:** [@add](https://www.ruby-forum.com/u/add)\
**Replies:** 2\
**Last updated:** [April 2, 2008, 8:08pm UTC](https://www.ruby-forum.com/t/autocomplete-for-searching-using-id-and-lists/133701 "2008-04-02T20:08:38Z")

</div>

I, I’m beginning in Rails and would like to know how to do 2 stuffs : Using autocomplete or a select combo (specially auto\_complete) for searching data and then opening the results in the partial list (I would like t…

---

## [\<%= yield %\> displays previous render's \<%= yield %\>](https://www.ruby-forum.com/t/yield-displays-previous-renders-yield/133699)

<div class="topic-metadata">

**Author:** [@apramanik](https://www.ruby-forum.com/u/apramanik)\
**Replies:** 1\
**Last updated:** [April 2, 2008, 7:37pm UTC](https://www.ruby-forum.com/t/yield-displays-previous-renders-yield/133699 "2008-04-02T19:37:13Z")

</div>

Hi all, I’m trying to get a nested partial to display, but yield keeps displaying the previous render’s yield. I have a view: \<%= render( :partial =\> ‘user/edit\_photo’, :layout =\> ‘shared/edit’ ) %\> The partial…

---

## [I'd like to turn off logging for a particular controller](https://www.ruby-forum.com/t/id-like-to-turn-off-logging-for-a-particular-controller/122907)

<div class="topic-metadata">

**Author:** [@eblatt](https://www.ruby-forum.com/u/eblatt)\
**Replies:** 1\
**Last updated:** [April 2, 2008, 7:06pm UTC](https://www.ruby-forum.com/t/id-like-to-turn-off-logging-for-a-particular-controller/122907 "2008-04-02T19:06:21Z")

</div>

I’ve got one controller whose log messages I’d like to not see. I’ve tried to an number of different techniques, but I cannot find the correct syntax for using Logger::silence. here’s what I’d like to do: def my\_cont…

---

## [RESTful updates, redirects and context](https://www.ruby-forum.com/t/restful-updates-redirects-and-context/133551)

<div class="topic-metadata">

**Author:** [@harm](https://www.ruby-forum.com/u/harm)\
**Replies:** 3\
**Last updated:** [April 2, 2008, 6:52pm UTC](https://www.ruby-forum.com/t/restful-updates-redirects-and-context/133551 "2008-04-02T18:52:31Z")

</div>

Dear group, Currently I am working on (surprise, surprise) a webshop with a shopping cart. Now I really like the whole REST thing but I constantly run into the same problem. As a user I am browsing the site and add p…

---

## [Consuming a RESTful webservice in Rails](https://www.ruby-forum.com/t/consuming-a-restful-webservice-in-rails/133694)

<div class="topic-metadata">

**Author:** [@Javier\_CH](https://www.ruby-forum.com/u/Javier_CH)\
**Replies:** 4\
**Last updated:** [April 2, 2008, 6:43pm UTC](https://www.ruby-forum.com/t/consuming-a-restful-webservice-in-rails/133694 "2008-04-02T18:43:12Z")

</div>

Can anyone point me to an url regarding how to consume a REST- webservice in rails? I did find tons of websites and posts on how to use REST inside a Rails-app and some on how to serve a REST-webservice, but didn’t fi…

---

## [RoR Careers?](https://www.ruby-forum.com/t/ror-careers/133696)

<div class="topic-metadata">

**Author:** [@IT\_Proxy](https://www.ruby-forum.com/u/IT_Proxy)\
**Replies:** 0\
**Last updated:** [April 2, 2008, 6:17pm UTC](https://www.ruby-forum.com/t/ror-careers/133696 "2008-04-02T18:17:02Z")

</div>

Where is the best place to look for RoR career opportunities? Check this out: New R. on Rails Web D. Career Opportunity: Senior Ruby On Rails (RoR) Developer Full Time, Direct Hire Location: Anywhere Salary: $50K to…

---

## [Validation strip html tags?](https://www.ruby-forum.com/t/validation-strip-html-tags/133690)

<div class="topic-metadata">

**Author:** [@megax](https://www.ruby-forum.com/u/megax)\
**Replies:** 1\
**Last updated:** [April 2, 2008, 6:14pm UTC](https://www.ruby-forum.com/t/validation-strip-html-tags/133690 "2008-04-02T18:14:06Z")

</div>

Is it possible to get ruby to validate html tags and strip them out or remove the \<, \> by them?

---

## [Application.html for website in 2 languages?](https://www.ruby-forum.com/t/application-html-for-website-in-2-languages/133644)

<div class="topic-metadata">

**Author:** [@san1981](https://www.ruby-forum.com/u/san1981)\
**Replies:** 9\
**Last updated:** [April 2, 2008, 6:04pm UTC](https://www.ruby-forum.com/t/application-html-for-website-in-2-languages/133644 "2008-04-02T18:04:26Z")

</div>

Hello, Iâ€™m a newbie on the rails environment. Iâ€™ve just created an application.html.erb to have the same layout on all pages but the site will be available in 2 different languages, then with 2 different layouts…

---

## [What's with all of the recent Rails gem updates on Windows?](https://www.ruby-forum.com/t/whats-with-all-of-the-recent-rails-gem-updates-on-windows/133222)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 5\
**Last updated:** [April 2, 2008, 6:04pm UTC](https://www.ruby-forum.com/t/whats-with-all-of-the-recent-rails-gem-updates-on-windows/133222 "2008-04-02T18:04:01Z")

</div>

There have been 3 updates of Rails for Windows in the last 2 weeks or so. Anybody know why? Are they platform-specific security updates or something? Thanks, Wes

---

## [Nested Route Issue Rails 2.0](https://www.ruby-forum.com/t/nested-route-issue-rails-2-0/133393)

<div class="topic-metadata">

**Author:** [@cpaesleme](https://www.ruby-forum.com/u/cpaesleme)\
**Replies:** 4\
**Last updated:** [April 2, 2008, 5:40pm UTC](https://www.ruby-forum.com/t/nested-route-issue-rails-2-0/133393 "2008-04-02T17:40:10Z")

</div>

Hi guys, having an issue with a nested route mapping. Do you have any ideas? Almost done with my app from a Rails book I’m studying, built a ‘mobile’ subfolder to provide support for mobile devices. Here is the route…

---

## [Testing for Form Submission?](https://www.ruby-forum.com/t/testing-for-form-submission/197072)

<div class="topic-metadata">

**Author:** [@pete](https://www.ruby-forum.com/u/pete)\
**Replies:** 0\
**Last updated:** [April 2, 2008, 5:24pm UTC](https://www.ruby-forum.com/t/testing-for-form-submission/197072 "2008-04-02T17:24:56Z")

</div>

Hi- I’m trying to create a file upload script using RoR but I am getting “You have a nil object when you didn’t expect it!” and I think this is caused by the fact that the no form has been submitted. Is that right? …

---

## [Help on setting up a existing project for development local](https://www.ruby-forum.com/t/help-on-setting-up-a-existing-project-for-development-local/133538)

<div class="topic-metadata">

**Author:** [@yetanothergeek](https://www.ruby-forum.com/u/yetanothergeek)\
**Replies:** 4\
**Last updated:** [April 2, 2008, 5:23pm UTC](https://www.ruby-forum.com/t/help-on-setting-up-a-existing-project-for-development-local/133538 "2008-04-02T17:23:20Z")

</div>

Hi, Iâ€™m fairly new to RoR been working with it for about 3 weeks now and starting to get to grips with the basic, (I thought). I just recently got a job as a designer to update the aesthetics of a ecommerce site bu…

---

## [REST standard actions: why does "new" action have a .xml flavor?](https://www.ruby-forum.com/t/rest-standard-actions-why-does-new-action-have-a-xml-flavor/133576)

<div class="topic-metadata">

**Author:** [@Pito](https://www.ruby-forum.com/u/Pito)\
**Replies:** 4\
**Last updated:** [April 2, 2008, 4:24pm UTC](https://www.ruby-forum.com/t/rest-standard-actions-why-does-new-action-have-a-xml-flavor/133576 "2008-04-02T16:24:21Z")

</div>

When I generate a REST controller scaffold I get an action that looks something like: GET /users/new GET /users/new.xml def new @user = User.new respond\_to do |format| format.html # new.html.erb format.xml { r…

---

## [Code that executes only once when server starts up](https://www.ruby-forum.com/t/code-that-executes-only-once-when-server-starts-up/133685)

<div class="topic-metadata">

**Author:** [@stanly](https://www.ruby-forum.com/u/stanly)\
**Replies:** 2\
**Last updated:** [April 2, 2008, 4:19pm UTC](https://www.ruby-forum.com/t/code-that-executes-only-once-when-server-starts-up/133685 "2008-04-02T16:19:55Z")

</div>

Hello All, I want to write a method initializes some global variables only once when server starts. I can’t write the code in application helper or application controller because the global variables are re initialize…

---

## [Help with routes and auto-generated methods](https://www.ruby-forum.com/t/help-with-routes-and-auto-generated-methods/133683)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 1\
**Last updated:** [April 2, 2008, 4:12pm UTC](https://www.ruby-forum.com/t/help-with-routes-and-auto-generated-methods/133683 "2008-04-02T16:12:28Z")

</div>

I am getting the following error when trying to link to an auto-generated route: —\> NoMethodError in Entities#index Showing entities/index.html.erb where line #36 raised: undefined method \`edit\_entity\_client’ for #A…

---

## [Acts\_as\_state\_machine](https://www.ruby-forum.com/t/acts-as-state-machine/133633)

<div class="topic-metadata">

**Author:** [@srinivasraopala](https://www.ruby-forum.com/u/srinivasraopala)\
**Replies:** 1\
**Last updated:** [April 2, 2008, 4:07pm UTC](https://www.ruby-forum.com/t/acts-as-state-machine/133633 "2008-04-02T16:07:47Z")

</div>

Hi, I want to use the acts\_as\_state\_machine for work flow. Please let me know how to use this. Can you please give one example. Thank you, srinivasrao.pala

---

## [Max Connections + Mongrel](https://www.ruby-forum.com/t/max-connections-mongrel/133684)

<div class="topic-metadata">

**Author:** [@turnkeytraders](https://www.ruby-forum.com/u/turnkeytraders)\
**Replies:** 0\
**Last updated:** [April 2, 2008, 3:56pm UTC](https://www.ruby-forum.com/t/max-connections-mongrel/133684 "2008-04-02T15:56:12Z")

</div>

Hello, I was wondering, how can I increase the number of connections that Mongrel can accept? Because i’ve been getting alot of timeouts from mongrel when trying to access a service and it appears there’s alot of con…

---

## [Will not create new row in table](https://www.ruby-forum.com/t/will-not-create-new-row-in-table/133656)

<div class="topic-metadata">

**Author:** [@kaizerkaizer](https://www.ruby-forum.com/u/kaizerkaizer)\
**Replies:** 7\
**Last updated:** [April 2, 2008, 3:46pm UTC](https://www.ruby-forum.com/t/will-not-create-new-row-in-table/133656 "2008-04-02T15:46:27Z")

</div>

Hi, I’ve successfully used: @presentation = current\_user.presentation @presentation = current\_user.create\_presentation unless @presentation before in my code when creating a new user (in the users\_controller) to cre…

---

## [Comments on this architectur?](https://www.ruby-forum.com/t/comments-on-this-architectur/133197)

<div class="topic-metadata">

**Author:** [@Sebastian\_Munz](https://www.ruby-forum.com/u/Sebastian_Munz)\
**Replies:** 1\
**Last updated:** [April 2, 2008, 3:38pm UTC](https://www.ruby-forum.com/t/comments-on-this-architectur/133197 "2008-04-02T15:38:59Z")

</div>

Hi everyone, I plan to deploy our web to an dedicated rootserver, using xen to seperate the servers into several roles. I don’t have any experience in deloying to an multi-slices environment. So your opionions on this …

---

## [SystemStackError: stack level too deep in activemerchant](https://www.ruby-forum.com/t/systemstackerror-stack-level-too-deep-in-activemerchant/133676)

<div class="topic-metadata">

**Author:** [@SMARTEGURU](https://www.ruby-forum.com/u/SMARTEGURU)\
**Replies:** 0\
**Last updated:** [April 2, 2008, 2:47pm UTC](https://www.ruby-forum.com/t/systemstackerror-stack-level-too-deep-in-activemerchant/133676 "2008-04-02T14:47:23Z")

</div>

I am using activemerchant 1.3.2 with rails 1.2.3 when i submit CC for validation: following code in controller ActiveMerchant::Billing::Base.mode = :test creditcard1 = ActiveMerchant::Billing::CreditCard.new( :first…

---

## [Property management / budget software in ruby on rails?](https://www.ruby-forum.com/t/property-management-budget-software-in-ruby-on-rails/133675)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 0\
**Last updated:** [April 2, 2008, 2:43pm UTC](https://www.ruby-forum.com/t/property-management-budget-software-in-ruby-on-rails/133675 "2008-04-02T14:43:10Z")

</div>

Hi, Anyone aware of any open source Ruby on Rails projects that cover either: budget planner property manager (i.e. managing your rental properties) Cheers Greg

---

## [Problem getting the most recent has\_many associated object](https://www.ruby-forum.com/t/problem-getting-the-most-recent-has-many-associated-object/133636)

<div class="topic-metadata">

**Author:** [@shenry](https://www.ruby-forum.com/u/shenry)\
**Replies:** 9\
**Last updated:** [April 2, 2008, 2:32pm UTC](https://www.ruby-forum.com/t/problem-getting-the-most-recent-has-many-associated-object/133636 "2008-04-02T14:32:28Z")

</div>

I can’t get my view to display the most recent parameters from an associated object in a view… here is a birds-eye of my app: I have two models, Ferms and Kinetics. Ferm has\_many :kinetics, Kinetic belongs\_to :ferm. K…

---

## [Attachment\_fu and with\_image on existing entries](https://www.ruby-forum.com/t/attachment-fu-and-with-image-on-existing-entries/133672)

<div class="topic-metadata">

**Author:** [@jonny](https://www.ruby-forum.com/u/jonny)\
**Replies:** 0\
**Last updated:** [April 2, 2008, 2:12pm UTC](https://www.ruby-forum.com/t/attachment-fu-and-with-image-on-existing-entries/133672 "2008-04-02T14:12:38Z")

</div>

Hi everyone, I’m just upgrading an app from acts\_as\_attachment to attachment\_fu and have run into an issue using the with\_image method on existing attachment records. It worked fine in acts\_as\_attachment but in atta…

---

## [:scope (validates\_uniqueness) question](https://www.ruby-forum.com/t/scope-validates-uniqueness-question/133661)

<div class="topic-metadata">

**Author:** [@ratcheer](https://www.ruby-forum.com/u/ratcheer)\
**Replies:** 1\
**Last updated:** [April 2, 2008, 1:07pm UTC](https://www.ruby-forum.com/t/scope-validates-uniqueness-question/133661 "2008-04-02T13:07:23Z")

</div>

Consider the following table: ±—±-------±-------±----------+ | id | seq\_no | request| response | ±—±-------±-------±----------+ | 42 | 1 | req1 | 0106 | | 43 | 2 | req2 | 2343 | | 44 | …

---

## [In\_place\_edit](https://www.ruby-forum.com/t/in-place-edit/133618)

<div class="topic-metadata">

**Author:** [@murphy](https://www.ruby-forum.com/u/murphy)\
**Replies:** 1\
**Last updated:** [April 2, 2008, 11:59am UTC](https://www.ruby-forum.com/t/in-place-edit/133618 "2008-04-02T11:59:40Z")

</div>

where is the in\_place\_edit plugin? script/plugin source http://svn…?

---

## [ActiveRecord lifecycle](https://www.ruby-forum.com/t/activerecord-lifecycle/133335)

<div class="topic-metadata">

**Author:** [@Col\_W](https://www.ruby-forum.com/u/Col_W)\
**Replies:** 3\
**Last updated:** [April 2, 2008, 11:57am UTC](https://www.ruby-forum.com/t/activerecord-lifecycle/133335 "2008-04-02T11:57:07Z")

</div>

Can someone point me a where the active record lifecycle. It’s discussed in the docs on the callbacks, but it’s never actually defined there. I just want to know what happens when.

---

## [Problems when using custom primary key value](https://www.ruby-forum.com/t/problems-when-using-custom-primary-key-value/133652)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 2, 2008, 10:53am UTC](https://www.ruby-forum.com/t/problems-when-using-custom-primary-key-value/133652 "2008-04-02T10:53:19Z")

</div>

Hi all, I am having a bit of trouble getting rails to interact with a legacy postgresql database. The problem essentially arises because I define the primary key value using some custom logic before making an insert,…

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

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