# Rails

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

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

---

## [How to delete all records in a table using a link](https://www.ruby-forum.com/t/how-to-delete-all-records-in-a-table-using-a-link/169782)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 21\
**Last updated:** [June 9, 2009, 10:47pm UTC](https://www.ruby-forum.com/t/how-to-delete-all-records-in-a-table-using-a-link/169782 "2009-06-09T22:47:43Z")

</div>

I’ve been looking around and can’t seem to find something that shows how to do this… My controller is rushing\_offenses\_controller.rb My model is rushing\_offense.rb I’d like to use something similar but I’m not all th…

---

## [Using variable in Yahoo Calendar url link](https://www.ruby-forum.com/t/using-variable-in-yahoo-calendar-url-link/169876)

<div class="topic-metadata">

**Author:** [@codecarpenter](https://www.ruby-forum.com/u/codecarpenter)\
**Replies:** 1\
**Last updated:** [June 9, 2009, 10:46pm UTC](https://www.ruby-forum.com/t/using-variable-in-yahoo-calendar-url-link/169876 "2009-06-09T22:46:31Z")

</div>

Anybody has experience using the following link to add an event to the Yahoo Calendar? http://calendar.yahoo.com/?v=60&ST=20080105T1400&ET=20080105T1500&title=Event%20Name&desc=note%20field&RPAT=1mh This works. But w…

---

## [Authlogic - error messages](https://www.ruby-forum.com/t/authlogic-error-messages/169795)

<div class="topic-metadata">

**Author:** [@malev05](https://www.ruby-forum.com/u/malev05)\
**Replies:** 1\
**Last updated:** [June 9, 2009, 9:07pm UTC](https://www.ruby-forum.com/t/authlogic-error-messages/169795 "2009-06-09T21:07:25Z")

</div>

Hi my name is Marcos. we’ve implemented authlogic in our project, but we need to replace the errors messages. for example: is too short (minimum is 6 characters) # when you don’t introduce your email for registrati…

---

## [Invalid authenticity token only in IE6](https://www.ruby-forum.com/t/invalid-authenticity-token-only-in-ie6/167110)

<div class="topic-metadata">

**Author:** [@andrew](https://www.ruby-forum.com/u/andrew)\
**Replies:** 11\
**Last updated:** [June 9, 2009, 9:02pm UTC](https://www.ruby-forum.com/t/invalid-authenticity-token-only-in-ie6/167110 "2009-06-09T21:02:27Z")

</div>

Hi guys, I just discovered that both logging in and signing up does not work in IE6 due to an InvalidAuthenticityToken error. I’m using the latest restful-authetntication plugin. What’s weird though, is that I viewed …

---

## [ActiveRecord::Base -\> what does it mean?](https://www.ruby-forum.com/t/activerecord-base-what-does-it-mean/169857)

<div class="topic-metadata">

**Author:** [@tivrfoa](https://www.ruby-forum.com/u/tivrfoa)\
**Replies:** 2\
**Last updated:** [June 9, 2009, 8:18pm UTC](https://www.ruby-forum.com/t/activerecord-base-what-does-it-mean/169857 "2009-06-09T20:18:57Z")

</div>

Hi folks! I just want to know the name of the relationship between ActiveRecord and Base. Thanks!!!

---

## [Adding a prerequisite first to db:reset](https://www.ruby-forum.com/t/adding-a-prerequisite-first-to-db-reset/169870)

<div class="topic-metadata">

**Author:** [@helix\_tp](https://www.ruby-forum.com/u/helix_tp)\
**Replies:** 0\
**Last updated:** [June 9, 2009, 8:10pm UTC](https://www.ruby-forum.com/t/adding-a-prerequisite-first-to-db-reset/169870 "2009-06-09T20:10:43Z")

</div>

I’m wondering if there was a better way to do this: I want to add a prerequisite check to the db:reset rails task so that if we’re in production mode, the user has to add an additional environment variable for it to r…

---

## [Issues with MySql database encoding](https://www.ruby-forum.com/t/issues-with-mysql-database-encoding/169862)

<div class="topic-metadata">

**Author:** [@mindtonic](https://www.ruby-forum.com/u/mindtonic)\
**Replies:** 3\
**Last updated:** [June 9, 2009, 8:08pm UTC](https://www.ruby-forum.com/t/issues-with-mysql-database-encoding/169862 "2009-06-09T20:08:57Z")

</div>

Hello, I am working on an international project that requires UTF-8 encoding for letter characters. I have successfully changed my local development machine to UTF-8 and all characters are holding as they should. Ho…

---

## [Getting my feet wet on Linux - some questions](https://www.ruby-forum.com/t/getting-my-feet-wet-on-linux-some-questions/169807)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 6\
**Last updated:** [June 9, 2009, 7:55pm UTC](https://www.ruby-forum.com/t/getting-my-feet-wet-on-linux-some-questions/169807 "2009-06-09T19:55:28Z")

</div>

So, I’m going to fully go to Linux for both development and production because one) I think it will be simpler down the road and two) I’ve wanted to learn linux for a long time now. Before I make the leap and turn on …

---

## [Ui Designing with Rails opposed to PHP](https://www.ruby-forum.com/t/ui-designing-with-rails-opposed-to-php/169819)

<div class="topic-metadata">

**Author:** [@devrubygem](https://www.ruby-forum.com/u/devrubygem)\
**Replies:** 8\
**Last updated:** [June 9, 2009, 7:54pm UTC](https://www.ruby-forum.com/t/ui-designing-with-rails-opposed-to-php/169819 "2009-06-09T19:54:18Z")

</div>

Why are there more web design users using PHP instead of using Rails? Is there an advantage using PHP over Rails? Thanks

---

## [Rails Hosting for Newbies](https://www.ruby-forum.com/t/rails-hosting-for-newbies/169867)

<div class="topic-metadata">

**Author:** [@railshobo](https://www.ruby-forum.com/u/railshobo)\
**Replies:** 0\
**Last updated:** [June 9, 2009, 7:50pm UTC](https://www.ruby-forum.com/t/rails-hosting-for-newbies/169867 "2009-06-09T19:50:13Z")

</div>

Hello all. This is probably an unusual first-time post but here goes. First of all, I’m new to the worlds of both Ruby and Rails, so I don’t have a lot to give in the way of Ruby or Rails. . . yet. However, I am a lo…

---

## [Current User, Database etc](https://www.ruby-forum.com/t/current-user-database-etc/169850)

<div class="topic-metadata">

**Author:** [@stevedogers](https://www.ruby-forum.com/u/stevedogers)\
**Replies:** 3\
**Last updated:** [June 9, 2009, 6:50pm UTC](https://www.ruby-forum.com/t/current-user-database-etc/169850 "2009-06-09T18:50:45Z")

</div>

Are there methods for the model object to get the current\_user, and current\_database? I was hoping that this would be available as methods from the connection object. For example model.connection.db\_user model.conne…

---

## [Serachlogic pagination is not working](https://www.ruby-forum.com/t/serachlogic-pagination-is-not-working/169860)

<div class="topic-metadata">

**Author:** [@senthil\_raja](https://www.ruby-forum.com/u/senthil_raja)\
**Replies:** 0\
**Last updated:** [June 9, 2009, 6:44pm UTC](https://www.ruby-forum.com/t/serachlogic-pagination-is-not-working/169860 "2009-06-09T18:44:18Z")

</div>

Hi rails mates I am very much impressed with searchlogic plugin, very easy to write a complicated queries for search which have builtin pagination. Example is working perfectly but in my application, its not working. …

---

## [Modify root URL generated by \<%= link\_to %\>](https://www.ruby-forum.com/t/modify-root-url-generated-by-link-to/169720)

<div class="topic-metadata">

**Author:** [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Replies:** 2\
**Last updated:** [June 9, 2009, 5:48pm UTC](https://www.ruby-forum.com/t/modify-root-url-generated-by-link-to/169720 "2009-06-09T17:48:19Z")

</div>

Is there a way to manually specify the root url that a \<%= link\_to %\> generates? So i can make an auto generated url that used to go to mywebsite.myhost.com/comments be go to example.com/comments ? The reason, if you’…

---

## [Accessing controller variable from view](https://www.ruby-forum.com/t/accessing-controller-variable-from-view/169851)

<div class="topic-metadata">

**Author:** [@JannaB](https://www.ruby-forum.com/u/JannaB)\
**Replies:** 1\
**Last updated:** [June 9, 2009, 5:46pm UTC](https://www.ruby-forum.com/t/accessing-controller-variable-from-view/169851 "2009-06-09T17:46:13Z")

</div>

In my ApplicatoinController I have: class ApplicationController \< ActionController::Base MOBILE\_USER\_AGENTS = ‘palm|palmos|palmsource|iphone|blackberry| nokia|phone|midp|mobi|pda|’ + ‘wap|java|nokia|hand|symbian|cht…

---

## [SWF Object associated with Page](https://www.ruby-forum.com/t/swf-object-associated-with-page/169856)

<div class="topic-metadata">

**Author:** [@oneexistence](https://www.ruby-forum.com/u/oneexistence)\
**Replies:** 0\
**Last updated:** [June 9, 2009, 5:45pm UTC](https://www.ruby-forum.com/t/swf-object-associated-with-page/169856 "2009-06-09T17:45:37Z")

</div>

I want to have the option to add an SWF to a page on the administrative side of my site. I was thinking I will have to use collection\_select() and somehow reference my public/swfs dir. I have the swfhelper plugin inst…

---

## [Validation help](https://www.ruby-forum.com/t/validation-help/169815)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 3\
**Last updated:** [June 9, 2009, 5:04pm UTC](https://www.ruby-forum.com/t/validation-help/169815 "2009-06-09T17:04:50Z")

</div>

i use this code to validate the phone field.it should have only numbers. but it also accepts alphapets with numbers.it should not accept other than numkbers below is my code i use. errors.add(:phone\_code, “\*please en…

---

## [ActiveRecord subclass with manual DB connect ion canâ€™t directly access column variables](https://www.ruby-forum.com/t/activerecord-subclass-with-manual-db-connect-ion-cana-t-directly-access-column-variables/169816)

<div class="topic-metadata">

**Author:** [@dezrtdude](https://www.ruby-forum.com/u/dezrtdude)\
**Replies:** 2\
**Last updated:** [June 9, 2009, 4:36pm UTC](https://www.ruby-forum.com/t/activerecord-subclass-with-manual-db-connect-ion-cana-t-directly-access-column-variables/169816 "2009-06-09T16:36:07Z")

</div>

Hi All, I’m having a slight issue with one of my Rails models. It’s nothing I can’t work around (as I’ve already done so), but I’m interested in the actual issue. Basically, I have an ActiveRecord-based class named “…

---

## [Suggestion in plugin for amazon payment](https://www.ruby-forum.com/t/suggestion-in-plugin-for-amazon-payment/169236)

<div class="topic-metadata">

**Author:** [@srikanth\_j](https://www.ruby-forum.com/u/srikanth_j)\
**Replies:** 1\
**Last updated:** [June 9, 2009, 2:24pm UTC](https://www.ruby-forum.com/t/suggestion-in-plugin-for-amazon-payment/169236 "2009-06-09T14:24:29Z")

</div>

Hi, Please suggest me a good plugin for amazon payment in Rails. Thanks in advance, Srikanth J http://www.srikanthj.co.nr

---

## [Video sharing site](https://www.ruby-forum.com/t/video-sharing-site/169800)

<div class="topic-metadata">

**Author:** [@raven13](https://www.ruby-forum.com/u/raven13)\
**Replies:** 3\
**Last updated:** [June 9, 2009, 2:15pm UTC](https://www.ruby-forum.com/t/video-sharing-site/169800 "2009-06-09T14:15:26Z")

</div>

Hi, we have a client who want a video sharing site and we are asking our self if Rails is good for it or if it’s better with PHP. We see a lot of video sharing site with PHP but maybe one or two with ROR why? Is it t…

---

## [Integrating youtube plugin with tinyMCE](https://www.ruby-forum.com/t/integrating-youtube-plugin-with-tinymce/169840)

<div class="topic-metadata">

**Author:** [@san2821](https://www.ruby-forum.com/u/san2821)\
**Replies:** 0\
**Last updated:** [June 9, 2009, 2:10pm UTC](https://www.ruby-forum.com/t/integrating-youtube-plugin-with-tinymce/169840 "2009-06-09T14:10:30Z")

</div>

Hello All, I wanted to use youtube plugin in tiny\_mce. I have jquery installed. I have youtube plugin in javascipts/tiny\_mce/plugins dir. here is my init script //\<!\[CDATA\[ 3tinyMCE.init({ 4browsers : "msie,gecko,sa…

---

## [Retireving record for will\_paginate](https://www.ruby-forum.com/t/retireving-record-for-will-paginate/169828)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 4\
**Last updated:** [June 9, 2009, 1:21pm UTC](https://www.ruby-forum.com/t/retireving-record-for-will-paginate/169828 "2009-06-09T13:21:03Z")

</div>

Hi, I am using “will\_paginate” for pagination. For that I have written following code. @selected\_photos=BookPhoto.find(:all, :conditions=\>\[“id=?”, params\[:id\]\]) @book\_photos=@selected\_photos.paginate :per\_page =\> 3,…

---

## [Good pagination option?](https://www.ruby-forum.com/t/good-pagination-option/169831)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 1\
**Last updated:** [June 9, 2009, 12:47pm UTC](https://www.ruby-forum.com/t/good-pagination-option/169831 "2009-06-09T12:47:47Z")

</div>

Hi, I want to do pagination in Rails 2.2. I have a confusion which pagination should I use? “Will\_paginate or Paginator.new” Also I want to retrieve only those number of records which I have specified in records per…

---

## [Word Wrapping](https://www.ruby-forum.com/t/word-wrapping/169825)

<div class="topic-metadata">

**Author:** [@pkatare](https://www.ruby-forum.com/u/pkatare)\
**Replies:** 1\
**Last updated:** [June 9, 2009, 12:36pm UTC](https://www.ruby-forum.com/t/word-wrapping/169825 "2009-06-09T12:36:38Z")

</div>

Hi all, Is there any gem or plugin for “word wrapping”. The reason is I’m trying to generate a pdf from my application. There are issues when I am trying to display long strings with no spaces. A word wrapper should…

---

## [New problems with ActiveRecord tests](https://www.ruby-forum.com/t/new-problems-with-activerecord-tests/169834)

<div class="topic-metadata">

**Author:** [@ffrancy](https://www.ruby-forum.com/u/ffrancy)\
**Replies:** 0\
**Last updated:** [June 9, 2009, 12:25pm UTC](https://www.ruby-forum.com/t/new-problems-with-activerecord-tests/169834 "2009-06-09T12:25:02Z")

</div>

I tried to use ActiveRecord 2.3.2, opened ad as a Ruby project with existing source, to run its tests and they worked but with this following errors: Finished in 71.143069 seconds. Failure: test\_add\_limit\_offset\_s…

---

## [Will Pagination links getting not behaving as i wanted](https://www.ruby-forum.com/t/will-pagination-links-getting-not-behaving-as-i-wanted/169756)

<div class="topic-metadata">

**Author:** [@san2821](https://www.ruby-forum.com/u/san2821)\
**Replies:** 3\
**Last updated:** [June 9, 2009, 11:47am UTC](https://www.ruby-forum.com/t/will-pagination-links-getting-not-behaving-as-i-wanted/169756 "2009-06-09T11:47:59Z")

</div>

Hello All, I have will pagination links in index view which works fine. but when i performing some other action and replacing list view that time pagination links i am supposed to be for index action. but they are no…

---

## [Migration of existant data](https://www.ruby-forum.com/t/migration-of-existant-data/169744)

<div class="topic-metadata">

**Author:** [@moustach](https://www.ruby-forum.com/u/moustach)\
**Replies:** 3\
**Last updated:** [June 9, 2009, 11:17am UTC](https://www.ruby-forum.com/t/migration-of-existant-data/169744 "2009-06-09T11:17:57Z")

</div>

Hi, I’m actually coding an application which use data from an other one. (Zone \> Region \> Country \> Location exactly) which are not in the best form. There are primary keys defined on the names of the zone / region / …

---

## [Export to pdf (graph output)](https://www.ruby-forum.com/t/export-to-pdf-graph-output/169750)

<div class="topic-metadata">

**Author:** [@blueomega](https://www.ruby-forum.com/u/blueomega)\
**Replies:** 3\
**Last updated:** [June 9, 2009, 10:49am UTC](https://www.ruby-forum.com/t/export-to-pdf-graph-output/169750 "2009-06-09T10:49:21Z")

</div>

So i have tasks, with start time, end time, the usual stuff, and i need to export all the info to pdf (description, owner, relations, etc) Export text to pdf shouldn’t be a problem, there are many tutorials who expla…

---

## [ActiveRecord test problem](https://www.ruby-forum.com/t/activerecord-test-problem/169560)

<div class="topic-metadata">

**Author:** [@ffrancy](https://www.ruby-forum.com/u/ffrancy)\
**Replies:** 4\
**Last updated:** [June 9, 2009, 10:26am UTC](https://www.ruby-forum.com/t/activerecord-test-problem/169560 "2009-06-09T10:26:59Z")

</div>

I have a problem to run ActiveRecord’s tests. I downloaded the source code of ActiveRecord and I put it in NetBeansProject folder (I use that IDE). I opened it as a Ruby project with existing source. I had also to put …

---

## [Ruby on Rails req - Seatle WA - Fulltime](https://www.ruby-forum.com/t/ruby-on-rails-req-seatle-wa-fulltime/196968)

<div class="topic-metadata">

**Author:** [@Alex1983smith](https://www.ruby-forum.com/u/Alex1983smith)\
**Replies:** 0\
**Last updated:** [June 9, 2009, 9:57am UTC](https://www.ruby-forum.com/t/ruby-on-rails-req-seatle-wa-fulltime/196968 "2009-06-09T09:57:10Z")

</div>

Hi, Greetings from ITM. One of our direct client is looking for Ruby on Rails Developer full time position. Position: Ruby on Rails Developer Seattle, WA. Fulltime Responsibilities • Participates in defining and …

---

## [Sorting an array in a partial file](https://www.ruby-forum.com/t/sorting-an-array-in-a-partial-file/169810)

<div class="topic-metadata">

**Author:** [@adsouzp](https://www.ruby-forum.com/u/adsouzp)\
**Replies:** 3\
**Last updated:** [June 9, 2009, 9:43am UTC](https://www.ruby-forum.com/t/sorting-an-array-in-a-partial-file/169810 "2009-06-09T09:43:42Z")

</div>

I have a controller to sort by time… def index @shows = Show.all(:all, :order =\> ‘time’) respond\_to do |format| format.html format.xml { render :xml =\> @shows } end end …which works fine when you view the ‘show…

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

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