# Rails

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

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

---

## [Preserving the format of text field data](https://www.ruby-forum.com/t/preserving-the-format-of-text-field-data/125701)

<div class="topic-metadata">

**Author:** [@Neon](https://www.ruby-forum.com/u/Neon)\
**Replies:** 1\
**Last updated:** [January 11, 2008, 6:27pm UTC](https://www.ruby-forum.com/t/preserving-the-format-of-text-field-data/125701 "2008-01-11T18:27:41Z")

</div>

Hello all, I’m still fairly new to RoR. Had a question related to a form’s text field data. Given a blog model for example, with fields: title, date and body. If I were to type a full body’s worth of text with line …

---

## [BitNami RubyStack with support for Windows, Linux and OS X](https://www.ruby-forum.com/t/bitnami-rubystack-with-support-for-windows-linux-and-os-x/125751)

<div class="topic-metadata">

**Author:** [@beltran](https://www.ruby-forum.com/u/beltran)\
**Replies:** 0\
**Last updated:** [January 11, 2008, 6:20pm UTC](https://www.ruby-forum.com/t/bitnami-rubystack-with-support-for-windows-linux-and-os-x/125751 "2008-01-11T18:20:33Z")

</div>

We just released BitNami RubyStack. It is a free, all-in-one installer that provides a fast, easy way to develop and deploy Ruby on Rails applications. It includes Ruby, Subversion, MySQL, SQLite, ImageMagick, and se…

---

## [How pass the params :id to next action? \[again\]](https://www.ruby-forum.com/t/how-pass-the-params-id-to-next-action-again/196566)

<div class="topic-metadata">

**Author:** [@myst\_tt](https://www.ruby-forum.com/u/myst_tt)\
**Replies:** 4\
**Last updated:** [January 11, 2008, 6:19pm UTC](https://www.ruby-forum.com/t/how-pass-the-params-id-to-next-action-again/196566 "2008-01-11T18:19:28Z")

</div>

Hi, everybody: I made a view - works as creating a new comment for a specific article, a example URL is “http://localhost:3000/comments/new/2”: here, comments is the controller, new is the action, 2 is the id of the…

---

## [Merging flv files](https://www.ruby-forum.com/t/merging-flv-files/125746)

<div class="topic-metadata">

**Author:** [@arpit\_jain](https://www.ruby-forum.com/u/arpit_jain)\
**Replies:** 1\
**Last updated:** [January 11, 2008, 6:11pm UTC](https://www.ruby-forum.com/t/merging-flv-files/125746 "2008-01-11T18:11:13Z")

</div>

Hi , i need to merge two flv videos , i have tried using this command: mencoder -oac copy -ovc copy -idx -o c.flv a.flv b.flv, the resulting file is of expected size , but somehow i am not able to play it … Please l…

---

## [Hopefully an easy question - post scaffolding add parameters](https://www.ruby-forum.com/t/hopefully-an-easy-question-post-scaffolding-add-parameters/125685)

<div class="topic-metadata">

**Author:** [@kopf1988](https://www.ruby-forum.com/u/kopf1988)\
**Replies:** 8\
**Last updated:** [January 11, 2008, 6:00pm UTC](https://www.ruby-forum.com/t/hopefully-an-easy-question-post-scaffolding-add-parameters/125685 "2008-01-11T18:00:33Z")

</div>

Okay, so I’ve got a User class. It has :username and :password. I now decide to be google and store every bit of information I can possibly find about the user. So now I have :street :city :state :zip :email :et ceter…

---

## [Servername v. IP as domain name](https://www.ruby-forum.com/t/servername-v-ip-as-domain-name/125739)

<div class="topic-metadata">

**Author:** [@anthony](https://www.ruby-forum.com/u/anthony)\
**Replies:** 2\
**Last updated:** [January 11, 2008, 5:36pm UTC](https://www.ruby-forum.com/t/servername-v-ip-as-domain-name/125739 "2008-01-11T17:36:19Z")

</div>

When I navigate to my page using the server IP address, everything works perfectly. When I navigate to the page using servername, everything works fine except for the Ajax calls. I get the error, “This page is accessi…

---

## [The parameter is nil?](https://www.ruby-forum.com/t/the-parameter-is-nil/125744)

<div class="topic-metadata">

**Author:** [@myst\_tt](https://www.ruby-forum.com/u/myst_tt)\
**Replies:** 0\
**Last updated:** [January 11, 2008, 5:26pm UTC](https://www.ruby-forum.com/t/the-parameter-is-nil/125744 "2008-01-11T17:26:53Z")

</div>

Hi, I use scaffold to create the task model controller and view, it contains action as “show”, “new”, “create”, etc. Then, I give an “id” parameters to the view - new.rhtml, so the URL could be like “http://localho…

---

## [How do you run WEBrick under Rails 2.x?](https://www.ruby-forum.com/t/how-do-you-run-webrick-under-rails-2-x/125664)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 8\
**Last updated:** [January 11, 2008, 5:23pm UTC](https://www.ruby-forum.com/t/how-do-you-run-webrick-under-rails-2-x/125664 "2008-01-11T17:23:19Z")

</div>

It appears that Mongrel is now the default development server for Rails as of 2.x. I’m assuming this because I’m unable to run Mongrel (for reasons I don’t totally understand yet - I am running Windows and I keep gett…

---

## [Problem with hash](https://www.ruby-forum.com/t/problem-with-hash/125742)

<div class="topic-metadata">

**Author:** [@rubylicious](https://www.ruby-forum.com/u/rubylicious)\
**Replies:** 2\
**Last updated:** [January 11, 2008, 5:20pm UTC](https://www.ruby-forum.com/t/problem-with-hash/125742 "2008-01-11T17:20:06Z")

</div>

I’m opening a view and passing multiple key/value pairs within one symbol like so: \<%= link\_to ‘view’, {:controller =\> ‘screens’, :action =\> “content”, :data =\> {“title” =\> “Body”, “content” =\> screen.body}} %\> Wha…

---

## [Installing a patch](https://www.ruby-forum.com/t/installing-a-patch/125735)

<div class="topic-metadata">

**Author:** [@lundie](https://www.ruby-forum.com/u/lundie)\
**Replies:** 3\
**Last updated:** [January 11, 2008, 4:55pm UTC](https://www.ruby-forum.com/t/installing-a-patch/125735 "2008-01-11T16:55:46Z")

</div>

Hi, I have an issue that is mentioned in this ticket on Rails Trac: http://dev.rubyonrails.org/ticket/10101. I would like to try this patch, and see if it solves the issue I am having, but I am confused on how to pro…

---

## [Order by array](https://www.ruby-forum.com/t/order-by-array/125466)

<div class="topic-metadata">

**Author:** [@gorter9](https://www.ruby-forum.com/u/gorter9)\
**Replies:** 8\
**Last updated:** [January 11, 2008, 4:31pm UTC](https://www.ruby-forum.com/t/order-by-array/125466 "2008-01-11T16:31:38Z")

</div>

I need the id’s order by a array. def pages @admin = Admin.find(1) Page.find(:all, :order =\> \[ @admin.sidebar \]) end when the array has 2, 1, 3, 4, 5 the output is 2, 3, 4, 5, 1 and not the same as the array. Ho…

---

## [CORE\_RL\_magick\_.dll not found](https://www.ruby-forum.com/t/core-rl-magick-dll-not-found/125688)

<div class="topic-metadata">

**Author:** [@nikhilvaghela](https://www.ruby-forum.com/u/nikhilvaghela)\
**Replies:** 2\
**Last updated:** [January 11, 2008, 4:05pm UTC](https://www.ruby-forum.com/t/core-rl-magick-dll-not-found/125688 "2008-01-11T16:05:51Z")

</div>

Hii, I am trying to run RmagicK 1.15 on WIn 2000 with ruby 1.8.6 and gem 1.0.1. i am getting an error CORE\_RL\_magick\_.dll not found inspite of repeated installation. i am not sure where Rmagick is comaptable wit…

---

## [Virtually deleting rows from tables](https://www.ruby-forum.com/t/virtually-deleting-rows-from-tables/125714)

<div class="topic-metadata">

**Author:** [@pankaj](https://www.ruby-forum.com/u/pankaj)\
**Replies:** 2\
**Last updated:** [January 11, 2008, 3:46pm UTC](https://www.ruby-forum.com/t/virtually-deleting-rows-from-tables/125714 "2008-01-11T15:46:27Z")

</div>

I dont want to delete the records from my tables but just set a column is\_deleted to true. What is the best (clean)way to implement this? Is there any way of defining a model which includes only a set of records whic…

---

## [I got a mysql\_adapter 471 bug](https://www.ruby-forum.com/t/i-got-a-mysql-adapter-471-bug/125729)

<div class="topic-metadata">

**Author:** [@heiitx](https://www.ruby-forum.com/u/heiitx)\
**Replies:** 0\
**Last updated:** [January 11, 2008, 3:40pm UTC](https://www.ruby-forum.com/t/i-got-a-mysql-adapter-471-bug/125729 "2008-01-11T15:40:00Z")

</div>

I’m a greeen hand. I am learning ruby on rails by myself. However, when I was tring to create the first demo website following the book \<\<Agile\_Web\_Development\_With\_Rails\>\>, it reported that there was an bug\[segment f…

---

## [Trouble skipping before filter in controller](https://www.ruby-forum.com/t/trouble-skipping-before-filter-in-controller/125727)

<div class="topic-metadata">

**Author:** [@Iain\_A](https://www.ruby-forum.com/u/Iain_A)\
**Replies:** 0\
**Last updated:** [January 11, 2008, 3:36pm UTC](https://www.ruby-forum.com/t/trouble-skipping-before-filter-in-controller/125727 "2008-01-11T15:36:30Z")

</div>

Hello, In my application I want several before filters to apply to every request except for login and authenticate. So in my application controller I have before\_filter :setup\_user, :check\_for\_duplicate\_user, :update…

---

## [Rake aborted!](https://www.ruby-forum.com/t/rake-aborted/125623)

<div class="topic-metadata">

**Author:** [@dev\_ror](https://www.ruby-forum.com/u/dev_ror)\
**Replies:** 4\
**Last updated:** [January 11, 2008, 3:18pm UTC](https://www.ruby-forum.com/t/rake-aborted/125623 "2008-01-11T15:18:52Z")

</div>

pl help i get this msg when i try to run rake db:migrate rake aborted! #28000Access denied for user ‘root’@‘localhost’

---

## [Div problem](https://www.ruby-forum.com/t/div-problem/125689)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 2\
**Last updated:** [January 11, 2008, 3:16pm UTC](https://www.ruby-forum.com/t/div-problem/125689 "2008-01-11T15:16:12Z")

</div>

\<%=javascript\_include\_tag :defaults %\> show //something here now if i click show link then the div “show” is shown at now if i click refresh button then its not shown what should i do to show div “show…

---

## [Selection field using foreign key (Multiple references)](https://www.ruby-forum.com/t/selection-field-using-foreign-key-multiple-references/125659)

<div class="topic-metadata">

**Author:** [@theclayman](https://www.ruby-forum.com/u/theclayman)\
**Replies:** 1\
**Last updated:** [January 11, 2008, 2:27pm UTC](https://www.ruby-forum.com/t/selection-field-using-foreign-key-multiple-references/125659 "2008-01-11T14:27:24Z")

</div>

Hi, after hours of trying I am stuck with the following. I have a Class for courses (called GdFb here) with multiple references to Class GdPerson class GdFb \< ActiveRecord::Base belongs\_to :va\_plan, :foreign\_key =\> …

---

## [InÃ­cio de ano com o pÃ© direito!](https://www.ruby-forum.com/t/ina-cio-de-ano-com-o-pa-direito/125628)

<div class="topic-metadata">

**Author:** [@Sergio\_LSSSSSS\_Cor](https://www.ruby-forum.com/u/Sergio_LSSSSSS_Cor)\
**Replies:** 2\
**Last updated:** [January 11, 2008, 2:03pm UTC](https://www.ruby-forum.com/t/ina-cio-de-ano-com-o-pa-direito/125628 "2008-01-11T14:03:43Z")

</div>

Acesse http://sergiolaranja.blogspot.com.

---

## [65.years.ago on Windows XP](https://www.ruby-forum.com/t/65-years-ago-on-windows-xp/125713)

<div class="topic-metadata">

**Author:** [@rbjl](https://www.ruby-forum.com/u/rbjl)\
**Replies:** 4\
**Last updated:** [January 11, 2008, 1:29pm UTC](https://www.ruby-forum.com/t/65-years-ago-on-windows-xp/125713 "2008-01-11T13:29:40Z")

</div>

Hello, I’ve some trouble with years.ago I want so use in calendar\_date\_select as described here: http://code.google.com/p/calendardateselect/wiki/CalendarDateSelectParameters I wrote: \<%= contact.calendar\_date\_sele…

---

## [ActiveRecord Join over multiple tables](https://www.ruby-forum.com/t/activerecord-join-over-multiple-tables/125715)

<div class="topic-metadata">

**Author:** [@sealedsun](https://www.ruby-forum.com/u/sealedsun)\
**Replies:** 2\
**Last updated:** [January 11, 2008, 12:58pm UTC](https://www.ruby-forum.com/t/activerecord-join-over-multiple-tables/125715 "2008-01-11T12:58:36Z")

</div>

Hey I have a DB Model with the following tables users, courses, users\_courses and coursecategories users \<1:n\> users\_courses \<n:1\> courses \<n:1\> I have the models set up and they sheem to work. I can do something lik…

---

## [Proxies and Arrays](https://www.ruby-forum.com/t/proxies-and-arrays/125611)

<div class="topic-metadata">

**Author:** [@xinit](https://www.ruby-forum.com/u/xinit)\
**Replies:** 2\
**Last updated:** [January 11, 2008, 12:20pm UTC](https://www.ruby-forum.com/t/proxies-and-arrays/125611 "2008-01-11T12:20:20Z")

</div>

Hi all! I have the following situation: class User \< ActiveRecord::Base belongs\_to :customer end class Customer \< ActiveRecord::Base has\_many :events end Now, I want to access all customer events from my user, so…

---

## [Dynamic Finders don't give Exceptions? Or I can't get any](https://www.ruby-forum.com/t/dynamic-finders-dont-give-exceptions-or-i-cant-get-any/125700)

<div class="topic-metadata">

**Author:** [@theogb](https://www.ruby-forum.com/u/theogb)\
**Replies:** 3\
**Last updated:** [January 11, 2008, 9:37am UTC](https://www.ruby-forum.com/t/dynamic-finders-dont-give-exceptions-or-i-cant-get-any/125700 "2008-01-11T09:37:59Z")

</div>

Hi, This has been bugging me a bit. If I do the code: begin user = User.find(:id) rescue flash\[:notice\] = “Invalid ID” else rest of code end It works fine catching an invalid ID. However this code: begin user …

---

## [Newbie: Issues when trying to use silverlight xaml player](https://www.ruby-forum.com/t/newbie-issues-when-trying-to-use-silverlight-xaml-player/125699)

<div class="topic-metadata">

**Author:** [@arun](https://www.ruby-forum.com/u/arun)\
**Replies:** 0\
**Last updated:** [January 11, 2008, 9:00am UTC](https://www.ruby-forum.com/t/newbie-issues-when-trying-to-use-silverlight-xaml-player/125699 "2008-01-11T09:00:26Z")

</div>

I am trying to embed a silverlight xaml player, the set of files I got after I encoded using a Microsoft Expression Encoder. I am not sure whether people are aware of the files generated HTML Default.html Javascript B…

---

## [What's wrong with this model method?](https://www.ruby-forum.com/t/whats-wrong-with-this-model-method/125619)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 3\
**Last updated:** [January 11, 2008, 8:59am UTC](https://www.ruby-forum.com/t/whats-wrong-with-this-model-method/125619 "2008-01-11T08:59:00Z")

</div>

class RepairTicket \< ActiveRecord::Base def calc\_iva total\_price=total\_price+1000 end end r=RepairTicket.find(74) r.calc\_iva NoMethodError: undefined method calc\_iva' for #\<RepairTicket:0x29293dc\> from /Users/ju…

---

## [Find current Id](https://www.ruby-forum.com/t/find-current-id/125694)

<div class="topic-metadata">

**Author:** [@fries88](https://www.ruby-forum.com/u/fries88)\
**Replies:** 3\
**Last updated:** [January 11, 2008, 8:48am UTC](https://www.ruby-forum.com/t/find-current-id/125694 "2008-01-11T08:48:43Z")

</div>

Hi, Can someine tell me how to find the latest/current id from the database? Thanks, fries 88

---

## [Beginner seeking some guidance (OS X Leopard)](https://www.ruby-forum.com/t/beginner-seeking-some-guidance-os-x-leopard/125456)

<div class="topic-metadata">

**Author:** [@rpflorence](https://www.ruby-forum.com/u/rpflorence)\
**Replies:** 2\
**Last updated:** [January 11, 2008, 8:25am UTC](https://www.ruby-forum.com/t/beginner-seeking-some-guidance-os-x-leopard/125456 "2008-01-11T08:25:20Z")

</div>

First, please tell me if I’m an idiot for even attempting to learn Ruby on Rails. I’m a graphic designer turned user interface designer with a geeky side who wishes he could program. I know 2 ounces of javascript (ma…

---

## [Plugin issues](https://www.ruby-forum.com/t/plugin-issues/125686)

<div class="topic-metadata">

**Author:** [@flyingzumwalt](https://www.ruby-forum.com/u/flyingzumwalt)\
**Replies:** 1\
**Last updated:** [January 11, 2008, 8:16am UTC](https://www.ruby-forum.com/t/plugin-issues/125686 "2008-01-11T08:16:46Z")

</div>

Hi, guys I have some issues while installing plugins. when i type ruby script/plugin discover it comes up like this C:/InstantRails/ruby/lib/ruby/1.8/net/http.rb:560:in initialize': Bad file desc riptor - connect(2…

---

## [How to make submit button perform two actions, save and edit](https://www.ruby-forum.com/t/how-to-make-submit-button-perform-two-actions-save-and-edit/125693)

<div class="topic-metadata">

**Author:** [@fries88](https://www.ruby-forum.com/u/fries88)\
**Replies:** 0\
**Last updated:** [January 11, 2008, 6:57am UTC](https://www.ruby-forum.com/t/how-to-make-submit-button-perform-two-actions-save-and-edit/125693 "2008-01-11T06:57:53Z")

</div>

Hi, I am trying to create a form where the first time a user access it saves the fields. Then the subsequent time the user accesss the form it edits.

---

## [Messaging - the best way to implement?](https://www.ruby-forum.com/t/messaging-the-best-way-to-implement/125657)

<div class="topic-metadata">

**Author:** [@truetype](https://www.ruby-forum.com/u/truetype)\
**Replies:** 2\
**Last updated:** [January 11, 2008, 6:28am UTC](https://www.ruby-forum.com/t/messaging-the-best-way-to-implement/125657 "2008-01-11T06:28:55Z")

</div>

I’m developing a messaging service for an application. It’s not an instant messaging, it’s more similar to how e-mail works. I send a message to user, user receives the message, I have a copy of the message sent by me…

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

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