# Rails

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

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

---

## [Call Javascript](https://www.ruby-forum.com/t/call-javascript/164865)

<div class="topic-metadata">

**Author:** [@intern\_ruby](https://www.ruby-forum.com/u/intern_ruby)\
**Replies:** 2\
**Last updated:** [April 6, 2009, 9:03pm UTC](https://www.ruby-forum.com/t/call-javascript/164865 "2009-04-06T21:03:26Z")

</div>

I have following code. I have included the javascript file at the top of page. Still it is giving errors CODE: \<%= f.label :content %\> \<%= f.text\_area :content, {onkeyup="strcount(1);chngcnt(1);" onkeydown="…

---

## [Wierdness with time.getutc.localtime](https://www.ruby-forum.com/t/wierdness-with-time-getutc-localtime/164862)

<div class="topic-metadata">

**Author:** [@cookiemonster](https://www.ruby-forum.com/u/cookiemonster)\
**Replies:** 0\
**Last updated:** [April 6, 2009, 8:02pm UTC](https://www.ruby-forum.com/t/wierdness-with-time-getutc-localtime/164862 "2009-04-06T20:02:28Z")

</div>

I’m new to Ruby/Rails and trying to understand Time/Date/DateTime. I came across this weirdness while playing around and was wondering if someone can tell me what is going on here: w = Work.find(9) =\> #\<Work id: 9,…

---

## [Just can't get Ruby on Rails to work in Leopard](https://www.ruby-forum.com/t/just-cant-get-ruby-on-rails-to-work-in-leopard/164758)

<div class="topic-metadata">

**Author:** [@sclaerhout](https://www.ruby-forum.com/u/sclaerhout)\
**Replies:** 12\
**Last updated:** [April 6, 2009, 7:34pm UTC](https://www.ruby-forum.com/t/just-cant-get-ruby-on-rails-to-work-in-leopard/164758 "2009-04-06T19:34:50Z")

</div>

I’ve tried a million different tutorials and I just can’t figure this out. I have all things needed to create the development environment and I just can’t get the server to function correctly I suppose. Here’s the err…

---

## [Help replacing all @user patterns with link (regular expressions)](https://www.ruby-forum.com/t/help-replacing-all-user-patterns-with-link-regular-expressions/164859)

<div class="topic-metadata">

**Author:** [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Replies:** 1\
**Last updated:** [April 6, 2009, 7:22pm UTC](https://www.ruby-forum.com/t/help-replacing-all-user-patterns-with-link-regular-expressions/164859 "2009-04-06T19:22:33Z")

</div>

Hi - I want to add a feature to my comment forum where anytime someone types in @username, I can grab the username, make sure it’s valid, and if so, replace it with a link to that user’s profile. So, I think I want s…

---

## [BackgrounDRb - Dynamic Schedules](https://www.ruby-forum.com/t/backgroundrb-dynamic-schedules/164857)

<div class="topic-metadata">

**Author:** [@tvor](https://www.ruby-forum.com/u/tvor)\
**Replies:** 0\
**Last updated:** [April 6, 2009, 6:41pm UTC](https://www.ruby-forum.com/t/backgroundrb-dynamic-schedules/164857 "2009-04-06T18:41:20Z")

</div>

I have an RoR application with a BackgrounDRb server that has a worker which invokes a function in the worker every 5 seconds. I have this set up in my background.yml as :backgroundrb: :ip: 0.0.0.0 :port: 11006 :s…

---

## [Auto\_increment question?](https://www.ruby-forum.com/t/auto-increment-question/164770)

<div class="topic-metadata">

**Author:** [@kingduggan](https://www.ruby-forum.com/u/kingduggan)\
**Replies:** 4\
**Last updated:** [April 6, 2009, 6:29pm UTC](https://www.ruby-forum.com/t/auto-increment-question/164770 "2009-04-06T18:29:09Z")

</div>

Hello All, So I am new to rails and the first project I am creating is a ticketing system to log customer support. All I am trying to do is have the primary id of each new ticket auto increment like ticket id 1001, 1…

---

## [Hpricot Strange behaviour](https://www.ruby-forum.com/t/hpricot-strange-behaviour/164856)

<div class="topic-metadata">

**Author:** [@marmolin](https://www.ruby-forum.com/u/marmolin)\
**Replies:** 0\
**Last updated:** [April 6, 2009, 6:14pm UTC](https://www.ruby-forum.com/t/hpricot-strange-behaviour/164856 "2009-04-06T18:14:30Z")

</div>

I have a rather strange problem !! I am using hpricot as an XML parser in my ruby/rails application In my local mac developing environment (rails 2.3.2, ruby 1.8.6, msql 2.7, hpricot 1.8.1) everything works fine. Ho…

---

## [Redirection after registration](https://www.ruby-forum.com/t/redirection-after-registration/164848)

<div class="topic-metadata">

**Author:** [@haritha\_s](https://www.ruby-forum.com/u/haritha_s)\
**Replies:** 1\
**Last updated:** [April 6, 2009, 5:08pm UTC](https://www.ruby-forum.com/t/redirection-after-registration/164848 "2009-04-06T17:08:07Z")

</div>

Hello people … In my application I have user registration, i am using remote\_form\_for and lightbox for registration. after successful registration cant able to come out of lightbox with redirection. how can i redir…

---

## [How to debug a Rails application in emacs?](https://www.ruby-forum.com/t/how-to-debug-a-rails-application-in-emacs/164765)

<div class="topic-metadata">

**Author:** [@Houman\_D](https://www.ruby-forum.com/u/Houman_D)\
**Replies:** 4\
**Last updated:** [April 6, 2009, 5:01pm UTC](https://www.ruby-forum.com/t/how-to-debug-a-rails-application-in-emacs/164765 "2009-04-06T17:01:05Z")

</div>

Hi folks, I’ve just installed rdebug in emacs and it works fine for ruby scripts, but I cannot get it to work in a Rails application. Is this doable? If so, what are the instructions for it? Thanks in advance,

---

## [Different views for different conditions](https://www.ruby-forum.com/t/different-views-for-different-conditions/164842)

<div class="topic-metadata">

**Author:** [@kirps](https://www.ruby-forum.com/u/kirps)\
**Replies:** 1\
**Last updated:** [April 6, 2009, 4:43pm UTC](https://www.ruby-forum.com/t/different-views-for-different-conditions/164842 "2009-04-06T16:43:29Z")

</div>

Hi Guys I have the following questions: Create the User Hub Page, which would be accessible as index action of the User controller. Yes, you have already something in this action: if you made the Week 4 Activity well…

---

## [Another Database Connectivity](https://www.ruby-forum.com/t/another-database-connectivity/196931)

<div class="topic-metadata">

**Author:** [@saurabhpurnaye](https://www.ruby-forum.com/u/saurabhpurnaye)\
**Replies:** 1\
**Last updated:** [April 6, 2009, 4:19pm UTC](https://www.ruby-forum.com/t/another-database-connectivity/196931 "2009-04-06T16:19:27Z")

</div>

Hi All, I’m trying to connect another database using rails I made changes in database.yml file I succeed in that but with same table name, I’m having two issues regarding that: How to connect the specific table of…

---

## [Rails VS. .Net MVC](https://www.ruby-forum.com/t/rails-vs-net-mvc/164673)

<div class="topic-metadata">

**Author:** [@cpher](https://www.ruby-forum.com/u/cpher)\
**Replies:** 22\
**Last updated:** [April 6, 2009, 3:43pm UTC](https://www.ruby-forum.com/t/rails-vs-net-mvc/164673 "2009-04-06T15:43:40Z")

</div>

Hello All, I have been put in a tough situation at work. I have been developing rails applications for the past 2 years and thoroughly enjoy what I am doing. However it has been bestowed upon me to give an objective…

---

## [URL issue localhost/mongrel vs remote-server/apache](https://www.ruby-forum.com/t/url-issue-localhost-mongrel-vs-remote-server-apache/164810)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 2\
**Last updated:** [April 6, 2009, 3:07pm UTC](https://www.ruby-forum.com/t/url-issue-localhost-mongrel-vs-remote-server-apache/164810 "2009-04-06T15:07:51Z")

</div>

Hi all I have a small issue I ma trying to solve (at least to understand…) I am testing an app on my remote\_server (w Apache/Passenger) in a sub\_URI, without any problem (I tested also the same app, locally w Apache…

---

## [Rails and Firefox on crack with redirections](https://www.ruby-forum.com/t/rails-and-firefox-on-crack-with-redirections/164711)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 7\
**Last updated:** [April 6, 2009, 2:39pm UTC](https://www.ruby-forum.com/t/rails-and-firefox-on-crack-with-redirections/164711 "2009-04-06T14:39:35Z")

</div>

Hi, Rails and/or Firefox are driving me nuts. I have a products\_controllers with 2 actions: index and show. On the index action a session is set to create an order if user has no order yet. On that index page, user …

---

## [Rails, Jquery, Pagination & form submission](https://www.ruby-forum.com/t/rails-jquery-pagination-form-submission/164821)

<div class="topic-metadata">

**Author:** [@preethi](https://www.ruby-forum.com/u/preethi)\
**Replies:** 2\
**Last updated:** [April 6, 2009, 1:25pm UTC](https://www.ruby-forum.com/t/rails-jquery-pagination-form-submission/164821 "2009-04-06T13:25:28Z")

</div>

Hi, I’m having a page in which i’m listing a list of profiles with pagination(done in Jquery).(see the attachment) I’m having a delete option in my page which has to take all the checked rows i’m selecting(irrespecti…

---

## [CSS Background-color Weirdness](https://www.ruby-forum.com/t/css-background-color-weirdness/164798)

<div class="topic-metadata">

**Author:** [@jabauer](https://www.ruby-forum.com/u/jabauer)\
**Replies:** 2\
**Last updated:** [April 6, 2009, 1:20pm UTC](https://www.ruby-forum.com/t/css-background-color-weirdness/164798 "2009-04-06T13:20:25Z")

</div>

For some reason the stylesheet I have associated with my layout will not change the background-color for the content retrieved from my with \<%= yield %\>. To make matters stranger, I can style any part of the html in …

---

## [Url problem](https://www.ruby-forum.com/t/url-problem/164822)

<div class="topic-metadata">

**Author:** [@vaibhav\_darji](https://www.ruby-forum.com/u/vaibhav_darji)\
**Replies:** 0\
**Last updated:** [April 6, 2009, 11:30am UTC](https://www.ruby-forum.com/t/url-problem/164822 "2009-04-06T11:30:21Z")

</div>

I contain oracle as my database having table “oratest11”,contails 2 fields as (id\_field(Number),data(varchar2(20)) a sequence as “oratest11\_seq” which is incrementing the value of id\_field My model is as follows:- c…

---

## [Converting Number into Integer in ruby](https://www.ruby-forum.com/t/converting-number-into-integer-in-ruby/164816)

<div class="topic-metadata">

**Author:** [@vaibhav\_darji](https://www.ruby-forum.com/u/vaibhav_darji)\
**Replies:** 2\
**Last updated:** [April 6, 2009, 11:28am UTC](https://www.ruby-forum.com/t/converting-number-into-integer-in-ruby/164816 "2009-04-06T11:28:45Z")

</div>

I am working with a legacy oracle database. The primary key is not defined as an integer but as a number. This results in a url with an id as a number, such as 1234.0 instead of 1234. It works fine, but I would prefer…

---

## [Can't get console to work in rails](https://www.ruby-forum.com/t/cant-get-console-to-work-in-rails/164572)

<div class="topic-metadata">

**Author:** [@itchy](https://www.ruby-forum.com/u/itchy)\
**Replies:** 8\
**Last updated:** [April 6, 2009, 10:40am UTC](https://www.ruby-forum.com/t/cant-get-console-to-work-in-rails/164572 "2009-04-06T10:40:46Z")

</div>

Hi, i can’t get the console to work in rails . everything else seems to work fine. I think this happened after i updated to the most recent version of rails or maybe it has to do with postgres (which I’m also very new…

---

## [How to Apply patch](https://www.ruby-forum.com/t/how-to-apply-patch/164805)

<div class="topic-metadata">

**Author:** [@charanya](https://www.ruby-forum.com/u/charanya)\
**Replies:** 2\
**Last updated:** [April 6, 2009, 10:24am UTC](https://www.ruby-forum.com/t/how-to-apply-patch/164805 "2009-04-06T10:24:27Z")

</div>

I would like to use the plugin In-Place-Editing in my app.But it requires a patch to be applied as given in “http://www.yjchen.url.tw/tips/in-place-editing-for-rails-20/” .I got the patch file and the plugin.I would l…

---

## [Converting decimal primary key to integer (oracle)](https://www.ruby-forum.com/t/converting-decimal-primary-key-to-integer-oracle/50002)

<div class="topic-metadata">

**Author:** [@dmcclean](https://www.ruby-forum.com/u/dmcclean)\
**Replies:** 1\
**Last updated:** [April 6, 2009, 10:09am UTC](https://www.ruby-forum.com/t/converting-decimal-primary-key-to-integer-oracle/50002 "2009-04-06T10:09:30Z")

</div>

I am working with a legacy oracle database. The primary key is not defined as an integer but as a number. This results in a url with an id as a number, such as 1234.0 instead of 1234. It works fine, but I would prefer…

---

## [Routing to custom defined controller method](https://www.ruby-forum.com/t/routing-to-custom-defined-controller-method/164814)

<div class="topic-metadata">

**Author:** [@Cesar](https://www.ruby-forum.com/u/Cesar)\
**Replies:** 1\
**Last updated:** [April 6, 2009, 10:04am UTC](https://www.ruby-forum.com/t/routing-to-custom-defined-controller-method/164814 "2009-04-06T10:04:27Z")

</div>

Hi, I’m developing my first rails project in Netbeans, with rails 2.1, I used scaffold to generate my models, views and controllers. The problem I’m having is that when I define a new method inside a controller i can …

---

## [Seeking help with basic installation](https://www.ruby-forum.com/t/seeking-help-with-basic-installation/164815)

<div class="topic-metadata">

**Author:** [@sugi](https://www.ruby-forum.com/u/sugi)\
**Replies:** 1\
**Last updated:** [April 6, 2009, 10:03am UTC](https://www.ruby-forum.com/t/seeking-help-with-basic-installation/164815 "2009-04-06T10:03:16Z")

</div>

Hi all, Please help me.In my first attempt to creat a simple controller and working with hello world program.I got some error though I have my action and view correctly… In general…When I type http://localho…

---

## [How to reset session if rails server is killed abruptly using Ctrl-c](https://www.ruby-forum.com/t/how-to-reset-session-if-rails-server-is-killed-abruptly-using-ctrl-c/164812)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [April 6, 2009, 9:50am UTC](https://www.ruby-forum.com/t/how-to-reset-session-if-rails-server-is-killed-abruptly-using-ctrl-c/164812 "2009-04-06T09:50:23Z")

</div>

Hi, I have some user informations stored in the session. If i use Ctrl-c to kill the rails server and restart the server, the informations remains in the session I want the session informations gone, once i restart t…

---

## [Problem in copying file](https://www.ruby-forum.com/t/problem-in-copying-file/196929)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 1\
**Last updated:** [April 6, 2009, 9:45am UTC](https://www.ruby-forum.com/t/problem-in-copying-file/196929 "2009-04-06T09:45:41Z")

</div>

Hi, I am facing a problem to copy the file. I am getting path of the file like this “http://photos-d.ak.fbcdn.net/photos-ak-snc1/v2574/90/75/704291251/457931\_8289306.jpg”. I want to copy this file locally. I am tryin…

---

## [Wizard like data entry](https://www.ruby-forum.com/t/wizard-like-data-entry/164807)

<div class="topic-metadata">

**Author:** [@indu](https://www.ruby-forum.com/u/indu)\
**Replies:** 2\
**Last updated:** [April 6, 2009, 9:32am UTC](https://www.ruby-forum.com/t/wizard-like-data-entry/164807 "2009-04-06T09:32:13Z")

</div>

Hello after having searched the forums I couldn’t find any solution to this problem: I want to implement a multi step form across models. Step 1: Enter requested username/ password/image etc - User model Step 2: Ente…

---

## [Help to get on with jquery](https://www.ruby-forum.com/t/help-to-get-on-with-jquery/164804)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 4\
**Last updated:** [April 6, 2009, 9:27am UTC](https://www.ruby-forum.com/t/help-to-get-on-with-jquery/164804 "2009-04-06T09:27:08Z")

</div>

What version of jquery has to be used for rails 2.2.2? any links to getting started with jquery with rails. i have not tried any jquery still now.i want to give it a try. pls help me to get on with jquery on rails. T…

---

## [Help me.... about net/http](https://www.ruby-forum.com/t/help-me-about-net-http/164800)

<div class="topic-metadata">

**Author:** [@anton\_effendi](https://www.ruby-forum.com/u/anton_effendi)\
**Replies:** 1\
**Last updated:** [April 6, 2009, 9:26am UTC](https://www.ruby-forum.com/t/help-me-about-net-http/164800 "2009-04-06T09:26:21Z")

</div>

Hai All. I have big problem in net/http… please help me… In my application have net/http for send xml… my question =\> why my site only can handle one request??? so only one user can request to my server…??? if 2 us…

---

## [How to check the config.action\_controller.session options?](https://www.ruby-forum.com/t/how-to-check-the-config-action-controller-session-options/128607)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 1\
**Last updated:** [April 6, 2009, 9:20am UTC](https://www.ruby-forum.com/t/how-to-check-the-config-action-controller-session-options/128607 "2009-04-06T09:20:40Z")

</div>

when setting it in my environment.rb config.action\_controller.session = { :session\_key =\> ‘\_myapp\_session’, :secret =\> ‘3a64394bb895f1f05e0c07f71127d93d’ } I cannot get it back in the script/console … :session…

---

## [\[REQ\] archive of reverse\_proxy\_fix plugin (svn down since 2+ weeks)](https://www.ruby-forum.com/t/req-archive-of-reverse-proxy-fix-plugin-svn-down-since-2-weeks/164811)

<div class="topic-metadata">

**Author:** [@Mathieu\_C](https://www.ruby-forum.com/u/Mathieu_C)\
**Replies:** 0\
**Last updated:** [April 6, 2009, 8:58am UTC](https://www.ruby-forum.com/t/req-archive-of-reverse-proxy-fix-plugin-svn-down-since-2-weeks/164811 "2009-04-06T08:58:48Z")

</div>

Dears, Anyone using reverse\_proxy\_fix (from Brian H.) can provide an archive of this plugin. (update for Rails 2.3) http://www.napcsweb.com/blog/2006/05/10/reverse-proxy-fix-plugin Main repository is down since 2+ we…

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

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