# Rails

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

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

---

## [Breadcrumbs plugin](https://www.ruby-forum.com/t/breadcrumbs-plugin/146866)

<div class="topic-metadata">

**Author:** [@gamafranco](https://www.ruby-forum.com/u/gamafranco)\
**Replies:** 3\
**Last updated:** [August 26, 2008, 11:31pm UTC](https://www.ruby-forum.com/t/breadcrumbs-plugin/146866 "2008-08-26T23:31:04Z")

</div>

Hello, I would like to know what kind of solution is usually adopted for Breadcrumbs. Is there a good plugin out there? Thanks, Tiago F.

---

## [File uploads](https://www.ruby-forum.com/t/file-uploads/146924)

<div class="topic-metadata">

**Author:** [@bouldr-matt](https://www.ruby-forum.com/u/bouldr-matt)\
**Replies:** 3\
**Last updated:** [August 26, 2008, 11:19pm UTC](https://www.ruby-forum.com/t/file-uploads/146924 "2008-08-26T23:19:56Z")

</div>

Hi all, I’m trying to add a file upload facility to a project I’m working on but I can’t work it out. I’ve read the RoR wiki on uploading files, and the cookbook, but the examples don’t seem to work for me. What I h…

---

## [External link with parameters](https://www.ruby-forum.com/t/external-link-with-parameters/146935)

<div class="topic-metadata">

**Author:** [@gwendydd](https://www.ruby-forum.com/u/gwendydd)\
**Replies:** 2\
**Last updated:** [August 26, 2008, 11:17pm UTC](https://www.ruby-forum.com/t/external-link-with-parameters/146935 "2008-08-26T23:17:42Z")

</div>

I have a database of books that includes ISBN numbers. On Worldcat’s website, it is really easy to get a URL for a book if you have the ISBN number. For instance, bn:0151327653 - Search Results. I would like to be a…

---

## [Syntax problem or something else?](https://www.ruby-forum.com/t/syntax-problem-or-something-else/146931)

<div class="topic-metadata">

**Author:** [@drsharp](https://www.ruby-forum.com/u/drsharp)\
**Replies:** 2\
**Last updated:** [August 26, 2008, 10:48pm UTC](https://www.ruby-forum.com/t/syntax-problem-or-something-else/146931 "2008-08-26T22:48:52Z")

</div>

Hi, I’m pretty sure this is a simple problem but I can’t seem to work it out. I have a series of news stories and I would like the body of the story to be displayed (using a visual\_effect toggle) when the user clicks …

---

## [Transaction not working with update\_attributes!](https://www.ruby-forum.com/t/transaction-not-working-with-update-attributes/146917)

<div class="topic-metadata">

**Author:** [@jjburka](https://www.ruby-forum.com/u/jjburka)\
**Replies:** 1\
**Last updated:** [August 26, 2008, 10:31pm UTC](https://www.ruby-forum.com/t/transaction-not-working-with-update-attributes/146917 "2008-08-26T22:31:52Z")

</div>

I am trying to wrap the updating of two models in a transaction and when the transaction fails it is not rolling back. My method is : def update\_attributes(user,params) @user = user @company = user.company begin U…

---

## [Advanced ActiveRecord - Envycast.com](https://www.ruby-forum.com/t/advanced-activerecord-envycast-com/146930)

<div class="topic-metadata">

**Author:** [@patched](https://www.ruby-forum.com/u/patched)\
**Replies:** 0\
**Last updated:** [August 26, 2008, 9:59pm UTC](https://www.ruby-forum.com/t/advanced-activerecord-envycast-com/146930 "2008-08-26T21:59:01Z")

</div>

Hey guys, This morning Jason Seifer and I released a new screencast website called EnvyCasts. If you enjoy the content that comes from Rails Envy, then maybe check it out. Our first screencast is “Advanced ActiveRec…

---

## [How long would this take?](https://www.ruby-forum.com/t/how-long-would-this-take/146927)

<div class="topic-metadata">

**Author:** [@xposed](https://www.ruby-forum.com/u/xposed)\
**Replies:** 0\
**Last updated:** [August 26, 2008, 9:46pm UTC](https://www.ruby-forum.com/t/how-long-would-this-take/146927 "2008-08-26T21:46:41Z")

</div>

If you took the Wordpress CMS & Use Rails To Wrap User Registration Around It. A user could register and create an account It would create an account for “theirwordpressapp.themainappsdomain.com” User could login to …

---

## [Php and rails on same domain](https://www.ruby-forum.com/t/php-and-rails-on-same-domain/146914)

<div class="topic-metadata">

**Author:** [@yankees26](https://www.ruby-forum.com/u/yankees26)\
**Replies:** 1\
**Last updated:** [August 26, 2008, 9:36pm UTC](https://www.ruby-forum.com/t/php-and-rails-on-same-domain/146914 "2008-08-26T21:36:08Z")

</div>

hi. I have a php website running on an apache webserver. I wrote an extension for this application in rails. For deployment I want to use passenger(mod\_rails). At the moment the php application runs on a virtual host…

---

## [Benchmarking Rails unit tests?](https://www.ruby-forum.com/t/benchmarking-rails-unit-tests/146925)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 0\
**Last updated:** [August 26, 2008, 9:25pm UTC](https://www.ruby-forum.com/t/benchmarking-rails-unit-tests/146925 "2008-08-26T21:25:35Z")

</div>

I’m having trouble for some reason finding information about the scripts in script/performance (benchmarker, profiler, request). I know how to use the Ruby Benchmark class to do isolated measurements, but does Rails h…

---

## [Acts\_as\_versioned rails 2.1 namespacing](https://www.ruby-forum.com/t/acts-as-versioned-rails-2-1-namespacing/146921)

<div class="topic-metadata">

**Author:** [@fabaum](https://www.ruby-forum.com/u/fabaum)\
**Replies:** 0\
**Last updated:** [August 26, 2008, 9:06pm UTC](https://www.ruby-forum.com/t/acts-as-versioned-rails-2-1-namespacing/146921 "2008-08-26T21:06:56Z")

</div>

Anyone knows how to use namespace with acts\_as\_versioned-0.5.1? Model example: class Namespace::MyModel \< ActiveRecord::Base require ‘acts\_as\_versioned’ acts\_as\_versioned(:class\_name =\> “Namespace::MyModel”, :table\_n…

---

## [Manipulate retrieved database find query object, multiple tables and one legacy database (phew)](https://www.ruby-forum.com/t/manipulate-retrieved-database-find-query-object-multiple-tables-and-one-legacy-database-phew/146830)

<div class="topic-metadata">

**Author:** [@cinderedmonkey](https://www.ruby-forum.com/u/cinderedmonkey)\
**Replies:** 3\
**Last updated:** [August 26, 2008, 9:00pm UTC](https://www.ruby-forum.com/t/manipulate-retrieved-database-find-query-object-multiple-tables-and-one-legacy-database-phew/146830 "2008-08-26T21:00:23Z")

</div>

Hi, First, I am forced to use a legacy database. My problem is that I need data from two separate tables which I can get easily enough separately. What I do need to know is how to join that information together so I …

---

## [Custom 500/Application Errors](https://www.ruby-forum.com/t/custom-500-application-errors/146817)

<div class="topic-metadata">

**Author:** [@squeegy](https://www.ruby-forum.com/u/squeegy)\
**Replies:** 6\
**Last updated:** [August 26, 2008, 8:31pm UTC](https://www.ruby-forum.com/t/custom-500-application-errors/146817 "2008-08-26T20:31:13Z")

</div>

Hi, I’m working on creating custom 500 errors in rails 2.1. Specifically I’m trying to send an email with the exception every time an application error occurs. So I follow these instructions: http://wiki.rubyonrails.…

---

## [Running tests](https://www.ruby-forum.com/t/running-tests/146875)

<div class="topic-metadata">

**Author:** [@robertpostill](https://www.ruby-forum.com/u/robertpostill)\
**Replies:** 5\
**Last updated:** [August 26, 2008, 8:30pm UTC](https://www.ruby-forum.com/t/running-tests/146875 "2008-08-26T20:30:28Z")

</div>

Hi, In a controler, how can we check that we are running a test (rake test). Is there a connection object?

---

## [Validating an association](https://www.ruby-forum.com/t/validating-an-association/146827)

<div class="topic-metadata">

**Author:** [@markmt](https://www.ruby-forum.com/u/markmt)\
**Replies:** 2\
**Last updated:** [August 26, 2008, 8:26pm UTC](https://www.ruby-forum.com/t/validating-an-association/146827 "2008-08-26T20:26:22Z")

</div>

I have two models, A and B, related to one another by a many to many association and I want to validate an object of model B as it’s being added to the association based on both its own attributes and attributes of th…

---

## [Gems](https://www.ruby-forum.com/t/gems/146911)

<div class="topic-metadata">

**Author:** [@soumya](https://www.ruby-forum.com/u/soumya)\
**Replies:** 0\
**Last updated:** [August 26, 2008, 6:36pm UTC](https://www.ruby-forum.com/t/gems/146911 "2008-08-26T18:36:11Z")

</div>

Actually i am new in this field. And i want to know that how can i use ruby gems in my project like “will\_paginate”.If anyone please tell me about this procedure then it will be very helpfull for me. Thanks

---

## [Simultenious rails versions on single machine](https://www.ruby-forum.com/t/simultenious-rails-versions-on-single-machine/146843)

<div class="topic-metadata">

**Author:** [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Replies:** 10\
**Last updated:** [August 26, 2008, 6:15pm UTC](https://www.ruby-forum.com/t/simultenious-rails-versions-on-single-machine/146843 "2008-08-26T18:15:40Z")

</div>

hi all, can i install different rails versions on single machine like rails 1.2.2, 1.2.6, 2.0,2.1 etc to workout different applications in different rails versions. if yes, how? currently i’ve rails 1.2.6 and if i run …

---

## [Validating form data without saving](https://www.ruby-forum.com/t/validating-form-data-without-saving/146730)

<div class="topic-metadata">

**Author:** [@atmorell](https://www.ruby-forum.com/u/atmorell)\
**Replies:** 8\
**Last updated:** [August 26, 2008, 5:45pm UTC](https://www.ruby-forum.com/t/validating-form-data-without-saving/146730 "2008-08-26T17:45:13Z")

</div>

Hello, I got a form that feeds data to 2 models: Topic and Post. @topic = Topic.new(params\[:topic\]) @post = Post.new(params\[:post\]) if @topic.save @post.topic\_id = @topic.id @post.save end Now if there is an erro…

---

## [Scaffold return to index page](https://www.ruby-forum.com/t/scaffold-return-to-index-page/146890)

<div class="topic-metadata">

**Author:** [@rustam](https://www.ruby-forum.com/u/rustam)\
**Replies:** 1\
**Last updated:** [August 26, 2008, 4:50pm UTC](https://www.ruby-forum.com/t/scaffold-return-to-index-page/146890 "2008-08-26T16:50:44Z")

</div>

i am using rubyonrails 2.1 and i have used scaffold .on controller i added new method and html.erb now what i want is to back to the index.html.erb page of the scaffold ,i have tried to use render but on the original …

---

## [\[ANN\] Ylastic is now live!](https://www.ruby-forum.com/t/ann-ylastic-is-now-live/146161)

<div class="topic-metadata">

**Author:** [@Ylastic\_T](https://www.ruby-forum.com/u/Ylastic_T)\
**Replies:** 3\
**Last updated:** [August 26, 2008, 4:33pm UTC](https://www.ruby-forum.com/t/ann-ylastic-is-now-live/146161 "2008-08-26T16:33:40Z")

</div>

We are excited to announce that Ylastic is now live. Ylastic makes it easier and simpler to use the Amazon Web Services environment for individual and business users by providing an intuitive and powerful user interfa…

---

## [Find files in directory](https://www.ruby-forum.com/t/find-files-in-directory/146494)

<div class="topic-metadata">

**Author:** [@rpierry](https://www.ruby-forum.com/u/rpierry)\
**Replies:** 2\
**Last updated:** [August 26, 2008, 4:33pm UTC](https://www.ruby-forum.com/t/find-files-in-directory/146494 "2008-08-26T16:33:38Z")

</div>

Hi, For my rails program I need to be able to look in a folder for an image file and then display the file name and image on screen. I was wondering if it is possible to do that, and how the best way to do it would b…

---

## [Newbie -How to install RoR on xampp for osx(leopard)](https://www.ruby-forum.com/t/newbie-how-to-install-ror-on-xampp-for-osx-leopard/146878)

<div class="topic-metadata">

**Author:** [@nkraf](https://www.ruby-forum.com/u/nkraf)\
**Replies:** 1\
**Last updated:** [August 26, 2008, 4:33pm UTC](https://www.ruby-forum.com/t/newbie-how-to-install-ror-on-xampp-for-osx-leopard/146878 "2008-08-26T16:33:04Z")

</div>

Hi all, im a newbie on RoR framework, im working with mac OSX 10.5 (leopard) im developing joomla! CMS with xampp in my local machine i have a some questions pertaining to RoR how do i install RoR in xampp? i unders…

---

## [Dirty Fields in Rails 1.2.6](https://www.ruby-forum.com/t/dirty-fields-in-rails-1-2-6/146900)

<div class="topic-metadata">

**Author:** [@arun](https://www.ruby-forum.com/u/arun)\
**Replies:** 0\
**Last updated:** [August 26, 2008, 4:25pm UTC](https://www.ruby-forum.com/t/dirty-fields-in-rails-1-2-6/146900 "2008-08-26T16:25:04Z")

</div>

Hi Friends, I am using Rails 1.2.6 in my application. I need to use the functionality of “dirty fields” (getting previous value of an object’s attributes). I know “Dirty fields” features are already in edge rails. Bu…

---

## [User pages how are they done](https://www.ruby-forum.com/t/user-pages-how-are-they-done/146895)

<div class="topic-metadata">

**Author:** [@tyliong](https://www.ruby-forum.com/u/tyliong)\
**Replies:** 3\
**Last updated:** [August 26, 2008, 4:12pm UTC](https://www.ruby-forum.com/t/user-pages-how-are-they-done/146895 "2008-08-26T16:12:32Z")

</div>

should a user’s home page be invoked by a show then id =\> meaning / show/id(of user)?? when they log into the application? because it would be easy for another user to use /show/3 to access of another user. Whats th…

---

## [Upload\_column NoMethodError](https://www.ruby-forum.com/t/upload-column-nomethoderror/146874)

<div class="topic-metadata">

**Author:** [@adinda\_p](https://www.ruby-forum.com/u/adinda_p)\
**Replies:** 1\
**Last updated:** [August 26, 2008, 4:10pm UTC](https://www.ruby-forum.com/t/upload-column-nomethoderror/146874 "2008-08-26T16:10:12Z")

</div>

Hi all, I’m using uploadcolumn plugin for file uploading. Followed the README file. Put “upload\_column :src\_file” in my model file as instructed, and i got this NoMethodError for the upload\_column. This is the full …

---

## [Load data from database \> open-flash-chart](https://www.ruby-forum.com/t/load-data-from-database-open-flash-chart/146880)

<div class="topic-metadata">

**Author:** [@remco](https://www.ruby-forum.com/u/remco)\
**Replies:** 1\
**Last updated:** [August 26, 2008, 4:10pm UTC](https://www.ruby-forum.com/t/load-data-from-database-open-flash-chart/146880 "2008-08-26T16:10:11Z")

</div>

Hi, I use the plugin open-flash-chart http://pullmonkey.com/2008/1/4/open-flash-chart-plugin-for-ruby-on-rails-1-9-6-release. The data of my swf is fetched from my controller def y\_right g.set\_data(\[46,28,33,48,54,4…

---

## [Validate the tinyMce textarea](https://www.ruby-forum.com/t/validate-the-tinymce-textarea/146892)

<div class="topic-metadata">

**Author:** [@ravikanth](https://www.ruby-forum.com/u/ravikanth)\
**Replies:** 1\
**Last updated:** [August 26, 2008, 3:46pm UTC](https://www.ruby-forum.com/t/validate-the-tinymce-textarea/146892 "2008-08-26T15:46:42Z")

</div>

Hi, i am using the tinyMce text editor in my rails app.But how to write the java script validation for that textarea? my validation is: In that textarea all numbers are not allowed. I am getting the data from te…

---

## [Character limit for tinyMCE textarea](https://www.ruby-forum.com/t/character-limit-for-tinymce-textarea/146896)

<div class="topic-metadata">

**Author:** [@ravikanth](https://www.ruby-forum.com/u/ravikanth)\
**Replies:** 0\
**Last updated:** [August 26, 2008, 3:46pm UTC](https://www.ruby-forum.com/t/character-limit-for-tinymce-textarea/146896 "2008-08-26T15:46:19Z")

</div>

Hi, I am using TinyMCE editor for textarea.how to limit the characters in that textarea. 500 is limit for that textarea,how to limit characters for this textarea in client side. alert message after 500 characters or…

---

## [Please help with model](https://www.ruby-forum.com/t/please-help-with-model/146885)

<div class="topic-metadata">

**Author:** [@rustam](https://www.ruby-forum.com/u/rustam)\
**Replies:** 1\
**Last updated:** [August 26, 2008, 3:33pm UTC](https://www.ruby-forum.com/t/please-help-with-model/146885 "2008-08-26T15:33:11Z")

</div>

receintly i am riding on rails 2.1 and i have write this line on controller model:ZaikeiInformation and get the error below: undefined method \`model’ for BasicsController:Class can anyone give me idea. thanks

---

## [In\_place\_editor\_field doesn't work Float](https://www.ruby-forum.com/t/in-place-editor-field-doesnt-work-float/146881)

<div class="topic-metadata">

**Author:** [@palani](https://www.ruby-forum.com/u/palani)\
**Replies:** 0\
**Last updated:** [August 26, 2008, 1:59pm UTC](https://www.ruby-forum.com/t/in-place-editor-field-doesnt-work-float/146881 "2008-08-26T13:59:19Z")

</div>

Hi Anyone please help to solve the issue. how can I use in\_place\_editor\_field for float column in DB. It’s works well in varchar & integer.

---

## [Problem in reading the columns from an xls file](https://www.ruby-forum.com/t/problem-in-reading-the-columns-from-an-xls-file/196793)

<div class="topic-metadata">

**Author:** [@vidya1111](https://www.ruby-forum.com/u/vidya1111)\
**Replies:** 1\
**Last updated:** [August 26, 2008, 12:47pm UTC](https://www.ruby-forum.com/t/problem-in-reading-the-columns-from-an-xls-file/196793 "2008-08-26T12:47:25Z")

</div>

I am having a problem in reading the columns from an xls file. Following is the code: workbook = Spreadsheet::ParseExcel.parse(params\[:dump\]\[:file\]) worksheet = workbook.worksheet(0) skip=0 worksheet.each(ski…

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

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