# Rails

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

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

---

## [About duplication in a (HABTM) join table](https://www.ruby-forum.com/t/about-duplication-in-a-habtm-join-table/112777)

<div class="topic-metadata">

**Author:** [@midwaltz](https://www.ruby-forum.com/u/midwaltz)\
**Replies:** 3\
**Last updated:** [August 25, 2007, 3:56am UTC](https://www.ruby-forum.com/t/about-duplication-in-a-habtm-join-table/112777 "2007-08-25T03:56:19Z")

</div>

I’m new to rails and databases, needless to say I’m pretty confused here. There’s this issue I don’t understand how to resolve, heck I don’t even know if it’s an issue. I’ve also been searching for answers here, forum…

---

## [Unexpected routes behavior](https://www.ruby-forum.com/t/unexpected-routes-behavior/112956)

<div class="topic-metadata">

**Author:** [@steve\_odom](https://www.ruby-forum.com/u/steve_odom)\
**Replies:** 4\
**Last updated:** [August 25, 2007, 1:02am UTC](https://www.ruby-forum.com/t/unexpected-routes-behavior/112956 "2007-08-25T01:02:02Z")

</div>

I must be doing something wrong in my routing. In my routes I have… map.with\_options :controller =\> ‘users’, :action =\> ‘revisions’ do | user| user.remedy\_revisions ‘users/:user\_id/ revisions/:klass’, :klass =\> “…

---

## [Restful authentication - session\_path](https://www.ruby-forum.com/t/restful-authentication-session-path/112961)

<div class="topic-metadata">

**Author:** [@ddancer](https://www.ruby-forum.com/u/ddancer)\
**Replies:** 2\
**Last updated:** [August 25, 2007, 12:44am UTC](https://www.ruby-forum.com/t/restful-authentication-session-path/112961 "2007-08-25T00:44:55Z")

</div>

trying to make use of the restful-authentication plugin, however the login page gives… ActionController::RoutingError in Sessions#new Showing app/views/sessions/new.rhtml where line #1 raised: session\_url failed to g…

---

## [Please help me in stalling Ruby on Rails](https://www.ruby-forum.com/t/please-help-me-in-stalling-ruby-on-rails/112952)

<div class="topic-metadata">

**Author:** [@cool](https://www.ruby-forum.com/u/cool)\
**Replies:** 1\
**Last updated:** [August 24, 2007, 11:37pm UTC](https://www.ruby-forum.com/t/please-help-me-in-stalling-ruby-on-rails/112952 "2007-08-24T23:37:39Z")

</div>

Hi, I am new to the platform. I have used manual instaaltion. downloaded ruby latestversion and installed. ruby -v = 1.8.6 downloaded .zip package of ruby gems, extracted and run setup. gem - v = 0.9.4 downloaded a…

---

## [Re: ActiveRecord Store of sessions in a separate database (c](https://www.ruby-forum.com/t/re-activerecord-store-of-sessions-in-a-separate-database-c/112957)

<div class="topic-metadata">

**Author:** [@AlAlAl](https://www.ruby-forum.com/u/AlAlAl)\
**Replies:** 0\
**Last updated:** [August 24, 2007, 11:34pm UTC](https://www.ruby-forum.com/t/re-activerecord-store-of-sessions-in-a-separate-database-c/112957 "2007-08-24T23:34:38Z")

</div>

So no one out there has tried saving their sessions data in a separate db? I’m stuck with a chicken-and-egg problem of trying to get ActiveRecord loaded early enough for the config block to properly identify my Sessio…

---

## [REXML Attributes and entities](https://www.ruby-forum.com/t/rexml-attributes-and-entities/112901)

<div class="topic-metadata">

**Author:** [@gamecreature](https://www.ruby-forum.com/u/gamecreature)\
**Replies:** 1\
**Last updated:** [August 24, 2007, 11:29pm UTC](https://www.ruby-forum.com/t/rexml-attributes-and-entities/112901 "2007-08-24T23:29:38Z")

</div>

Hi, Maybe I’m missing something, but I’m trying to store a REXML Document to a string, loading it back later. Storing it again. etc… I’ve noticed the following problem: script/console session: xml = REXML::Documen…

---

## [Ofline OpenID Development](https://www.ruby-forum.com/t/ofline-openid-development/112751)

<div class="topic-metadata">

**Author:** [@davidtl](https://www.ruby-forum.com/u/davidtl)\
**Replies:** 2\
**Last updated:** [August 24, 2007, 10:07pm UTC](https://www.ruby-forum.com/t/ofline-openid-development/112751 "2007-08-24T22:07:08Z")

</div>

I am working with an app that will utilize openid as the sole authentication protocol. I’m using Ben Curtis’ Sample Apphttp://www.bencurtis.com/archives/2007/07/openid-sample-application-updated/as a framework, but o…

---

## [Calling a method on class creation](https://www.ruby-forum.com/t/calling-a-method-on-class-creation/112871)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 6\
**Last updated:** [August 24, 2007, 9:59pm UTC](https://www.ruby-forum.com/t/calling-a-method-on-class-creation/112871 "2007-08-24T21:59:03Z")

</div>

I have a model User that has property called status. Status is just a string that can only be evaluated and not persisted. I.e. it doesn’t have a field in the user table. Anyways, I would like a method get\_status to b…

---

## [Where to put this logic: model or controller?](https://www.ruby-forum.com/t/where-to-put-this-logic-model-or-controller/112898)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 10\
**Last updated:** [August 24, 2007, 9:28pm UTC](https://www.ruby-forum.com/t/where-to-put-this-logic-model-or-controller/112898 "2007-08-24T21:28:59Z")

</div>

I have an ActiveRecord model called User, here’s my migration and model: class CreateUsers \< ActiveRecord::Migration def self.up create\_table :users do |t| t.column :email, :string, :null =\> false t.column :full\_na…

---

## [Please help me with the installation of ROR](https://www.ruby-forum.com/t/please-help-me-with-the-installation-of-ror/112946)

<div class="topic-metadata">

**Author:** [@cool](https://www.ruby-forum.com/u/cool)\
**Replies:** 0\
**Last updated:** [August 24, 2007, 9:27pm UTC](https://www.ruby-forum.com/t/please-help-me-with-the-installation-of-ror/112946 "2007-08-24T21:27:07Z")

</div>

Hi, I am new to the platform. I have used manual instaaltion. downloaded ruby latestversion and installed. ruby -v = 1.8.6 downloaded .zip package of ruby gems, extracted and run setup. gem -v = 0.9.4 downloaded all…

---

## [Problem in installing act\_as\_attachment plugin](https://www.ruby-forum.com/t/problem-in-installing-act-as-attachment-plugin/112945)

<div class="topic-metadata">

**Author:** [@vijayendra](https://www.ruby-forum.com/u/vijayendra)\
**Replies:** 1\
**Last updated:** [August 24, 2007, 9:21pm UTC](https://www.ruby-forum.com/t/problem-in-installing-act-as-attachment-plugin/112945 "2007-08-24T21:21:56Z")

</div>

HI I am trying to install act\_as\_attachment , i tried this command script/plugin source http://svn.techno-weenie.net/projects/plugins Added 1 repositories. and when i try to install by ruby script/plugin install ac…

---

## [Update\_attributes...more efficient replacement](https://www.ruby-forum.com/t/update-attributes-more-efficient-replacement/112943)

<div class="topic-metadata">

**Author:** [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Replies:** 2\
**Last updated:** [August 24, 2007, 9:20pm UTC](https://www.ruby-forum.com/t/update-attributes-more-efficient-replacement/112943 "2007-08-24T21:20:10Z")

</div>

I was browsing through the Rails Docs, looking for a better way to do updates. When you use update\_attributes, it saves all the attributes from the object. I have some objects with very large text fields which means a …

---

## [What lessons did you learn when your Rails app went "live"](https://www.ruby-forum.com/t/what-lessons-did-you-learn-when-your-rails-app-went-live/112888)

<div class="topic-metadata">

**Author:** [@jeffpritchard](https://www.ruby-forum.com/u/jeffpritchard)\
**Replies:** 10\
**Last updated:** [August 24, 2007, 8:43pm UTC](https://www.ruby-forum.com/t/what-lessons-did-you-learn-when-your-rails-app-went-live/112888 "2007-08-24T20:43:47Z")

</div>

I’m working on a pretty complex Rails site (many tables, many ajaxed controllers, etc.) that will be entering the mainstream of the InterTubes in a few weeks. I was wondering if any of you who have previously arrived…

---

## [Undefined local variable or method \`logger'](https://www.ruby-forum.com/t/undefined-local-variable-or-method-logger/112918)

<div class="topic-metadata">

**Author:** [@dnstevenson](https://www.ruby-forum.com/u/dnstevenson)\
**Replies:** 1\
**Last updated:** [August 24, 2007, 8:33pm UTC](https://www.ruby-forum.com/t/undefined-local-variable-or-method-logger/112918 "2007-08-24T20:33:46Z")

</div>

I have a helper module /lib/foo\_helper.rb. It works fine but any calls to logger result in: undefined local variable or method \`logger’ how can I get access to the logger here? (it works from my model classes)

---

## [Mod\_rewrite Ruby alternative](https://www.ruby-forum.com/t/mod-rewrite-ruby-alternative/112942)

<div class="topic-metadata">

**Author:** [@mrom](https://www.ruby-forum.com/u/mrom)\
**Replies:** 0\
**Last updated:** [August 24, 2007, 7:37pm UTC](https://www.ruby-forum.com/t/mod-rewrite-ruby-alternative/112942 "2007-08-24T19:37:12Z")

</div>

It seems that my host is disabling the apache mod\_rewrite module, Have you any idea how to replace the the behaviour of .htaccess by some ruby staff. (I’ve used previously a high level php that makes the RewriteUrl). …

---

## [Idiomatic way to do a non-database Enumeration?](https://www.ruby-forum.com/t/idiomatic-way-to-do-a-non-database-enumeration/112852)

<div class="topic-metadata">

**Author:** [@Zeekar](https://www.ruby-forum.com/u/Zeekar)\
**Replies:** 4\
**Last updated:** [August 24, 2007, 7:10pm UTC](https://www.ruby-forum.com/t/idiomatic-way-to-do-a-non-database-enumeration/112852 "2007-08-24T19:10:32Z")

</div>

I have a class which stores as one of its attributes a day of the week as an integer (0-6, 0=Sunday, standard UNIXy values). I want, obviously, the views to show the weekday name and the forms to provide a drop-down …

---

## [Need a good laugh?](https://www.ruby-forum.com/t/need-a-good-laugh/112940)

<div class="topic-metadata">

**Author:** [@patched](https://www.ruby-forum.com/u/patched)\
**Replies:** 0\
**Last updated:** [August 24, 2007, 6:29pm UTC](https://www.ruby-forum.com/t/need-a-good-laugh/112940 "2007-08-24T18:29:25Z")

</div>

Hey guys, At RailsEnvy.com we just released two new videos, only about a minute each. Ruby on Rails vs .NET - http://www.railsenvy.com/2007/8/23/Rails-vs-NET Ruby on Rails vs PHP - http://www.railsenvy.com/2007/8/24…

---

## [Error in rails 1.2.3 activerecord](https://www.ruby-forum.com/t/error-in-rails-1-2-3-activerecord/112926)

<div class="topic-metadata">

**Author:** [@bitsmith](https://www.ruby-forum.com/u/bitsmith)\
**Replies:** 2\
**Last updated:** [August 24, 2007, 6:23pm UTC](https://www.ruby-forum.com/t/error-in-rails-1-2-3-activerecord/112926 "2007-08-24T18:23:25Z")

</div>

i’m a rails nuby so i don’t know where to fix this in the activerecord module… there is no such column in the sys.view.user\_constraints. SELECT uc.index\_name FROM user\_constraints uc WHERE uc.constraint\_type = ‘P’ t…

---

## [Assert\_select - seemingly unrelated error?](https://www.ruby-forum.com/t/assert-select-seemingly-unrelated-error/112928)

<div class="topic-metadata">

**Author:** [@Hugh\_S](https://www.ruby-forum.com/u/Hugh_S)\
**Replies:** 1\
**Last updated:** [August 24, 2007, 6:23pm UTC](https://www.ruby-forum.com/t/assert-select-seemingly-unrelated-error/112928 "2007-08-24T18:23:25Z")

</div>

I’m getting Error: test\_loan\_to\_bad\_user(AdminControllerTest): RuntimeError: expected \> (got “@attributes={“description\_id”=\>” for \<Device:0x7ef70994 @attributes={“description\_id”=\>, {}) from an assert\_select “div…

---

## [Does active record really work for oracle](https://www.ruby-forum.com/t/does-active-record-really-work-for-oracle/112937)

<div class="topic-metadata">

**Author:** [@bitsmith](https://www.ruby-forum.com/u/bitsmith)\
**Replies:** 2\
**Last updated:** [August 24, 2007, 6:09pm UTC](https://www.ruby-forum.com/t/does-active-record-really-work-for-oracle/112937 "2007-08-24T18:09:06Z")

</div>

i get this when i try to unit test: C:\\railsspace\>ruby c:\\railsspace\\test\\functional\\user\_controller\_test.rb Loaded suite c:/railsspace/test/functional/user\_controller\_test Started …E. Finished in 0.578 seconds. E…

---

## [Software Engineer Position Available, Herndon, VA - Ruby on](https://www.ruby-forum.com/t/software-engineer-position-available-herndon-va-ruby-on/112938)

<div class="topic-metadata">

**Author:** [@Focus\_Technology\_Co](https://www.ruby-forum.com/u/Focus_Technology_Co)\
**Replies:** 0\
**Last updated:** [August 24, 2007, 6:05pm UTC](https://www.ruby-forum.com/t/software-engineer-position-available-herndon-va-ruby-on/112938 "2007-08-24T18:05:23Z")

</div>

Hello Ruby on Rails groups! My name is Kristy Julien and I am recruiting for a Mid-level Software Engineer position that is currently available in Herndon, VA. The position is contract to hire with a very progressiv…

---

## [Handle active record erros](https://www.ruby-forum.com/t/handle-active-record-erros/112936)

<div class="topic-metadata">

**Author:** [@claxo](https://www.ruby-forum.com/u/claxo)\
**Replies:** 0\
**Last updated:** [August 24, 2007, 5:58pm UTC](https://www.ruby-forum.com/t/handle-active-record-erros/112936 "2007-08-24T17:58:36Z")

</div>

class Product \< ActiveRecord::Base def self.find(\*args) begin super args rescue ActiveRecord::StatementInvalid =\> error raise “Sorry!” end end With this i can display in the exception page whatever i want…but my…

---

## [Acts\_as\_attachment - on server copy?](https://www.ruby-forum.com/t/acts-as-attachment-on-server-copy/112771)

<div class="topic-metadata">

**Author:** [@bakki](https://www.ruby-forum.com/u/bakki)\
**Replies:** 6\
**Last updated:** [August 24, 2007, 5:39pm UTC](https://www.ruby-forum.com/t/acts-as-attachment-on-server-copy/112771 "2007-08-24T17:39:20Z")

</div>

Hi all, I am using aaa for uploads (Upload model) of assets to a dir below public. I also need to save files, into the Upload model, which come as attachments by email. Is there a way I can ask aaa to save the attac…

---

## [Condition for find based on a related model?](https://www.ruby-forum.com/t/condition-for-find-based-on-a-related-model/112935)

<div class="topic-metadata">

**Author:** [@s0nspark](https://www.ruby-forum.com/u/s0nspark)\
**Replies:** 0\
**Last updated:** [August 24, 2007, 5:36pm UTC](https://www.ruby-forum.com/t/condition-for-find-based-on-a-related-model/112935 "2007-08-24T17:36:02Z")

</div>

I recently refactored a table/model to split off some of the fields into a child table. Initially there was only a single data set related to the model but now there may be more than one… My problem now is that I was …

---

## [Uploading Very Large Files](https://www.ruby-forum.com/t/uploading-very-large-files/111746)

<div class="topic-metadata">

**Author:** [@AmitYadav](https://www.ruby-forum.com/u/AmitYadav)\
**Replies:** 4\
**Last updated:** [August 24, 2007, 4:26pm UTC](https://www.ruby-forum.com/t/uploading-very-large-files/111746 "2007-08-24T16:26:20Z")

</div>

Hi All, I want to upload very large files in GB through ruby on rails + Ajax platform. I am not able to find any concrete solution for this. Please help me so that i can get this done. Regards, Amit Yadav

---

## [Permissions error when using Rick Olson's deploy\_edge](https://www.ruby-forum.com/t/permissions-error-when-using-rick-olsons-deploy-edge/112930)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 0\
**Last updated:** [August 24, 2007, 4:09pm UTC](https://www.ruby-forum.com/t/permissions-error-when-using-rick-olsons-deploy-edge/112930 "2007-08-24T16:09:43Z")

</div>

Hi all - I tried the question below on the Rails Deployment forum, but that forum seems to get very little traffic. Perhaps someone here can offer some help: I’ve been trying to get my app running on Rails edge per t…

---

## [Column types and date formatting](https://www.ruby-forum.com/t/column-types-and-date-formatting/112883)

<div class="topic-metadata">

**Author:** [@arigold](https://www.ruby-forum.com/u/arigold)\
**Replies:** 1\
**Last updated:** [August 24, 2007, 4:05pm UTC](https://www.ruby-forum.com/t/column-types-and-date-formatting/112883 "2007-08-24T16:05:00Z")

</div>

hi everyone, working on my education tool here (im a teacher) and am having trouble getting my times to format right. im using the scaffold code and thought this would work: \<td\> \<% if lesson.send(column.name).typ…

---

## [Ldap+windows+instant rails](https://www.ruby-forum.com/t/ldap-windows-instant-rails/112929)

<div class="topic-metadata">

**Author:** [@shyamydv](https://www.ruby-forum.com/u/shyamydv)\
**Replies:** 0\
**Last updated:** [August 24, 2007, 4:04pm UTC](https://www.ruby-forum.com/t/ldap-windows-instant-rails/112929 "2007-08-24T16:04:26Z")

</div>

Hello guys , I am new in Ruby on rails , I have installed Ruby+rails+gem +mysql+oracle , from instant rail package installer now i want to run ldap on my windows system , so please help me how i can do that please …

---

## [Rails Engines](https://www.ruby-forum.com/t/rails-engines/196447)

<div class="topic-metadata">

**Author:** [@shyamydv](https://www.ruby-forum.com/u/shyamydv)\
**Replies:** 0\
**Last updated:** [August 24, 2007, 3:54pm UTC](https://www.ruby-forum.com/t/rails-engines/196447 "2007-08-24T15:54:23Z")

</div>

Hello guys , I am new in Ruby on rails , I have installed Ruby+rails+gem +mysql+oracle , from instant rail package installer now i want to run ldap on my windows system , so please help me how i can do that please …

---

## [Saving ActiveRecord in PostgreSQL without id](https://www.ruby-forum.com/t/saving-activerecord-in-postgresql-without-id/112862)

<div class="topic-metadata">

**Author:** [@yaman666](https://www.ruby-forum.com/u/yaman666)\
**Replies:** 6\
**Last updated:** [August 24, 2007, 3:36pm UTC](https://www.ruby-forum.com/t/saving-activerecord-in-postgresql-without-id/112862 "2007-08-24T15:36:58Z")

</div>

I have a small table that is used to temporarily queue requests, as such it does not have an id field (or any other primary key), because it doesn’t make sense to have one. When I created an ActiveRecord class and tri…

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

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