# Rails

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

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

---

## [Rails project from svn to git WITHOUT history](https://www.ruby-forum.com/t/rails-project-from-svn-to-git-without-history/186779)

<div class="topic-metadata">

**Author:** [@sudara](https://www.ruby-forum.com/u/sudara)\
**Replies:** 6\
**Last updated:** [March 11, 2008, 2:45pm UTC](https://www.ruby-forum.com/t/rails-project-from-svn-to-git-without-history/186779 "2008-03-11T14:45:10Z")

</div>

This is not the best place to ask, but I figure another railer may have run into this situation: I’m moving a svn repo to git. I DONT want to push the the svn history upstream. Without the negativity: I want the git …

---

## [How to require an entire directory of files at path/to/rails/lib in environment.rb?](https://www.ruby-forum.com/t/how-to-require-an-entire-directory-of-files-at-path-to-rails-lib-in-environment-rb/131536)

<div class="topic-metadata">

**Author:** [@Winston\_T](https://www.ruby-forum.com/u/Winston_T)\
**Replies:** 3\
**Last updated:** [March 11, 2008, 1:54pm UTC](https://www.ruby-forum.com/t/how-to-require-an-entire-directory-of-files-at-path-to-rails-lib-in-environment-rb/131536 "2008-03-11T13:54:22Z")

</div>

Hi, I searched through the group, but I can’t seem to find any reference for this. I understand that if files are named in lowercase, classes are named according to rails convention, and placed in lib directory, they…

---

## [SQL - int not inserted into database correctly](https://www.ruby-forum.com/t/sql-int-not-inserted-into-database-correctly/131516)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [March 11, 2008, 11:48am UTC](https://www.ruby-forum.com/t/sql-int-not-inserted-into-database-correctly/131516 "2008-03-11T11:48:39Z")

</div>

Hello I’m using writertopia authentication plugin. Looking at the Rails server output I see the following insert when I call current\_user.has\_role ‘moderator’ @group SQL (0.000154) BEGIN Role Create (0.000424) I…

---

## [Deploying from windows using deprec at slicehost](https://www.ruby-forum.com/t/deploying-from-windows-using-deprec-at-slicehost/131525)

<div class="topic-metadata">

**Author:** [@jose\_d](https://www.ruby-forum.com/u/jose_d)\
**Replies:** 2\
**Last updated:** [March 11, 2008, 11:45am UTC](https://www.ruby-forum.com/t/deploying-from-windows-using-deprec-at-slicehost/131525 "2008-03-11T11:45:15Z")

</div>

I am trying to setup my WinXP to deploy a rails app to slicehost using deprec, just following the nice tutorial from this link http://crackthenut.cracklabs.com/deprec2-your-slice-from-windows/ , but I am getting an er…

---

## [Constant for ActionController::RoutingError class?](https://www.ruby-forum.com/t/constant-for-actioncontroller-routingerror-class/131513)

<div class="topic-metadata">

**Author:** [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Replies:** 2\
**Last updated:** [March 11, 2008, 10:36am UTC](https://www.ruby-forum.com/t/constant-for-actioncontroller-routingerror-class/131513 "2008-03-11T10:36:48Z")

</div>

I’m writing a default application-wide rescue\_action\_in\_public. I’d like to do something special when the exception raised was a routing error. Inspecting in debugger, I get: (rdb:1) p exception.class ActionControlle…

---

## [How to add more actions in namespace route](https://www.ruby-forum.com/t/how-to-add-more-actions-in-namespace-route/131552)

<div class="topic-metadata">

**Author:** [@myst\_tt](https://www.ruby-forum.com/u/myst_tt)\
**Replies:** 2\
**Last updated:** [March 11, 2008, 10:20am UTC](https://www.ruby-forum.com/t/how-to-add-more-actions-in-namespace-route/131552 "2008-03-11T10:20:53Z")

</div>

Hello, there: My app has already generated default actions, like index, edit, update, create, etc. , on a namespace “admin” URL, the route is as follow. However, I haven’t figured out how to add new actions in class…

---

## [About the plugin:auto\_complete](https://www.ruby-forum.com/t/about-the-plugin-auto-complete/131555)

<div class="topic-metadata">

**Author:** [@xieoy](https://www.ruby-forum.com/u/xieoy)\
**Replies:** 0\
**Last updated:** [March 11, 2008, 10:04am UTC](https://www.ruby-forum.com/t/about-the-plugin-auto-complete/131555 "2008-03-11T10:04:21Z")

</div>

I follow the instruction : http://wiki.rubyonrails.org/rails/pages/How+to+use+text\_field\_with\_auto\_complete but failed My Firebug said http://localhost:3001/users/auto\_complete\_for\_language\_name422 (360ms) prototy…

---

## [Using a boolean attribute with a conditional statement](https://www.ruby-forum.com/t/using-a-boolean-attribute-with-a-conditional-statement/131512)

<div class="topic-metadata">

**Author:** [@chunkyslink](https://www.ruby-forum.com/u/chunkyslink)\
**Replies:** 5\
**Last updated:** [March 11, 2008, 9:39am UTC](https://www.ruby-forum.com/t/using-a-boolean-attribute-with-a-conditional-statement/131512 "2008-03-11T09:39:23Z")

</div>

I’m betting this is a schoolboy error: I have a ‘protected\_profile’ boolean attribute in my user model, and I want to use it in a controller action, like so; if @user.protected\_profile = true some.task else some\_ot…

---

## [Is there such an association as has\_and\_belongs\_to\_one?](https://www.ruby-forum.com/t/is-there-such-an-association-as-has-and-belongs-to-one/131499)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 1\
**Last updated:** [March 11, 2008, 6:12am UTC](https://www.ruby-forum.com/t/is-there-such-an-association-as-has-and-belongs-to-one/131499 "2008-03-11T06:12:06Z")

</div>

sorry - just had to post my colleague’s non-serious question! (imagine the plugin;)

---

## [Gettting the current windows user id](https://www.ruby-forum.com/t/gettting-the-current-windows-user-id/131257)

<div class="topic-metadata">

**Author:** [@Prasanna\_kumar\_N](https://www.ruby-forum.com/u/Prasanna_kumar_N)\
**Replies:** 7\
**Last updated:** [March 11, 2008, 5:52am UTC](https://www.ruby-forum.com/t/gettting-the-current-windows-user-id/131257 "2008-03-11T05:52:20Z")

</div>

Hi I have where users can enter title and description that gets stored in the database. since this will not give information on who has entered what… I was thinking of haveing a filed say created\_by to which I can in…

---

## [Calling action from one controller to second](https://www.ruby-forum.com/t/calling-action-from-one-controller-to-second/131454)

<div class="topic-metadata">

**Author:** [@harper](https://www.ruby-forum.com/u/harper)\
**Replies:** 2\
**Last updated:** [March 11, 2008, 4:24am UTC](https://www.ruby-forum.com/t/calling-action-from-one-controller-to-second/131454 "2008-03-11T04:24:35Z")

</div>

question: class ControllerAthing def a\_method end end class ControllerBthing def b\_method ControllerAthing::a\_method #this is what i want to do end end but when i do that i can an error: undefined method \`a\_me…

---

## [Question about file\_column, rmagick](https://www.ruby-forum.com/t/question-about-file-column-rmagick/131410)

<div class="topic-metadata">

**Author:** [@beexk](https://www.ruby-forum.com/u/beexk)\
**Replies:** 2\
**Last updated:** [March 11, 2008, 3:08am UTC](https://www.ruby-forum.com/t/question-about-file-column-rmagick/131410 "2008-03-11T03:08:56Z")

</div>

I think I must be being really dense… I just can’t make file\_column + rmagick work. could you give me a sample? Thank you very very very very much.

---

## [Dumb migration question](https://www.ruby-forum.com/t/dumb-migration-question/131526)

<div class="topic-metadata">

**Author:** [@ron](https://www.ruby-forum.com/u/ron)\
**Replies:** 1\
**Last updated:** [March 11, 2008, 12:19am UTC](https://www.ruby-forum.com/t/dumb-migration-question/131526 "2008-03-11T00:19:15Z")

</div>

Hi, So this is a bit embarrassing, but I’ve been working through the depot tutorial in Agile Web D… In the add\_column migration, there is: add\_column :products, :price, :decimal, :precision =\> 8, :scale=\>2, :defaul…

---

## [Iterating over a collection, three at a time](https://www.ruby-forum.com/t/iterating-over-a-collection-three-at-a-time/131508)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 3\
**Last updated:** [March 11, 2008, 12:01am UTC](https://www.ruby-forum.com/t/iterating-over-a-collection-three-at-a-time/131508 "2008-03-11T00:01:01Z")

</div>

Hi all, The subject sums up what I want to do in a nutshell. I have a collection of ActiveRecord objects (@galleries), and I want to generate from it another collection of arrays, each three elements long. This is sim…

---

## [Batch POST/PUT with REST?](https://www.ruby-forum.com/t/batch-post-put-with-rest/131509)

<div class="topic-metadata">

**Author:** [@starmaerker](https://www.ruby-forum.com/u/starmaerker)\
**Replies:** 1\
**Last updated:** [March 10, 2008, 11:19pm UTC](https://www.ruby-forum.com/t/batch-post-put-with-rest/131509 "2008-03-10T23:19:12Z")

</div>

Is there any facility in RoR to create/edit multiple objects with a single call. I am developing an application which allows users to upload data via a REST API. The only issue is that people will be creating 1000’s o…

---

## [Vancouver.rb Q&A with Brock Whitten on Rails, Getting Off Rails (Merb), PmpknPi (Blog in Merb) and](https://www.ruby-forum.com/t/vancouver-rb-q-a-with-brock-whitten-on-rails-getting-off-rails-merb-pmpknpi-blog-in-merb-and/131519)

<div class="topic-metadata">

**Author:** [@gerald\_b](https://www.ruby-forum.com/u/gerald_b)\
**Replies:** 0\
**Last updated:** [March 10, 2008, 10:31pm UTC](https://www.ruby-forum.com/t/vancouver-rb-q-a-with-brock-whitten-on-rails-getting-off-rails-merb-pmpknpi-blog-in-merb-and/131519 "2008-03-10T22:31:18Z")

</div>

Hello, I’ve published a Q&A in the Vancouver.rb series with Brock Whitten. Questions include: How did you get started with Ruby on Rails? What makes Ruby on Rails a great choice for developing web applications/site…

---

## [Social graph](https://www.ruby-forum.com/t/social-graph/131514)

<div class="topic-metadata">

**Author:** [@gadys](https://www.ruby-forum.com/u/gadys)\
**Replies:** 2\
**Last updated:** [March 10, 2008, 10:19pm UTC](https://www.ruby-forum.com/t/social-graph/131514 "2008-03-10T22:19:29Z")

</div>

Hi I’m trying to build a new facebook app. I want to keep a database of the friends of friends for each user. what’s the best way to store and maintain such a graph ? thanks Gady

---

## [Wrong number of arguments (1 for 0)](https://www.ruby-forum.com/t/wrong-number-of-arguments-1-for-0/131451)

<div class="topic-metadata">

**Author:** [@simplydope](https://www.ruby-forum.com/u/simplydope)\
**Replies:** 7\
**Last updated:** [March 10, 2008, 9:47pm UTC](https://www.ruby-forum.com/t/wrong-number-of-arguments-1-for-0/131451 "2008-03-10T21:47:17Z")

</div>

I’m getting a wrong number of arguments (1 for 0) error. This happens when I attempt to login to my app. Also, I upgraded to Ruby 1.8.6, from 1.8.2 (i think) Heres the code: — login.rhtml \<% form\_tag do %\> …

---

## [How to use the Click-to-globalize "self.globalize?"-function](https://www.ruby-forum.com/t/how-to-use-the-click-to-globalize-self-globalize-function/131511)

<div class="topic-metadata">

**Author:** [@emuen](https://www.ruby-forum.com/u/emuen)\
**Replies:** 0\
**Last updated:** [March 10, 2008, 9:20pm UTC](https://www.ruby-forum.com/t/how-to-use-the-click-to-globalize-self-globalize-function/131511 "2008-03-10T21:20:54Z")

</div>

Hey guys. I need to use the self.globalize? function to allow certain users to tranlate text. I can’t make the self.globalize?-function access the session variable. Is there a way to acces this in this specific funct…

---

## [Acts\_as\_ferret:: "field-restricted search" possible?](https://www.ruby-forum.com/t/acts-as-ferret-field-restricted-search-possible/131504)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 1\
**Last updated:** [March 10, 2008, 9:09pm UTC](https://www.ruby-forum.com/t/acts-as-ferret-field-restricted-search-possible/131504 "2008-03-10T21:09:24Z")

</div>

Can we tell acts\_as\_ferret to take up multiple search terms from a form, then use each term only on a specific column in the table to search? I.e.: Model: User Attributes: firstname, lastname, location, favoritecol…

---

## [Response.body == filename?](https://www.ruby-forum.com/t/response-body-filename/131506)

<div class="topic-metadata">

**Author:** [@student](https://www.ruby-forum.com/u/student)\
**Replies:** 2\
**Last updated:** [March 10, 2008, 9:08pm UTC](https://www.ruby-forum.com/t/response-body-filename/131506 "2008-03-10T21:08:50Z")

</div>

I’m using RSpec. describe UserController do it “should require …” do post :login, {:name =\> ‘root’} puts response.body.to\_yaml end end …— user/login ???

---

## [Wiki.rubyonrails.org still down](https://www.ruby-forum.com/t/wiki-rubyonrails-org-still-down/131510)

<div class="topic-metadata">

**Author:** [@flowctrl](https://www.ruby-forum.com/u/flowctrl)\
**Replies:** 1\
**Last updated:** [March 10, 2008, 9:07pm UTC](https://www.ruby-forum.com/t/wiki-rubyonrails-org-still-down/131510 "2008-03-10T21:07:16Z")

</div>

wiki.rubyonrails.org has been down for 4 days with a 503 message; anyone know whats going on, and/or when it will be back online? Hopefully its due to the massive number of contributions for Rails 2 documentation. …

---

## [Database Design for Rails Question](https://www.ruby-forum.com/t/database-design-for-rails-question/131493)

<div class="topic-metadata">

**Author:** [@Yanir](https://www.ruby-forum.com/u/Yanir)\
**Replies:** 3\
**Last updated:** [March 10, 2008, 9:01pm UTC](https://www.ruby-forum.com/t/database-design-for-rails-question/131493 "2008-03-10T21:01:02Z")

</div>

Hi all, I’ve just discovered Rails coming from an asp.net background. I’m really into rails and I have started to develop an application to manage product data (specs, marketing info, etc). I am having some trouble de…

---

## [Help using a single form to update three models](https://www.ruby-forum.com/t/help-using-a-single-form-to-update-three-models/131505)

<div class="topic-metadata">

**Author:** [@mikec](https://www.ruby-forum.com/u/mikec)\
**Replies:** 0\
**Last updated:** [March 10, 2008, 7:54pm UTC](https://www.ruby-forum.com/t/help-using-a-single-form-to-update-three-models/131505 "2008-03-10T19:54:58Z")

</div>

Really hoping someone on this forum can help me out - any help is greatly appreciated. I have been through the Ryan B railcasts and tutorials on using a single form to update more than one model. They are all based …

---

## [Problem in passing 2 params](https://www.ruby-forum.com/t/problem-in-passing-2-params/131471)

<div class="topic-metadata">

**Author:** [@vidya1111](https://www.ruby-forum.com/u/vidya1111)\
**Replies:** 5\
**Last updated:** [March 10, 2008, 7:23pm UTC](https://www.ruby-forum.com/t/problem-in-passing-2-params/131471 "2008-03-10T19:23:27Z")

</div>

I am trying to pass 2 parameters to the ‘new’ action in the plans\_controller, something like this. "new\_plan\_path+"?id1=1&id2=3" Only ‘id1’ is passed and the “&” symbol is rewritten as ‘&’, hence ‘id2’ is not recei…

---

## [Looking for a Ruby on Rails Guru / Contract with Fortune 100 Client / Location : CA](https://www.ruby-forum.com/t/looking-for-a-ruby-on-rails-guru-contract-with-fortune-100-client-location-ca/131502)

<div class="topic-metadata">

**Author:** [@Shelly\_Mathews\_SApp](https://www.ruby-forum.com/u/Shelly_Mathews_SApp)\
**Replies:** 0\
**Last updated:** [March 10, 2008, 7:22pm UTC](https://www.ruby-forum.com/t/looking-for-a-ruby-on-rails-guru-contract-with-fortune-100-client-location-ca/131502 "2008-03-10T19:22:52Z")

</div>

Develop (design, implement, test) Web applications using Ruby on Rails, MySQL, CSS, JavaScript, Web Services and similar technologies and Develop plugins and gems to aid in additional rail projects. Experience in XML,…

---

## [Creating a model registry](https://www.ruby-forum.com/t/creating-a-model-registry/131306)

<div class="topic-metadata">

**Author:** [@ISESSmith-Heister](https://www.ruby-forum.com/u/ISESSmith-Heister)\
**Replies:** 6\
**Last updated:** [March 10, 2008, 7:00pm UTC](https://www.ruby-forum.com/t/creating-a-model-registry/131306 "2008-03-10T19:00:57Z")

</div>

Hi all, This is a problem I’ve approached so many times and always worked around, that now I want to solve it once and for all. Say I have something like this: class X \< ActiveRecord::Base acts\_as\_wacky end modul…

---

## [Need a simple forum or message board](https://www.ruby-forum.com/t/need-a-simple-forum-or-message-board/131474)

<div class="topic-metadata">

**Author:** [@megax](https://www.ruby-forum.com/u/megax)\
**Replies:** 3\
**Last updated:** [March 10, 2008, 6:50pm UTC](https://www.ruby-forum.com/t/need-a-simple-forum-or-message-board/131474 "2008-03-10T18:50:50Z")

</div>

I want to have a message board or forum in my site, I have looked at beast but have no clue how to use svn, and I have had no luck with savage beast either. Can anyone recommend a simple message board/forum that I cou…

---

## [Loops - from views to model or controller](https://www.ruby-forum.com/t/loops-from-views-to-model-or-controller/131500)

<div class="topic-metadata">

**Author:** [@newrubygirl](https://www.ruby-forum.com/u/newrubygirl)\
**Replies:** 1\
**Last updated:** [March 10, 2008, 6:47pm UTC](https://www.ruby-forum.com/t/loops-from-views-to-model-or-controller/131500 "2008-03-10T18:47:57Z")

</div>

I currently have some ugly loops code in my view that I’m trying to clean up. I’m not sure where to move this code in order to get it all to work. The view code looks like this. \<% for a in @model.a %\> \<% @pa = PA.f…

---

## [Spinner in form tag?](https://www.ruby-forum.com/t/spinner-in-form-tag/131483)

<div class="topic-metadata">

**Author:** [@Eva](https://www.ruby-forum.com/u/Eva)\
**Replies:** 1\
**Last updated:** [March 10, 2008, 6:29pm UTC](https://www.ruby-forum.com/t/spinner-in-form-tag/131483 "2008-03-10T18:29:06Z")

</div>

Hello! Is it possible to have a spinner in form\_tag? like: \<% form\_tag :action=\> ‘list’, do :loading=\>“Element.show(‘spinner’);”, :complete=\>“Element.hide(‘spinner’);” %\> … … \<% end %\> If not how could I do it? …

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

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