# Rails

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

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

---

## [Self.inspect in helper file](https://www.ruby-forum.com/t/self-inspect-in-helper-file/156696)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 2\
**Last updated:** [January 1, 2009, 12:02pm UTC](https://www.ruby-forum.com/t/self-inspect-in-helper-file/156696 "2009-01-01T12:02:25Z")

</div>

Hi I just noticed this When i tried puts self.inspect just in the module ApplicationHelper gives ApplicationHelper And if i place the above puts statement in any def in the helper module, then it prints like #\<Ac…

---

## [Help turn on ssl](https://www.ruby-forum.com/t/help-turn-on-ssl/156646)

<div class="topic-metadata">

**Author:** [@gilbertsavier](https://www.ruby-forum.com/u/gilbertsavier)\
**Replies:** 1\
**Last updated:** [January 1, 2009, 11:35am UTC](https://www.ruby-forum.com/t/help-turn-on-ssl/156646 "2009-01-01T11:35:39Z")

</div>

Greetings to you all. I am trying to delop a site and wanted users to login seusurely over ssl. I am using rails 1.8.6 and when ever I try to configure the apache server using this code, it stopes giving me a spelling…

---

## [Validate not occurring transactionally](https://www.ruby-forum.com/t/validate-not-occurring-transactionally/156682)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [January 1, 2009, 10:01am UTC](https://www.ruby-forum.com/t/validate-not-occurring-transactionally/156682 "2009-01-01T10:01:30Z")

</div>

I’m running into a strange problem with transactions. I am seeing rare duplicate entries in the DB that should be prevented by my validations. Here is some sample code: class Review \< ActiveRecord::Base has\_one :me…

---

## [Uploading files to Flickr with Rails](https://www.ruby-forum.com/t/uploading-files-to-flickr-with-rails/156694)

<div class="topic-metadata">

**Author:** [@bdude](https://www.ruby-forum.com/u/bdude)\
**Replies:** 0\
**Last updated:** [January 1, 2009, 8:07am UTC](https://www.ruby-forum.com/t/uploading-files-to-flickr-with-rails/156694 "2009-01-01T08:07:32Z")

</div>

Hello, Api doc: Flickr Services I was wondering how I would go about taking files attached with a form, and then POSTing them to flickr and obtaining the response. Cheers, Bryce R.

---

## [What is the id of the form\_for](https://www.ruby-forum.com/t/what-is-the-id-of-the-form-for/156690)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 1\
**Last updated:** [January 1, 2009, 5:41am UTC](https://www.ruby-forum.com/t/what-is-the-id-of-the-form-for/156690 "2009-01-01T05:41:28Z")

</div>

I used form\_for to generate a form, but what is the ID of this form, how can I specify a ID for it.

---

## [Does observe\_field work in a partial](https://www.ruby-forum.com/t/does-observe-field-work-in-a-partial/156688)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 0\
**Last updated:** [January 1, 2009, 3:12am UTC](https://www.ruby-forum.com/t/does-observe-field-work-in-a-partial/156688 "2009-01-01T03:12:59Z")

</div>

I defined a partial and put an observe\_field in this partial, but it doesn’t invoke the action when the field changed, this is the code: \<%=select\_tag 'project\_version', options\_for\_select(@project\_versions)%\> \<%=…

---

## [Re: Having Problems Starting with Ruby on the rails](https://www.ruby-forum.com/t/re-having-problems-starting-with-ruby-on-the-rails/156670)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [December 31, 2008, 7:09pm UTC](https://www.ruby-forum.com/t/re-having-problems-starting-with-ruby-on-the-rails/156670 "2008-12-31T19:09:55Z")

</div>

Please can you help I’m having this problem when I type in this URL on my browser: http://localhost:3000/Manage Routing Error No route matches “/Manage” with {:method=\>:get}

---

## [\[JOB\] take over this Rails project!](https://www.ruby-forum.com/t/job-take-over-this-rails-project/156669)

<div class="topic-metadata">

**Author:** [@mekdigital](https://www.ruby-forum.com/u/mekdigital)\
**Replies:** 0\
**Last updated:** [December 31, 2008, 6:45pm UTC](https://www.ruby-forum.com/t/job-take-over-this-rails-project/156669 "2008-12-31T18:45:55Z")

</div>

Hello Friends, I’m taking a sparkling RoR office job and I have to slow down and eventually give up the development of a good project I’ve been consulting for the last two months, it’s for a ‘sui generis’ travel agen…

---

## [How can I listen the events of module/class defined](https://www.ruby-forum.com/t/how-can-i-listen-the-events-of-module-class-defined/156668)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [December 31, 2008, 5:30pm UTC](https://www.ruby-forum.com/t/how-can-i-listen-the-events-of-module-class-defined/156668 "2008-12-31T17:30:54Z")

</div>

In our project, I need to listen the events of module/class defined, and record the events that include the context of the module/class defined. In ruby, I cannot add a listener for the module/class defined, only i c…

---

## [Link\_to not asking confirmation (js)](https://www.ruby-forum.com/t/link-to-not-asking-confirmation-js/156608)

<div class="topic-metadata">

**Author:** [@pablo](https://www.ruby-forum.com/u/pablo)\
**Replies:** 2\
**Last updated:** [December 31, 2008, 5:21pm UTC](https://www.ruby-forum.com/t/link-to-not-asking-confirmation-js/156608 "2008-12-31T17:21:30Z")

</div>

Hi, I have this link\_to helper \<%= link\_to “edit”, :action =\> ‘edit’, :id =\> @pirate, :confirm =\> ‘should edit?’ %\> It should (in order to what I read in apidock) prompt me for confirmation via javascript confirm, bu…

---

## [Change attribute names in serialized output - to\_xml or to\_json](https://www.ruby-forum.com/t/change-attribute-names-in-serialized-output-to-xml-or-to-json/156665)

<div class="topic-metadata">

**Author:** [@jamie](https://www.ruby-forum.com/u/jamie)\
**Replies:** 0\
**Last updated:** [December 31, 2008, 4:56pm UTC](https://www.ruby-forum.com/t/change-attribute-names-in-serialized-output-to-xml-or-to-json/156665 "2008-12-31T16:56:16Z")

</div>

When serializing an object, is there a way to change the name of an attribute outputted without changing the underlying model (i.e… I do not want to change model attributes or methods? I have a class that has an asso…

---

## [YUI widgets, and JSON datasource generated by rails](https://www.ruby-forum.com/t/yui-widgets-and-json-datasource-generated-by-rails/156591)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [December 31, 2008, 4:01pm UTC](https://www.ruby-forum.com/t/yui-widgets-and-json-datasource-generated-by-rails/156591 "2008-12-31T16:01:43Z")

</div>

Hi there, I am working on a module which will generate YUI widgets. For now, I am using the YUI DataTable, which takes YUI Datasource as source to populate an html table. I wonder if someone has tried to populate a …

---

## [Query caching, Rails 2.2.2 and frozen attributes](https://www.ruby-forum.com/t/query-caching-rails-2-2-2-and-frozen-attributes/156655)

<div class="topic-metadata">

**Author:** [@rob](https://www.ruby-forum.com/u/rob)\
**Replies:** 1\
**Last updated:** [December 31, 2008, 3:50pm UTC](https://www.ruby-forum.com/t/query-caching-rails-2-2-2-and-frozen-attributes/156655 "2008-12-31T15:50:34Z")

</div>

Hi there, I’ve recently upgraded our main application to Rails 2.2.2, but I’ve run into an interesting problem. I am trying to update a User object for example, but I keep getting the ‘can’t modify frozen hash’ error …

---

## [Mongrel not connecting](https://www.ruby-forum.com/t/mongrel-not-connecting/144918)

<div class="topic-metadata">

**Author:** [@hema\_mca](https://www.ruby-forum.com/u/hema_mca)\
**Replies:** 2\
**Last updated:** [December 31, 2008, 3:35pm UTC](https://www.ruby-forum.com/t/mongrel-not-connecting/144918 "2008-12-31T15:35:35Z")

</div>

I upgraded my system to new version… now if i run the mongrel it is saying Starting Rails with development environment… \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* \* config.breakpoint\_serve…

---

## [Jruby works as a deployment VM under windows(!)](https://www.ruby-forum.com/t/jruby-works-as-a-deployment-vm-under-windows/196869)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 0\
**Last updated:** [December 31, 2008, 3:31pm UTC](https://www.ruby-forum.com/t/jruby-works-as-a-deployment-vm-under-windows/196869 "2008-12-31T15:31:04Z")

</div>

As a note, appears from the stories of Jruby \[1\] that you can actually use it as a nice stable rails deployment VM–on windows. That’s right. It has acceptable speed on windows. Wowza. -=r \[1\] Rails 2.2 released, loo…

---

## [Refactoring a helper method](https://www.ruby-forum.com/t/refactoring-a-helper-method/156658)

<div class="topic-metadata">

**Author:** [@taylorstrait](https://www.ruby-forum.com/u/taylorstrait)\
**Replies:** 0\
**Last updated:** [December 31, 2008, 2:56pm UTC](https://www.ruby-forum.com/t/refactoring-a-helper-method/156658 "2008-12-31T14:56:55Z")

</div>

I am working on a site that does web surveys. I have created a helper method to create a likert scale table (e.g., 5 columns + row title, strongly dislike \<-\> strongly like). This method accepts an array of hashes a…

---

## [Replace\_html problem](https://www.ruby-forum.com/t/replace-html-problem/156657)

<div class="topic-metadata">

**Author:** [@sa125](https://www.ruby-forum.com/u/sa125)\
**Replies:** 0\
**Last updated:** [December 31, 2008, 2:34pm UTC](https://www.ruby-forum.com/t/replace-html-problem/156657 "2008-12-31T14:34:55Z")

</div>

Hi - trying to update a table with page.replace\_html using a partial: The view (index.html.erb): \[code=\] \<%= render :partial =\> ‘product’ %\> \[/code\] The partial (\_product.html.erb) \[code=\] \<% for product in @product…

---

## [Rails migration framework in java](https://www.ruby-forum.com/t/rails-migration-framework-in-java/156654)

<div class="topic-metadata">

**Author:** [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Replies:** 1\
**Last updated:** [December 31, 2008, 2:18pm UTC](https://www.ruby-forum.com/t/rails-migration-framework-in-java/156654 "2008-12-31T14:18:40Z")

</div>

Hi, Is there any schema framework in java similar to migration framework in rails. I heard that hibernate schema framework can do the same. But iam not able to compare both since i dont know hibernate. Any help?

---

## [How to get select\_tag value in controller?](https://www.ruby-forum.com/t/how-to-get-select-tag-value-in-controller/156466)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 8\
**Last updated:** [December 31, 2008, 1:09pm UTC](https://www.ruby-forum.com/t/how-to-get-select-tag-value-in-controller/156466 "2008-12-31T13:09:44Z")

</div>

I use select\_tag to create a selection box in a view and how can I get the current selection value in its controller? For example: select\_tag:project\_selection,options\_for\_select(@project\_names), :onchange =\>remote\_f…

---

## [Problem with downloading Ziya plugin](https://www.ruby-forum.com/t/problem-with-downloading-ziya-plugin/156638)

<div class="topic-metadata">

**Author:** [@dharmdip](https://www.ruby-forum.com/u/dharmdip)\
**Replies:** 3\
**Last updated:** [December 31, 2008, 10:19am UTC](https://www.ruby-forum.com/t/problem-with-downloading-ziya-plugin/156638 "2008-12-31T10:19:56Z")

</div>

hello , i am trying to download Ziya plugin from ruby script/plugin install svn://rubyforge.org/var/svn/liquidrail/plugins/ziya/trunk i have tried other url’s but not able to download.Is there any alternative ? I do…

---

## [Combining validation error messages](https://www.ruby-forum.com/t/combining-validation-error-messages/156645)

<div class="topic-metadata">

**Author:** [@alyoshka](https://www.ruby-forum.com/u/alyoshka)\
**Replies:** 0\
**Last updated:** [December 31, 2008, 9:28am UTC](https://www.ruby-forum.com/t/combining-validation-error-messages/156645 "2008-12-31T09:28:15Z")

</div>

I used Ryan B.’ Railscasts episodes 73-75 to build forms with dynamic added models in complex forms. Everything works great, but displaying validation errors are a big mess since it displays it’s own box for each indi…

---

## [Session store active\_record\_store doesn't work](https://www.ruby-forum.com/t/session-store-active-record-store-doesnt-work/156644)

<div class="topic-metadata">

**Author:** [@k560](https://www.ruby-forum.com/u/k560)\
**Replies:** 0\
**Last updated:** [December 31, 2008, 9:28am UTC](https://www.ruby-forum.com/t/session-store-active-record-store-doesnt-work/156644 "2008-12-31T09:28:15Z")

</div>

I want to use acitive record store session. So I edited files like below. \*environment.rb config.action\_controller.session\_store = :active\_record\_store \*application.rb protect\_from\_forgery :secret =\> ‘54420ada…’ \*r…

---

## [Count a occurence of given attribute](https://www.ruby-forum.com/t/count-a-occurence-of-given-attribute/156640)

<div class="topic-metadata">

**Author:** [@Ishara\_G](https://www.ruby-forum.com/u/Ishara_G)\
**Replies:** 1\
**Last updated:** [December 31, 2008, 9:25am UTC](https://www.ruby-forum.com/t/count-a-occurence-of-given-attribute/156640 "2008-12-31T09:25:20Z")

</div>

hi, i have a two tables named “agents” and “confirm\_clients” in confirm\_clients columns t.column :client\_id, :string t.column: agent\_id, :string t.column:confirm, :boolean agents t.column :agent\_id, :string t.col…

---

## [Presenters in Rails](https://www.ruby-forum.com/t/presenters-in-rails/156636)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 1\
**Last updated:** [December 31, 2008, 9:18am UTC](https://www.ruby-forum.com/t/presenters-in-rails/156636 "2008-12-31T09:18:18Z")

</div>

Hi Could anybody please explain what are presenters in Rails and how they are used? Thanks in advance Sijo

---

## [Validation Problem](https://www.ruby-forum.com/t/validation-problem/156635)

<div class="topic-metadata">

**Author:** [@snowbird122](https://www.ruby-forum.com/u/snowbird122)\
**Replies:** 1\
**Last updated:** [December 31, 2008, 7:07am UTC](https://www.ruby-forum.com/t/validation-problem/156635 "2008-12-31T07:07:53Z")

</div>

Hello- I’m trying to do something pretty basic - validate a form field against a regex. Here’s the line of my model that adds the validation: validates\_format\_of :zipcode, :with =\> /\\d{5}(-\\d{4})?/, :message =\> ‘is f…

---

## [A question about ajax](https://www.ruby-forum.com/t/a-question-about-ajax/156588)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 4\
**Last updated:** [December 31, 2008, 5:30am UTC](https://www.ruby-forum.com/t/a-question-about-ajax/156588 "2008-12-31T05:30:32Z")

</div>

I defines a partial see below: \<%= puts @project.version text\_field\_tag “project\_version”, @project.version %\> I want the project version update-to-date. The first line can print the correct version value but the t…

---

## [Use of #h method in a controller](https://www.ruby-forum.com/t/use-of-h-method-in-a-controller/156626)

<div class="topic-metadata">

**Author:** [@oldbug](https://www.ruby-forum.com/u/oldbug)\
**Replies:** 0\
**Last updated:** [December 31, 2008, 4:00am UTC](https://www.ruby-forum.com/t/use-of-h-method-in-a-controller/156626 "2008-12-31T04:00:48Z")

</div>

I have rails-2.2.2 installed on 2 different computers and routinely switch back and forth between the two of them. I just wrote some code today on my desktop in which I invoked the #h method inside a controller (bec…

---

## [How to set homepage in Rails](https://www.ruby-forum.com/t/how-to-set-homepage-in-rails/156624)

<div class="topic-metadata">

**Author:** [@nearcruise](https://www.ruby-forum.com/u/nearcruise)\
**Replies:** 2\
**Last updated:** [December 31, 2008, 3:52am UTC](https://www.ruby-forum.com/t/how-to-set-homepage-in-rails/156624 "2008-12-31T03:52:06Z")

</div>

Hi : If I want http://localhost:3000/share to be homepage http://localhost:3000/, How can I do setting from rails ,please? Thanks. Cruise

---

## [AJAX replace items on a page progressively one at a time](https://www.ruby-forum.com/t/ajax-replace-items-on-a-page-progressively-one-at-a-time/156411)

<div class="topic-metadata">

**Author:** [@JHuizingh](https://www.ruby-forum.com/u/JHuizingh)\
**Replies:** 2\
**Last updated:** [December 31, 2008, 3:17am UTC](https://www.ruby-forum.com/t/ajax-replace-items-on-a-page-progressively-one-at-a-time/156411 "2008-12-31T03:17:25Z")

</div>

I am working on a problem where I have a large task that is broken down into a lot of subtasks. The subtasks each take a significant amount of time to do. My data model looks something like this: class LargeTask \< A…

---

## [Problems w/ partials and yield](https://www.ruby-forum.com/t/problems-w-partials-and-yield/156408)

<div class="topic-metadata">

**Author:** [@clemrock](https://www.ruby-forum.com/u/clemrock)\
**Replies:** 6\
**Last updated:** [December 31, 2008, 2:53am UTC](https://www.ruby-forum.com/t/problems-w-partials-and-yield/156408 "2008-12-31T02:53:30Z")

</div>

Hello, I love the concept of using \<%=yield %\> to automatically render content but there are times where I find it a bit restraining. For instance, I would like to to use the exact same partial for these 2 methods: l…

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

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