# Rails

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

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

---

## [Cannot have both select and radio\_button together on the same form](https://www.ruby-forum.com/t/cannot-have-both-select-and-radio-button-together-on-the-same-form/188874)

<div class="topic-metadata">

**Author:** [@N.Li](https://www.ruby-forum.com/u/N.Li)\
**Replies:** 1\
**Last updated:** [May 19, 2010, 8:08pm UTC](https://www.ruby-forum.com/t/cannot-have-both-select-and-radio-button-together-on-the-same-form/188874 "2010-05-19T20:08:22Z")

</div>

Hello, I’m new to Ruby on Rails. I am creating a form for searching purpose: \<% form\_for :src\_cond, :url =\> {:action =\>‘search’} do |p| %\> \<%= p.radio\_button(“bd”, “1”) %\> a \<%= p.radio\_button(“bd”, “2”) %\> b \<%= p…

---

## [Undefined method error when loading schema (Win 7)](https://www.ruby-forum.com/t/undefined-method-error-when-loading-schema-win-7/188877)

<div class="topic-metadata">

**Author:** [@Zooey](https://www.ruby-forum.com/u/Zooey)\
**Replies:** 0\
**Last updated:** [May 19, 2010, 8:05pm UTC](https://www.ruby-forum.com/t/undefined-method-error-when-loading-schema-win-7/188877 "2010-05-19T20:05:26Z")

</div>

I’m trying to run an existing project on a new installation of Rails on a Windows 7 machine. When I try to load the schema, I get: rake aborted! undefined method \`full\_name’ for “\\377\\376-”:String I can’t figure out …

---

## [OneLogin releases SAML for Ruby](https://www.ruby-forum.com/t/onelogin-releases-saml-for-ruby/188009)

<div class="topic-metadata">

**Author:** [@Thomas\_Pedersen](https://www.ruby-forum.com/u/Thomas_Pedersen)\
**Replies:** 4\
**Last updated:** [May 19, 2010, 7:43pm UTC](https://www.ruby-forum.com/t/onelogin-releases-saml-for-ruby/188009 "2010-05-19T19:43:46Z")

</div>

We have just published a neat little toolkit for those of you who are interested in SAML-enabling your enterprise application. SAML is a standards-based single sign-on protocol, which allows an identity provider to se…

---

## [Accepts nest attributes & attr\_accessible](https://www.ruby-forum.com/t/accepts-nest-attributes-attr-accessible/188838)

<div class="topic-metadata">

**Author:** [@brianp](https://www.ruby-forum.com/u/brianp)\
**Replies:** 6\
**Last updated:** [May 19, 2010, 6:49pm UTC](https://www.ruby-forum.com/t/accepts-nest-attributes-attr-accessible/188838 "2010-05-19T18:49:54Z")

</div>

Hey, Just going over some of the accepts of accepts\_nested\_attributes\_for & attr\_accessible. I found with the form and models I’ve been working on it would be great if I could use accepts\_nested\_attribtues but I want…

---

## [I18N error](https://www.ruby-forum.com/t/i18n-error/188872)

<div class="topic-metadata">

**Author:** [@badnaam](https://www.ruby-forum.com/u/badnaam)\
**Replies:** 0\
**Last updated:** [May 19, 2010, 6:42pm UTC](https://www.ruby-forum.com/t/i18n-error/188872 "2010-05-19T18:42:52Z")

</div>

I have the following in my en.yml en: hello: “Hello world” activerecord: errors: models: et: not\_enough: “Not enough points for this transaction” when I call I18n.t :not\_enough in my custom validation method in m…

---

## [Cap trouble: deploy:update stalling after "executing locally](https://www.ruby-forum.com/t/cap-trouble-deploy-update-stalling-after-executing-locally/188870)

<div class="topic-metadata">

**Author:** [@clavatinc](https://www.ruby-forum.com/u/clavatinc)\
**Replies:** 0\
**Last updated:** [May 19, 2010, 5:47pm UTC](https://www.ruby-forum.com/t/cap-trouble-deploy-update-stalling-after-executing-locally/188870 "2010-05-19T17:47:43Z")

</div>

I’m afraid this may well turn out to be a newb error rather than a bug, but I’m having this issue while attempting to deploy an application for the first time (both the first time for the app and the first time for me…

---

## [Acts\_as\_list manual plugin install](https://www.ruby-forum.com/t/acts-as-list-manual-plugin-install/188849)

<div class="topic-metadata">

**Author:** [@aerodame](https://www.ruby-forum.com/u/aerodame)\
**Replies:** 1\
**Last updated:** [May 19, 2010, 5:33pm UTC](https://www.ruby-forum.com/t/acts-as-list-manual-plugin-install/188849 "2010-05-19T17:33:35Z")

</div>

Due to some corporate firewall difficulties I decided to go to my home Mac and install the plugin in a rails project and then just copy the plugin from the vendors/plugin folder to my (inside) corporate project. Is t…

---

## [When I do a migration, the changes are make in the test db](https://www.ruby-forum.com/t/when-i-do-a-migration-the-changes-are-make-in-the-test-db/188802)

<div class="topic-metadata">

**Author:** [@jorgegetafe](https://www.ruby-forum.com/u/jorgegetafe)\
**Replies:** 4\
**Last updated:** [May 19, 2010, 5:09pm UTC](https://www.ruby-forum.com/t/when-i-do-a-migration-the-changes-are-make-in-the-test-db/188802 "2010-05-19T17:09:10Z")

</div>

When I do a migration, the changes are make in the test database. Does anyone know the reason? In the config/environment.rb file, I have this: ENV\[‘RAILS\_ENV’\] ||= ‘production’ And in the db/ folder, it creates a fil…

---

## [ActionMailer using wrong layouts on prod box](https://www.ruby-forum.com/t/actionmailer-using-wrong-layouts-on-prod-box/182788)

<div class="topic-metadata">

**Author:** [@joshs](https://www.ruby-forum.com/u/joshs)\
**Replies:** 2\
**Last updated:** [May 19, 2010, 5:06pm UTC](https://www.ruby-forum.com/t/actionmailer-using-wrong-layouts-on-prod-box/182788 "2010-05-19T17:06:41Z")

</div>

Using ActionMailer, Haml and multi part emails I’m seeing very strange behavior on one particular production box. I’ve got: class Notifier \< ActionMailer::Base layout ‘email’ def test end end All of these files …

---

## [Form\_tag can't use get method](https://www.ruby-forum.com/t/form-tag-cant-use-get-method/188865)

<div class="topic-metadata">

**Author:** [@d4ny1](https://www.ruby-forum.com/u/d4ny1)\
**Replies:** 0\
**Last updated:** [May 19, 2010, 4:24pm UTC](https://www.ruby-forum.com/t/form-tag-cant-use-get-method/188865 "2010-05-19T16:24:06Z")

</div>

Hi there I try to use form\_tag form\_tag( post\_path, :method =\> :put) to generate \<form action=’"/posts" method=“get”\> But I got the following code \<form action='"/posts?method=get" method="post"\> \<p\>I am in rails 3.…

---

## [Define environment for rake db:seed](https://www.ruby-forum.com/t/define-environment-for-rake-db-seed/188857)

<div class="topic-metadata">

**Author:** [@reggieb](https://www.ruby-forum.com/u/reggieb)\
**Replies:** 2\
**Last updated:** [May 19, 2010, 3:35pm UTC](https://www.ruby-forum.com/t/define-environment-for-rake-db-seed/188857 "2010-05-19T15:35:56Z")

</div>

How do you define which version of the database is populated via the new default seed process? Running this: rake db:seed runs the code in seed.rb in the development environment and therefore loads the seed data into…

---

## [Table with dynamic content](https://www.ruby-forum.com/t/table-with-dynamic-content/188858)

<div class="topic-metadata">

**Author:** [@thebarge](https://www.ruby-forum.com/u/thebarge)\
**Replies:** 5\
**Last updated:** [May 19, 2010, 3:27pm UTC](https://www.ruby-forum.com/t/table-with-dynamic-content/188858 "2010-05-19T15:27:46Z")

</div>

I want to create a table displaying image thumbnails, 3 per row. Can I use an if loop to create the tags? or is this better acheived with css?

---

## [Customized form\_for in ApplicationHelper](https://www.ruby-forum.com/t/customized-form-for-in-applicationhelper/197041)

<div class="topic-metadata">

**Author:** [@poseid](https://www.ruby-forum.com/u/poseid)\
**Replies:** 1\
**Last updated:** [May 19, 2010, 3:17pm UTC](https://www.ruby-forum.com/t/customized-form-for-in-applicationhelper/197041 "2010-05-19T15:17:56Z")

</div>

hello, I want to make a table within a form by making a new form\_tag. The following code in ApplicationHelper fails: def tabular\_form\_for(name, object = nil, options = nil, &proc) concat(" ", proc.binding) form\_for(…

---

## [Q: belongs\_to & build](https://www.ruby-forum.com/t/q-belongs-to-build/188861)

<div class="topic-metadata">

**Author:** [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Replies:** 0\
**Last updated:** [May 19, 2010, 3:12pm UTC](https://www.ruby-forum.com/t/q-belongs-to-build/188861 "2010-05-19T15:12:04Z")

</div>

hi invite \<belongs\_to\> location location \<has\_one\> invite background: location is not set at the time of the invite… i = invite.find(1) how do i build the location and update the invite (location\_id) in one go? …

---

## [ActiveRecord / Nested Attributes create missing association](https://www.ruby-forum.com/t/activerecord-nested-attributes-create-missing-association/188823)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 1\
**Last updated:** [May 19, 2010, 2:47pm UTC](https://www.ruby-forum.com/t/activerecord-nested-attributes-create-missing-association/188823 "2010-05-19T14:47:03Z")

</div>

Hi I’m working on an issue described in this ticket: https://rails.lighthouseapp.com/projects/8994/tickets/2415-accepts\_nested\_attributes\_for-doest-work-when-nested\_attributes-hash-has-an-id-entry#ticket-2415-6 I’ve a…

---

## [\[Event\] Acts As Conference 2010 - We Want You To Speak!](https://www.ruby-forum.com/t/event-acts-as-conference-2010-we-want-you-to-speak/188859)

<div class="topic-metadata">

**Author:** [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Replies:** 0\
**Last updated:** [May 19, 2010, 2:42pm UTC](https://www.ruby-forum.com/t/event-acts-as-conference-2010-we-want-you-to-speak/188859 "2010-05-19T14:42:47Z")

</div>

Hi everyone, The call for proposals is open for Acts as Conference 2010. This year we’re focusing on software craftsmanship, Agile, web development, and of course the leading edge in the Ruby on Rails world. We’re goi…

---

## [Customized form\_for in ApplicationHelper](https://www.ruby-forum.com/t/customized-form-for-in-applicationhelper/188851)

<div class="topic-metadata">

**Author:** [@poseid](https://www.ruby-forum.com/u/poseid)\
**Replies:** 0\
**Last updated:** [May 19, 2010, 11:54am UTC](https://www.ruby-forum.com/t/customized-form-for-in-applicationhelper/188851 "2010-05-19T11:54:47Z")

</div>

hello, I want to make a table within a form by making a new form\_tag. The following code in ApplicationHelper fails: def tabular\_form\_for(name, object = nil, options = nil, &proc) concat(" ", proc.binding) form\_for(…

---

## [HABTM Blank Join table](https://www.ruby-forum.com/t/habtm-blank-join-table/188778)

<div class="topic-metadata">

**Author:** [@brianp](https://www.ruby-forum.com/u/brianp)\
**Replies:** 3\
**Last updated:** [May 19, 2010, 10:30am UTC](https://www.ruby-forum.com/t/habtm-blank-join-table/188778 "2010-05-19T10:30:30Z")

</div>

Based of the declaritive\_authorization railscast I’ve set up a roles table containing 3 role types. A user table and a roles\_users table. No matter what I do the join table is always empty. DB: create\_table “roles”, …

---

## [Rails, Paperclip and SWFupload](https://www.ruby-forum.com/t/rails-paperclip-and-swfupload/188811)

<div class="topic-metadata">

**Author:** [@Ruby\_on\_RailsS\_Talk](https://www.ruby-forum.com/u/Ruby_on_RailsS_Talk)\
**Replies:** 8\
**Last updated:** [May 19, 2010, 10:00am UTC](https://www.ruby-forum.com/t/rails-paperclip-and-swfupload/188811 "2010-05-19T10:00:04Z")

</div>

Hi I’m sure this is in the wrong group - so any suggestions for a right group would be great! And you have my express permission to treat me like an idiot in replies! I have a fair amount of knowledge … but … obvious…

---

## [Ajax on load?](https://www.ruby-forum.com/t/ajax-on-load/188840)

<div class="topic-metadata">

**Author:** [@badnaam](https://www.ruby-forum.com/u/badnaam)\
**Replies:** 1\
**Last updated:** [May 19, 2010, 9:55am UTC](https://www.ruby-forum.com/t/ajax-on-load/188840 "2010-05-19T09:55:58Z")

</div>

Hi, I have a form with a select box and there is a div under the select box that gets populated with data collected via ajax, based on the value selected in the select box. I use an observe field to accomplish this. …

---

## [Validation on association create](https://www.ruby-forum.com/t/validation-on-association-create/188827)

<div class="topic-metadata">

**Author:** [@brianp](https://www.ruby-forum.com/u/brianp)\
**Replies:** 2\
**Last updated:** [May 19, 2010, 9:55am UTC](https://www.ruby-forum.com/t/validation-on-association-create/188827 "2010-05-19T09:55:58Z")

</div>

Hey I’m having the worst time with 1 block of my app lol. I have an address model with many validations. I run this code on a 4 model form. If the params for the adresses are blank (not valid) or just not valid the o…

---

## [Observe\_field not working on dependeng collection\_select](https://www.ruby-forum.com/t/observe-field-not-working-on-dependeng-collection-select/188844)

<div class="topic-metadata">

**Author:** [@ianneub](https://www.ruby-forum.com/u/ianneub)\
**Replies:** 0\
**Last updated:** [May 19, 2010, 9:36am UTC](https://www.ruby-forum.com/t/observe-field-not-working-on-dependeng-collection-select/188844 "2010-05-19T09:36:39Z")

</div>

Setup: I have 3 drop downs generated by collection\_select, where in the next drop down’s option values are dependent on which option value was selected in the previous drop down. This is done using observe\_field. e.g…

---

## [Migration not creating new user object](https://www.ruby-forum.com/t/migration-not-creating-new-user-object/188770)

<div class="topic-metadata">

**Author:** [@ali](https://www.ruby-forum.com/u/ali)\
**Replies:** 5\
**Last updated:** [May 19, 2010, 6:42am UTC](https://www.ruby-forum.com/t/migration-not-creating-new-user-object/188770 "2010-05-19T06:42:15Z")

</div>

Hi, so I’m new to rails development, and I’m following a book called Practical Rails: Social Networking Sites. There’s a user role system that the book develops, each user has a one or more roles and vice versa. So I …

---

## [Searchlogic](https://www.ruby-forum.com/t/searchlogic/188712)

<div class="topic-metadata">

**Author:** [@davidz101](https://www.ruby-forum.com/u/davidz101)\
**Replies:** 3\
**Last updated:** [May 19, 2010, 2:25am UTC](https://www.ruby-forum.com/t/searchlogic/188712 "2010-05-19T02:25:16Z")

</div>

Hey The guys at the searchlogic google groups seem to be asleep -.- They didnt’ grant me permission to post yet. But anyways, right now, I followed the searchlogic tutorial found here -http://www.binarylogic.com/2008…

---

## [Saving Restful routes path in database](https://www.ruby-forum.com/t/saving-restful-routes-path-in-database/188787)

<div class="topic-metadata">

**Author:** [@builtbysimple](https://www.ruby-forum.com/u/builtbysimple)\
**Replies:** 2\
**Last updated:** [May 19, 2010, 2:02am UTC](https://www.ruby-forum.com/t/saving-restful-routes-path-in-database/188787 "2010-05-19T02:02:26Z")

</div>

Dear all, I would like to save a restful resource in the database, and display it as a link on the web page. I tried saving: bar\_path(1) into the path column in the table, but unfortunately it doesn’t work when I d…

---

## [Mechanize alternative that uses kerberos](https://www.ruby-forum.com/t/mechanize-alternative-that-uses-kerberos/188826)

<div class="topic-metadata">

**Author:** [@leogodin217](https://www.ruby-forum.com/u/leogodin217)\
**Replies:** 1\
**Last updated:** [May 19, 2010, 2:00am UTC](https://www.ruby-forum.com/t/mechanize-alternative-that-uses-kerberos/188826 "2010-05-19T02:00:41Z")

</div>

Hi All, I’m working on an application that needs to crawl a Windows intranet site that does not use NTLM (basic authentication). Does anyone know of a library like mechanize that can use Kerberos? I think Kerberos …

---

## [Temporal calculations and timezone corrections](https://www.ruby-forum.com/t/temporal-calculations-and-timezone-corrections/186839)

<div class="topic-metadata">

**Author:** [@mhfs](https://www.ruby-forum.com/u/mhfs)\
**Replies:** 6\
**Last updated:** [May 18, 2010, 11:34pm UTC](https://www.ruby-forum.com/t/temporal-calculations-and-timezone-corrections/186839 "2010-05-18T23:34:51Z")

</div>

Hello all, I wonder how you guys handle subscription-cycles (and or billing cycles) and time-zones – well, not only limited to billing-cycles but to any other temporalish feature such as trials, expiration dates etc. …

---

## [XML or YML?](https://www.ruby-forum.com/t/xml-or-yml/188796)

<div class="topic-metadata">

**Author:** [@daborg69](https://www.ruby-forum.com/u/daborg69)\
**Replies:** 23\
**Last updated:** [May 18, 2010, 9:51pm UTC](https://www.ruby-forum.com/t/xml-or-yml/188796 "2010-05-18T21:51:49Z")

</div>

Hello, I’m probably being really dumb but I can never figure this out. I want to store things like categories, salutations, image type etc etc but it seems dumb to create a database table for each of these. Is there …

---

## [How I can install Heroku Gem?](https://www.ruby-forum.com/t/how-i-can-install-heroku-gem/188686)

<div class="topic-metadata">

**Author:** [@distriker](https://www.ruby-forum.com/u/distriker)\
**Replies:** 11\
**Last updated:** [May 18, 2010, 9:36pm UTC](https://www.ruby-forum.com/t/how-i-can-install-heroku-gem/188686 "2010-05-18T21:36:36Z")

</div>

Hello, I want install the Heroku Gem and I try, and try, but I haven’t successfully. Can someone help me? Sorry, but I can search in Google and I don’t found nothing. Greetings

---

## [Rails Database Configuration](https://www.ruby-forum.com/t/rails-database-configuration/188808)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 3\
**Last updated:** [May 18, 2010, 9:28pm UTC](https://www.ruby-forum.com/t/rails-database-configuration/188808 "2010-05-18T21:28:34Z")

</div>

I’m building an application in which I’d like groups of users to have their own dedicated MySQL/SQLite database for the application. How can I configure Rails so that ActiveRecord uses that group’s dedicated databas…

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

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