# Rails

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

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

---

## [Candidate for RJS?](https://www.ruby-forum.com/t/candidate-for-rjs/170056)

<div class="topic-metadata">

**Author:** [@knappe](https://www.ruby-forum.com/u/knappe)\
**Replies:** 12\
**Last updated:** [June 12, 2009, 6:26pm UTC](https://www.ruby-forum.com/t/candidate-for-rjs/170056 "2009-06-12T18:26:24Z")

</div>

I have a function in my controller that loops over a div tag replacing some text based up an updated variable set by the user. Code: ===== Controller ====== render :update do |page| for i in 0..23 do …

---

## [Problem with asset timestamps](https://www.ruby-forum.com/t/problem-with-asset-timestamps/170102)

<div class="topic-metadata">

**Author:** [@Florent2](https://www.ruby-forum.com/u/Florent2)\
**Replies:** 1\
**Last updated:** [June 12, 2009, 5:58pm UTC](https://www.ruby-forum.com/t/problem-with-asset-timestamps/170102 "2009-06-12T17:58:41Z")

</div>

Hello, (Config: Rails 2.3.2, Ruby 1.8.7, apache 2.2, assets are served from a dedicated host specified in ActionController::Base.asset\_host, in the filesystem they are stored in a different folder than the RAILS\_ROOT/ …

---

## [Recursive partial wasted my 2 hours](https://www.ruby-forum.com/t/recursive-partial-wasted-my-2-hours/170060)

<div class="topic-metadata">

**Author:** [@ssk](https://www.ruby-forum.com/u/ssk)\
**Replies:** 2\
**Last updated:** [June 12, 2009, 5:43pm UTC](https://www.ruby-forum.com/t/recursive-partial-wasted-my-2-hours/170060 "2009-06-12T17:43:24Z")

</div>

Hi, When I called a page, the server choked like frozen. I checked it with ‘top’ command and HDD(wa) was 95%. There’s no error or suspicious log. After wasting 2 hours, I found that a partial called it self. In \_a.h…

---

## [Problem Logging in to site with two names](https://www.ruby-forum.com/t/problem-logging-in-to-site-with-two-names/170075)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [June 12, 2009, 5:31pm UTC](https://www.ruby-forum.com/t/problem-logging-in-to-site-with-two-names/170075 "2009-06-12T17:31:34Z")

</div>

I have a wierd website setup, because my boss doesn’t want to change who hosts our email server. My website is hosted on site5, and has a domain name registered with them (www.mysite1.com). www.mysite2.net is registe…

---

## [Best platform for easy video encoding & streaming?](https://www.ruby-forum.com/t/best-platform-for-easy-video-encoding-streaming/170128)

<div class="topic-metadata">

**Author:** [@andy](https://www.ruby-forum.com/u/andy)\
**Replies:** 0\
**Last updated:** [June 12, 2009, 5:26pm UTC](https://www.ruby-forum.com/t/best-platform-for-easy-video-encoding-streaming/170128 "2009-06-12T17:26:52Z")

</div>

I need to integrate forms for uploading video, encoding the video to FLV, and playing back on an application. Is Panda the best choice for this? What are the other leading platforms? Thanks, Andy

---

## [Noob validation question for time\_zone](https://www.ruby-forum.com/t/noob-validation-question-for-time-zone/170110)

<div class="topic-metadata">

**Author:** [@jon](https://www.ruby-forum.com/u/jon)\
**Replies:** 3\
**Last updated:** [June 12, 2009, 4:32pm UTC](https://www.ruby-forum.com/t/noob-validation-question-for-time-zone/170110 "2009-06-12T16:32:16Z")

</div>

Despite much googling and book checking, I can’t for the life of me figure out how to check if the time\_zone object is nil. The situation is that I built a fun little delayed email delivery app – http://mailthislater…

---

## [Overrite ActiveRecord Methods in Plugin](https://www.ruby-forum.com/t/overrite-activerecord-methods-in-plugin/170074)

<div class="topic-metadata">

**Author:** [@n3rdgir1](https://www.ruby-forum.com/u/n3rdgir1)\
**Replies:** 2\
**Last updated:** [June 12, 2009, 4:30pm UTC](https://www.ruby-forum.com/t/overrite-activerecord-methods-in-plugin/170074 "2009-06-12T16:30:32Z")

</div>

I’m trying to write an acts\_as\_ plugin for my rails app, and I need to override valid? and update\_attributes. No matter what I do, I can’t get it to call my plugin methods, but it will call my method\_missing fine. -f…

---

## [Printing the contents of a DIV](https://www.ruby-forum.com/t/printing-the-contents-of-a-div/170064)

<div class="topic-metadata">

**Author:** [@Ruby\_on\_RailsS\_Talk](https://www.ruby-forum.com/u/Ruby_on_RailsS_Talk)\
**Replies:** 9\
**Last updated:** [June 12, 2009, 3:17pm UTC](https://www.ruby-forum.com/t/printing-the-contents-of-a-div/170064 "2009-06-12T15:17:01Z")

</div>

Hi Is there any way to be able to get a function (or something?!) to print the contents of a DIV without loading the div into it’s own window etc? I’ve googled like crazy but seem to be asking the impossible. Any id…

---

## [Problem with date object](https://www.ruby-forum.com/t/problem-with-date-object/169922)

<div class="topic-metadata">

**Author:** [@vikas](https://www.ruby-forum.com/u/vikas)\
**Replies:** 5\
**Last updated:** [June 12, 2009, 2:24pm UTC](https://www.ruby-forum.com/t/problem-with-date-object/169922 "2009-06-12T14:24:49Z")

</div>

Hello All, My problem is i have field “expiry\_date” which is a “date” type. I want to take that date and store it in database as following in controller def create cc\_information = params\[:credit\_card\] @credit\_c…

---

## [Just get the errortext, nothing more](https://www.ruby-forum.com/t/just-get-the-errortext-nothing-more/170095)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [June 12, 2009, 1:25pm UTC](https://www.ruby-forum.com/t/just-get-the-errortext-nothing-more/170095 "2009-06-12T13:25:34Z")

</div>

hey people i just wanna have the errortext if there is a error. error\_message\_on () always returns an additional div tag which destroys my whole design. i managed to get rid of the divs for the errorfields through Ac…

---

## [Fragment caching file\_store problems](https://www.ruby-forum.com/t/fragment-caching-file-store-problems/170014)

<div class="topic-metadata">

**Author:** [@tachekent](https://www.ruby-forum.com/u/tachekent)\
**Replies:** 1\
**Last updated:** [June 12, 2009, 12:14pm UTC](https://www.ruby-forum.com/t/fragment-caching-file-store-problems/170014 "2009-06-12T12:14:31Z")

</div>

Hello, I’m having problems on both my production and development servers with fragment caching. Every time I try to cache something using \<% cache do %\>, I get the following error: Couldn’t create cache directory: v…

---

## [500 internal Server error](https://www.ruby-forum.com/t/500-internal-server-error/170106)

<div class="topic-metadata">

**Author:** [@soutom](https://www.ruby-forum.com/u/soutom)\
**Replies:** 0\
**Last updated:** [June 12, 2009, 11:24am UTC](https://www.ruby-forum.com/t/500-internal-server-error/170106 "2009-06-12T11:24:29Z")

</div>

When i am going to start the WEBrick server i got the following error… C:\\mystic\_0.1.4\>ruby script/server./script/…/config/boot.rb: 26:Warning: Gem::SourceIndex#search support for Strin g patterns is deprecated =\> B…

---

## [Pagination: Last Page](https://www.ruby-forum.com/t/pagination-last-page/169766)

<div class="topic-metadata">

**Author:** [@jdunneuk](https://www.ruby-forum.com/u/jdunneuk)\
**Replies:** 9\
**Last updated:** [June 12, 2009, 11:05am UTC](https://www.ruby-forum.com/t/pagination-last-page/169766 "2009-06-12T11:05:02Z")

</div>

Hi Folks is there any way to link to the last page of a paginated list, if the number of pages is not available in this moment? For example a forum with topic and replies. I’d like to link to the last page of the rep…

---

## [Fail to start a lower Version ( Rails 1.1.6) Rails Project](https://www.ruby-forum.com/t/fail-to-start-a-lower-version-rails-1-1-6-rails-project/170093)

<div class="topic-metadata">

**Author:** [@soutom](https://www.ruby-forum.com/u/soutom)\
**Replies:** 2\
**Last updated:** [June 12, 2009, 10:09am UTC](https://www.ruby-forum.com/t/fail-to-start-a-lower-version-rails-1-1-6-rails-project/170093 "2009-06-12T10:09:59Z")

</div>

I have a RoR project in rails version 1.1.6. Just to start this project i just install rails of version 1.1.6 but when i am going to start to start the server then i got the following error… D:\\simpleticket\>ruby scr…

---

## [Updating a RoR Project to the Higher Version](https://www.ruby-forum.com/t/updating-a-ror-project-to-the-higher-version/170094)

<div class="topic-metadata">

**Author:** [@soutom](https://www.ruby-forum.com/u/soutom)\
**Replies:** 0\
**Last updated:** [June 12, 2009, 8:42am UTC](https://www.ruby-forum.com/t/updating-a-ror-project-to-the-higher-version/170094 "2009-06-12T08:42:06Z")

</div>

I have a RoR project on rails version 1.1.6 But at present in my PC i had installed Rail of version 2.x How can i Upgrade my project to the updated version to run perfectly ? Thanking You

---

## [Simple text parser for wikitext](https://www.ruby-forum.com/t/simple-text-parser-for-wikitext/170090)

<div class="topic-metadata">

**Author:** [@manohar\_amrutkar](https://www.ruby-forum.com/u/manohar_amrutkar)\
**Replies:** 0\
**Last updated:** [June 12, 2009, 8:16am UTC](https://www.ruby-forum.com/t/simple-text-parser-for-wikitext/170090 "2009-06-12T08:16:20Z")

</div>

Hey , Does anyone knows about parsing wikitext into simple text?? I know wikitext gem but it converts the data into html format. Or does anyone knows how to fetch content from wikipedia using wikimedia api into simpl…

---

## [Blackbook Errors](https://www.ruby-forum.com/t/blackbook-errors/170088)

<div class="topic-metadata">

**Author:** [@uthiravel](https://www.ruby-forum.com/u/uthiravel)\
**Replies:** 0\
**Last updated:** [June 12, 2009, 7:24am UTC](https://www.ruby-forum.com/t/blackbook-errors/170088 "2009-06-12T07:24:28Z")

</div>

Hi friends, I was getting the following error when i am using Blackbook in console Blackbook::BadCredentialsError: Must be authenticated to access contacts. from /home/uthiravel/projects/git/wissr/vendor/plugins/bla…

---

## [Sessions in Rails 2.3?](https://www.ruby-forum.com/t/sessions-in-rails-2-3/170049)

<div class="topic-metadata">

**Author:** [@trib4lmaniac](https://www.ruby-forum.com/u/trib4lmaniac)\
**Replies:** 4\
**Last updated:** [June 12, 2009, 6:28am UTC](https://www.ruby-forum.com/t/sessions-in-rails-2-3/170049 "2009-06-12T06:28:48Z")

</div>

Hi guys, new here so bonjour… Sorry if this question has been asked, but i had a good look and i’m just generally confused about this at the moment! ive been learning rails for about 4 months now and im on to session…

---

## [Nice slideshow](https://www.ruby-forum.com/t/nice-slideshow/170086)

<div class="topic-metadata">

**Author:** [@CiriusMex](https://www.ruby-forum.com/u/CiriusMex)\
**Replies:** 0\
**Last updated:** [June 12, 2009, 6:11am UTC](https://www.ruby-forum.com/t/nice-slideshow/170086 "2009-06-12T06:11:51Z")

</div>

Hi, I have to create a page with various slideshows. The page display diferent places of a property with their data and for each of these properties display a slideshow with the property photos. I applied a slideshow …

---

## [Trigger an Ajax update from an external JS?](https://www.ruby-forum.com/t/trigger-an-ajax-update-from-an-external-js/170059)

<div class="topic-metadata">

**Author:** [@disturb](https://www.ruby-forum.com/u/disturb)\
**Replies:** 6\
**Last updated:** [June 12, 2009, 1:11am UTC](https://www.ruby-forum.com/t/trigger-an-ajax-update-from-an-external-js/170059 "2009-06-12T01:11:33Z")

</div>

I’m researching a project that uses a system component loaded on the page through a custom JS file. On defined user actions, this component will call a definable JS method, that i’d like to act in a link\_remote\_to fas…

---

## [Ruby 1.9.1-p129 fails the configure on OSX 10.5.7](https://www.ruby-forum.com/t/ruby-1-9-1-p129-fails-the-configure-on-osx-10-5-7/170071)

<div class="topic-metadata">

**Author:** [@Freddy\_A](https://www.ruby-forum.com/u/Freddy_A)\
**Replies:** 3\
**Last updated:** [June 12, 2009, 12:35am UTC](https://www.ruby-forum.com/t/ruby-1-9-1-p129-fails-the-configure-on-osx-10-5-7/170071 "2009-06-12T00:35:27Z")

</div>

cd ruby-1.9.1-p129 autoconf ./configure --program-suffix=19 checking whether ELF binaries are produced… no checking whether OS depend dynamic link works… In file included from /usr/local/include/fuse/fuse.h:26, fro…

---

## [Redefining rename\_column?](https://www.ruby-forum.com/t/redefining-rename-column/170067)

<div class="topic-metadata">

**Author:** [@plambert](https://www.ruby-forum.com/u/plambert)\
**Replies:** 3\
**Last updated:** [June 11, 2009, 11:30pm UTC](https://www.ruby-forum.com/t/redefining-rename-column/170067 "2009-06-11T23:30:40Z")

</div>

I would like to prevent rename\_column from working in certain circumstances, so I was trying to redefine rename\_column. However, it seems that the adapter’s definition loads afterward and wipes out what I put in. I …

---

## [Ruby 1.9.1 and Rails on Ubuntu](https://www.ruby-forum.com/t/ruby-1-9-1-and-rails-on-ubuntu/170065)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 0\
**Last updated:** [June 11, 2009, 9:52pm UTC](https://www.ruby-forum.com/t/ruby-1-9-1-and-rails-on-ubuntu/170065 "2009-06-11T21:52:10Z")

</div>

After successfully compiling 1.9.1 and updating the gem environment on my vbox, I performed the following: sudo gem install capistrano rails test-unit rspec-rails rake-compiler sqlite3-ruby hectoregm-mysql-ruby gem\_pl…

---

## [Restful routing question](https://www.ruby-forum.com/t/restful-routing-question/170050)

<div class="topic-metadata">

**Author:** [@mgiorno](https://www.ruby-forum.com/u/mgiorno)\
**Replies:** 3\
**Last updated:** [June 11, 2009, 9:42pm UTC](https://www.ruby-forum.com/t/restful-routing-question/170050 "2009-06-11T21:42:22Z")

</div>

Hi, I was wondering if you guys could help me out. i have a link\_to url like so: discard\_contents(current\_project, :to\_project\_id =\> params\[:id\]) =\> http://localhost:3000/projects/1163131/discard\_contents?to\_project…

---

## [What is RubySpec and why should you care? http://bit.ly/CavJE](https://www.ruby-forum.com/t/what-is-rubyspec-and-why-should-you-care-http-bit-ly-cavje/170054)

<div class="topic-metadata">

**Author:** [@LJMecca](https://www.ruby-forum.com/u/LJMecca)\
**Replies:** 0\
**Last updated:** [June 11, 2009, 7:30pm UTC](https://www.ruby-forum.com/t/what-is-rubyspec-and-why-should-you-care-http-bit-ly-cavje/170054 "2009-06-11T19:30:11Z")

</div>

What is RubySpec? – An executable definition of the Ruby programming language using RSpec-style specs. Why should you care? http://bit.ly/CavJE

---

## [Compare timestamps](https://www.ruby-forum.com/t/compare-timestamps/169974)

<div class="topic-metadata">

**Author:** [@steux](https://www.ruby-forum.com/u/steux)\
**Replies:** 6\
**Last updated:** [June 11, 2009, 7:20pm UTC](https://www.ruby-forum.com/t/compare-timestamps/169974 "2009-06-11T19:20:40Z")

</div>

Hi everyone, ‘Person’ migration includes timestamps. I want to find every person created ‘today’. Tried the command below, but I think it compares hour,minute and seconds too. I just want to compare day,month and yea…

---

## [Request to vote for on line SAP application](https://www.ruby-forum.com/t/request-to-vote-for-on-line-sap-application/170022)

<div class="topic-metadata">

**Author:** [@pavanagrawal](https://www.ruby-forum.com/u/pavanagrawal)\
**Replies:** 1\
**Last updated:** [June 11, 2009, 7:15pm UTC](https://www.ruby-forum.com/t/request-to-vote-for-on-line-sap-application/170022 "2009-06-11T19:15:30Z")

</div>

Dear Guru’s, I’ld like to request you to vote here http://launchpad.enterprise2conf.com/node/74 as 5 star (please click on 5 star to vote), this will give oxygen to our project. Waiting for your valuable vote. Best …

---

## [Ruby on Rails through cPanel](https://www.ruby-forum.com/t/ruby-on-rails-through-cpanel/169991)

<div class="topic-metadata">

**Author:** [@rpierry](https://www.ruby-forum.com/u/rpierry)\
**Replies:** 1\
**Last updated:** [June 11, 2009, 6:41pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-through-cpanel/169991 "2009-06-11T18:41:24Z")

</div>

Hi, I am having several problems using Ruby on Rails through cPanel. The main problems come when using Ruby Gems. They seem to install correctly, however errors are caused when I try to include them in the applicatio…

---

## [Module: ActionView::Helpers::DateHelper](https://www.ruby-forum.com/t/module-actionview-datehelper/170009)

<div class="topic-metadata">

**Author:** [@nike](https://www.ruby-forum.com/u/nike)\
**Replies:** 1\
**Last updated:** [June 11, 2009, 6:31pm UTC](https://www.ruby-forum.com/t/module-actionview-datehelper/170009 "2009-06-11T18:31:57Z")

</div>

hi i am using date\_select helper for displaying month day and year.I am trying to show month and year by the options of the helper as \<%=date\_select( “post”, “written\_on”, :discard\_day =\> true)%\> But i am getting erro…

---

## [To deploy or not to deploy on Google App Engine](https://www.ruby-forum.com/t/to-deploy-or-not-to-deploy-on-google-app-engine/169954)

<div class="topic-metadata">

**Author:** [@tashfeen.ekram](https://www.ruby-forum.com/u/tashfeen.ekram)\
**Replies:** 2\
**Last updated:** [June 11, 2009, 6:30pm UTC](https://www.ruby-forum.com/t/to-deploy-or-not-to-deploy-on-google-app-engine/169954 "2009-06-11T18:30:10Z")

</div>

I am nearing the end of a project I have been working on and trying to figure out if deploy on the app engine with jruby is a good option. They offer a tremnedous amount of bandwith, storage, etc so it is very temptin…

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

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