# Rails

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

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

---

## [Ajax asd will paginate](https://www.ruby-forum.com/t/ajax-asd-will-paginate/173688)

<div class="topic-metadata">

**Author:** [@wap](https://www.ruby-forum.com/u/wap)\
**Replies:** 0\
**Last updated:** [August 13, 2009, 11:13am UTC](https://www.ruby-forum.com/t/ajax-asd-will-paginate/173688 "2009-08-13T11:13:52Z")

</div>

i am use will\_paginate using ajax my code is following in controller def index #@images = Image.all @images = Image.paginate :page =\> params\[:page\], :per\_page =\> 2 respond\_to do |format| #format.html # index.html.e…

---

## [JSON output format](https://www.ruby-forum.com/t/json-output-format/173682)

<div class="topic-metadata">

**Author:** [@wsdickerson](https://www.ruby-forum.com/u/wsdickerson)\
**Replies:** 1\
**Last updated:** [August 13, 2009, 10:10am UTC](https://www.ruby-forum.com/t/json-output-format/173682 "2009-08-13T10:10:36Z")

</div>

Hi Everyone, I am a Rails newbie. I got a minor question about the JSON format produced by to\_json method. currently my code @events.to\_json (:only =\> \[:id , :title, :start, :end\]) will produce the output : \[{“even…

---

## [Ruby with ajax problem](https://www.ruby-forum.com/t/ruby-with-ajax-problem/173630)

<div class="topic-metadata">

**Author:** [@wap](https://www.ruby-forum.com/u/wap)\
**Replies:** 6\
**Last updated:** [August 13, 2009, 9:50am UTC](https://www.ruby-forum.com/t/ruby-with-ajax-problem/173630 "2009-08-13T09:50:06Z")

</div>

Hello All, i want to integrate light box ajax feature in my web app so that any idea about it.

---

## [JOBS: looking for RoR guru for high profile startup](https://www.ruby-forum.com/t/jobs-looking-for-ror-guru-for-high-profile-startup/173678)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [August 13, 2009, 9:48am UTC](https://www.ruby-forum.com/t/jobs-looking-for-ror-guru-for-high-profile-startup/173678 "2009-08-13T09:48:56Z")

</div>

MakingOf is looking for a Senior Developer who can join our stealth team. The Senior Developer must be creative, a problem-solver, understand video and mobile, have experience with Ruby on Rails, MySQL, Linux, and Soc…

---

## [\[JOBS\] Part time / Full time programmer wanted](https://www.ruby-forum.com/t/jobs-part-time-full-time-programmer-wanted/173615)

<div class="topic-metadata">

**Author:** [@Todd\_S](https://www.ruby-forum.com/u/Todd_S)\
**Replies:** 1\
**Last updated:** [August 13, 2009, 6:43am UTC](https://www.ruby-forum.com/t/jobs-part-time-full-time-programmer-wanted/173615 "2009-08-13T06:43:23Z")

</div>

We’re looking for a qualified ruby on rails programmer for continuous work and development on an established data base driven website. We want to streamline/optimize the current interface for the backend administratio…

---

## [Activity Log - messages with links - Strategy?](https://www.ruby-forum.com/t/activity-log-messages-with-links-strategy/173121)

<div class="topic-metadata">

**Author:** [@ram](https://www.ruby-forum.com/u/ram)\
**Replies:** 5\
**Last updated:** [August 13, 2009, 6:18am UTC](https://www.ruby-forum.com/t/activity-log-messages-with-links-strategy/173121 "2009-08-13T06:18:13Z")

</div>

Hi all, Im looking to write an activity log as part of the dashboard for one of my apps. The log should show messages like “Vinay created the project Acme Inc Website”, “You completed 2 tasks in the project Acme Inc…

---

## [Caching Model Constants](https://www.ruby-forum.com/t/caching-model-constants/173671)

<div class="topic-metadata">

**Author:** [@tispratik](https://www.ruby-forum.com/u/tispratik)\
**Replies:** 1\
**Last updated:** [August 13, 2009, 5:22am UTC](https://www.ruby-forum.com/t/caching-model-constants/173671 "2009-08-13T05:22:02Z")

</div>

Hi, Does anyone know of a good way of caching the constant variables in the model. I have constants in models whose values are based on finder methods. eg) TYPE\_UNIV = Decode.find\_by\_name(“University”) When i access…

---

## [First hit on app takes a long time](https://www.ruby-forum.com/t/first-hit-on-app-takes-a-long-time/173668)

<div class="topic-metadata">

**Author:** [@davetron5000](https://www.ruby-forum.com/u/davetron5000)\
**Replies:** 5\
**Last updated:** [August 13, 2009, 4:10am UTC](https://www.ruby-forum.com/t/first-hit-on-app-takes-a-long-time/173668 "2009-08-13T04:10:03Z")

</div>

So, I’ve deployed my first rails app, however I’m the only one hitting it for now. I’ve noticed that the first time I hit the app after some long period, it takes a really long time to respond (2-3 seconds). After th…

---

## [Link\_to\_remote question](https://www.ruby-forum.com/t/link-to-remote-question/173664)

<div class="topic-metadata">

**Author:** [@hangingclowns](https://www.ruby-forum.com/u/hangingclowns)\
**Replies:** 2\
**Last updated:** [August 13, 2009, 2:12am UTC](https://www.ruby-forum.com/t/link-to-remote-question/173664 "2009-08-13T02:12:56Z")

</div>

I have the simple view page: \<%= link\_to\_remote "Turn on Alert", :url =\> {:controller =\> "alerts", :action =\> "new"} :update =\> "test1" %\> Then in my controller I simply do if request.xhr? render :text =\> “AJAX Calle…

---

## [Fixtures, factories and the standard testing framework](https://www.ruby-forum.com/t/fixtures-factories-and-the-standard-testing-framework/173543)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 13\
**Last updated:** [August 13, 2009, 1:13am UTC](https://www.ruby-forum.com/t/fixtures-factories-and-the-standard-testing-framework/173543 "2009-08-13T01:13:10Z")

</div>

A little background: I’ve been enjoying rails for about a year now tinkering on meaningless projects here solely for the purpose of learning the framework… not because I actually needed to use those apps for anything …

---

## [Weird problem after deploy: application.html.erb does not lo](https://www.ruby-forum.com/t/weird-problem-after-deploy-application-html-erb-does-not-lo/173614)

<div class="topic-metadata">

**Author:** [@hirodusk](https://www.ruby-forum.com/u/hirodusk)\
**Replies:** 4\
**Last updated:** [August 13, 2009, 1:03am UTC](https://www.ruby-forum.com/t/weird-problem-after-deploy-application-html-erb-does-not-lo/173614 "2009-08-13T01:03:24Z")

</div>

I am having a weird problem: Just deployed an updated app to test on my server. For some reason it does not load my layout, but some other default layout, which looks like the below. I dont know where this layout is …

---

## [Commands I will need to know in production](https://www.ruby-forum.com/t/commands-i-will-need-to-know-in-production/173665)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 3\
**Last updated:** [August 13, 2009, 12:57am UTC](https://www.ruby-forum.com/t/commands-i-will-need-to-know-in-production/173665 "2009-08-13T00:57:01Z")

</div>

I’m fairly certain this is an easy question to answer but I like to make things more complicated than they need to be. I notice that a lot of people have: RAILS\_ENV=production … in their environment.rb files I don’t…

---

## [SSH Tunnelling and Rails Development](https://www.ruby-forum.com/t/ssh-tunnelling-and-rails-development/173666)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 0\
**Last updated:** [August 13, 2009, 12:37am UTC](https://www.ruby-forum.com/t/ssh-tunnelling-and-rails-development/173666 "2009-08-13T00:37:17Z")

</div>

So, I decided to use MySQL Query Browser to look over my database remotely through SSH. I’m currently on Windows Vista and had decided not to use PHPMYADMIN, mainly because others gave me good reasons not to via sec…

---

## [Problem with Mephisto blog and Passenger](https://www.ruby-forum.com/t/problem-with-mephisto-blog-and-passenger/173650)

<div class="topic-metadata">

**Author:** [@M\_Graff](https://www.ruby-forum.com/u/M_Graff)\
**Replies:** 3\
**Last updated:** [August 13, 2009, 12:13am UTC](https://www.ruby-forum.com/t/problem-with-mephisto-blog-and-passenger/173650 "2009-08-13T00:13:00Z")

</div>

I seem to be getting a SystemStackError exception when running Mephisto under Passenger. The trace I get has 149 lines of backtrace, which seems large, but when looking at it I don’t see any loops nor other issues. …

---

## [Overriding std nested resources route](https://www.ruby-forum.com/t/overriding-std-nested-resources-route/173528)

<div class="topic-metadata">

**Author:** [@lunaclaire](https://www.ruby-forum.com/u/lunaclaire)\
**Replies:** 4\
**Last updated:** [August 12, 2009, 11:45pm UTC](https://www.ruby-forum.com/t/overriding-std-nested-resources-route/173528 "2009-08-12T23:45:29Z")

</div>

I have a set of nested resources as follows: map.resources :users map.resources :users, :has\_many =\> :contacts this gives me a std route as follows to list a user’s contacts in the ContactsController ‘index’ action: …

---

## [Mapping a virtual route to phpmyadmin with rails](https://www.ruby-forum.com/t/mapping-a-virtual-route-to-phpmyadmin-with-rails/173657)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 7\
**Last updated:** [August 12, 2009, 11:09pm UTC](https://www.ruby-forum.com/t/mapping-a-virtual-route-to-phpmyadmin-with-rails/173657 "2009-08-12T23:09:22Z")

</div>

How do I setup a route to a virtual path in rails for phpmyadmin, if I want to use that to look over my database? Say the path is at the following: myvirtualpath/admin/phpmyadmin/ If I went to … http://mysite.com/my…

---

## [Bliptv ruby gem](https://www.ruby-forum.com/t/bliptv-ruby-gem/173659)

<div class="topic-metadata">

**Author:** [@esdevs](https://www.ruby-forum.com/u/esdevs)\
**Replies:** 0\
**Last updated:** [August 12, 2009, 9:29pm UTC](https://www.ruby-forum.com/t/bliptv-ruby-gem/173659 "2009-08-12T21:29:42Z")

</div>

Does anybody have any experience with this? I am having issues installing it and running config.gem. Getting errors like “could not find gem” etc when running rake to install it. the two link references are: http:/…

---

## [Form validation/errors not working](https://www.ruby-forum.com/t/form-validation-errors-not-working/173599)

<div class="topic-metadata">

**Author:** [@archangel77](https://www.ruby-forum.com/u/archangel77)\
**Replies:** 8\
**Last updated:** [August 12, 2009, 9:18pm UTC](https://www.ruby-forum.com/t/form-validation-errors-not-working/173599 "2009-08-12T21:18:34Z")

</div>

Hello. I’m trying to create a form. It has only a username and a password field. The validation methods, such as validates\_presence\_of, aren’t working. Does anyone know why? class UsersController \< ApplicationContro…

---

## [Deploying with Capistrano - scaling up](https://www.ruby-forum.com/t/deploying-with-capistrano-scaling-up/173656)

<div class="topic-metadata">

**Author:** [@krishna](https://www.ruby-forum.com/u/krishna)\
**Replies:** 0\
**Last updated:** [August 12, 2009, 8:22pm UTC](https://www.ruby-forum.com/t/deploying-with-capistrano-scaling-up/173656 "2009-08-12T20:22:22Z")

</div>

Hi, this may be a stupid question but , just want to ask anyway… I have a working rails application and capistrano deploy setup (cap deploy works great) on one machine…I want to add more machines preferably one for w…

---

## [Problem with method that performs a rake](https://www.ruby-forum.com/t/problem-with-method-that-performs-a-rake/173587)

<div class="topic-metadata">

**Author:** [@dezrtdude](https://www.ruby-forum.com/u/dezrtdude)\
**Replies:** 3\
**Last updated:** [August 12, 2009, 8:00pm UTC](https://www.ruby-forum.com/t/problem-with-method-that-performs-a-rake/173587 "2009-08-12T20:00:52Z")

</div>

hello, I am new to programming and am trying to create a clear\_cache method. This method is invoked when a submit button is pressed on a partial. def clear\_cache Dir.chdir(‘…/…/…/…/…/’) #This moves up to the appropri…

---

## [Limiting who and see/update which record](https://www.ruby-forum.com/t/limiting-who-and-see-update-which-record/173613)

<div class="topic-metadata">

**Author:** [@nik](https://www.ruby-forum.com/u/nik)\
**Replies:** 2\
**Last updated:** [August 12, 2009, 7:44pm UTC](https://www.ruby-forum.com/t/limiting-who-and-see-update-which-record/173613 "2009-08-12T19:44:19Z")

</div>

Hello, all, Say I own a freelance article editing company that help my clients editing their articles to a certain standard. And my employees are editors. a Article Model, an Assignment Model, and then an Editor Mode…

---

## [Autocomplete after update](https://www.ruby-forum.com/t/autocomplete-after-update/173652)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 0\
**Last updated:** [August 12, 2009, 7:26pm UTC](https://www.ruby-forum.com/t/autocomplete-after-update/173652 "2009-08-12T19:26:45Z")

</div>

I am trying to just render an ajax request to display the values at a site when the user selects a site, I have this: \<%= text\_field\_with\_auto\_complete :site, :name, :with =\> "‘ci=’ + element.value ", :after\_update\_…

---

## [I am very overwhelmed going to production and need help](https://www.ruby-forum.com/t/i-am-very-overwhelmed-going-to-production-and-need-help/173645)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 21\
**Last updated:** [August 12, 2009, 6:36pm UTC](https://www.ruby-forum.com/t/i-am-very-overwhelmed-going-to-production-and-need-help/173645 "2009-08-12T18:36:24Z")

</div>

The title says it all - please bear with me. To let you know where I stand, I have been working for up to 12 hours a day for 2 months and 2 weeks trying to get my site ready for release. In development (on windows) …

---

## [Like Google tasks](https://www.ruby-forum.com/t/like-google-tasks/173651)

<div class="topic-metadata">

**Author:** [@Abhishek\_shukla](https://www.ruby-forum.com/u/Abhishek_shukla)\
**Replies:** 0\
**Last updated:** [August 12, 2009, 6:28pm UTC](https://www.ruby-forum.com/t/like-google-tasks/173651 "2009-08-12T18:28:48Z")

</div>

Hello friends, I am looking out something similar functionality like google tasks do, i mean the behavior of the task popup window. Is there any Javascript library available which I can integrate Thanks Abhis

---

## [Deploying Controller Actions](https://www.ruby-forum.com/t/deploying-controller-actions/173648)

<div class="topic-metadata">

**Author:** [@djames](https://www.ruby-forum.com/u/djames)\
**Replies:** 0\
**Last updated:** [August 12, 2009, 6:15pm UTC](https://www.ruby-forum.com/t/deploying-controller-actions/173648 "2009-08-12T18:15:19Z")

</div>

Let’s say that one has a set of controller actions that he plans to deploy on a collection of different web sites. For the most part, any particular action on any given web site in the collection is the same as the c…

---

## [Routes and Forms](https://www.ruby-forum.com/t/routes-and-forms/173649)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 0\
**Last updated:** [August 12, 2009, 6:04pm UTC](https://www.ruby-forum.com/t/routes-and-forms/173649 "2009-08-12T18:04:29Z")

</div>

Hello G.s, I am totally new to rails so sorry if I ask some silly questions, I am also totally confused which is likely self inflicted! So I am learning rails and rjs - I have two models Manufacturers Models So Man…

---

## [In-place editing of attributes via an â€œind exâ€ page...?](https://www.ruby-forum.com/t/in-place-editing-of-attributes-via-an-a-oeind-exa-page/173644)

<div class="topic-metadata">

**Author:** [@dezrtdude](https://www.ruby-forum.com/u/dezrtdude)\
**Replies:** 3\
**Last updated:** [August 12, 2009, 6:02pm UTC](https://www.ruby-forum.com/t/in-place-editing-of-attributes-via-an-a-oeind-exa-page/173644 "2009-08-12T18:02:50Z")

</div>

Hi All, I’m looking to use “in\_place\_editor\_field” on an “Index” page of items. Basically I want to mimic spreadsheet functionality for pre- existing line items in order to edit their attributes. However, none of the…

---

## [Rake gems:install doesn't install gems listed on environments/development.rb](https://www.ruby-forum.com/t/rake-gems-install-doesnt-install-gems-listed-on-environments-development-rb/173646)

<div class="topic-metadata">

**Author:** [@Lucas\_HSSSSngaro](https://www.ruby-forum.com/u/Lucas_HSSSSngaro)\
**Replies:** 0\
**Last updated:** [August 12, 2009, 5:17pm UTC](https://www.ruby-forum.com/t/rake-gems-install-doesnt-install-gems-listed-on-environments-development-rb/173646 "2009-08-12T17:17:57Z")

</div>

That’s it. The command works for all gems listed on config/ environment.rb and even for environments/test.rb and environments/ production.rb (using: $ RAILS\_ENV= sudo rake gems:install), but just ignores all gems list…

---

## [Form\_for help needed](https://www.ruby-forum.com/t/form-for-help-needed/173619)

<div class="topic-metadata">

**Author:** [@railslist](https://www.ruby-forum.com/u/railslist)\
**Replies:** 7\
**Last updated:** [August 12, 2009, 5:12pm UTC](https://www.ruby-forum.com/t/form-for-help-needed/173619 "2009-08-12T17:12:41Z")

</div>

here is the scenario: i have a form ( with couple of simple validations ) for the new action: \<% form\_for :classified, @classified, :url=\>{ :controller=\>‘classifieds’, :action=\>‘create’}, :html =\> { :multipart =\> tru…

---

## [Dynamic Table Row](https://www.ruby-forum.com/t/dynamic-table-row/173641)

<div class="topic-metadata">

**Author:** [@pmckinstry](https://www.ruby-forum.com/u/pmckinstry)\
**Replies:** 1\
**Last updated:** [August 12, 2009, 3:57pm UTC](https://www.ruby-forum.com/t/dynamic-table-row/173641 "2009-08-12T15:57:45Z")

</div>

I’m playing with rails and RJS, What I want I think sounds simple - but I can’t seem to figure it out. So basically I have a Countries Model, which joins on Cities Model. I want to display a list of countries in a sel…

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

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