# Rails

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

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

---

## [Acts\_as\_authenticated redirect on ajax requests](https://www.ruby-forum.com/t/acts-as-authenticated-redirect-on-ajax-requests/114323)

<div class="topic-metadata">

**Author:** [@rene](https://www.ruby-forum.com/u/rene)\
**Replies:** 2\
**Last updated:** [September 11, 2007, 12:34pm UTC](https://www.ruby-forum.com/t/acts-as-authenticated-redirect-on-ajax-requests/114323 "2007-09-11T12:34:17Z")

</div>

Hi there, I’d like to know if there is a solution to the scenario when using acts\_as\_authenticated and ajax: I have an action in my controller which is protected by login via acts\_as\_authenticated. Now, this action c…

---

## [LDAP Setup](https://www.ruby-forum.com/t/ldap-setup/114235)

<div class="topic-metadata">

**Author:** [@niconoe](https://www.ruby-forum.com/u/niconoe)\
**Replies:** 2\
**Last updated:** [September 11, 2007, 11:55am UTC](https://www.ruby-forum.com/t/ldap-setup/114235 "2007-09-11T11:55:49Z")

</div>

Hi, I’m developpign an intranet application using rails for my company. For the moment, I’m simply storing contact and companies info in my database using ActiveRecord, and everything works pretty well. My users woul…

---

## [Why are these items being persisted?](https://www.ruby-forum.com/t/why-are-these-items-being-persisted/114244)

<div class="topic-metadata">

**Author:** [@sshingler](https://www.ruby-forum.com/u/sshingler)\
**Replies:** 2\
**Last updated:** [September 11, 2007, 11:52am UTC](https://www.ruby-forum.com/t/why-are-these-items-being-persisted/114244 "2007-09-11T11:52:32Z")

</div>

Hi all, In this bit of code: @feeds = Feed.find\_all @feeds.each { |feed| items = \[\] rssdoc = Hpricot.XML(open(feed.url, ‘User-Agent’ =\> USER\_AGENT)) (rssdoc/:item).each {|item| items.push(rss\_item\_to\_db\_item(item, …

---

## [Page module & not displaying it](https://www.ruby-forum.com/t/page-module-not-displaying-it/114319)

<div class="topic-metadata">

**Author:** [@leonb](https://www.ruby-forum.com/u/leonb)\
**Replies:** 0\
**Last updated:** [September 11, 2007, 10:55am UTC](https://www.ruby-forum.com/t/page-module-not-displaying-it/114319 "2007-09-11T10:55:22Z")

</div>

Hi all, I’ve created this design with a big content-div on the left an some small div’s on the right. These div’s on the right contain “page-modules” that show up on some of the pages. But on some pages (for example …

---

## [Ldap authentication with ruby](https://www.ruby-forum.com/t/ldap-authentication-with-ruby/114318)

<div class="topic-metadata">

**Author:** [@ambika](https://www.ruby-forum.com/u/ambika)\
**Replies:** 0\
**Last updated:** [September 11, 2007, 10:44am UTC](https://www.ruby-forum.com/t/ldap-authentication-with-ruby/114318 "2007-09-11T10:44:22Z")

</div>

Hi All, I am a new to ruby on rails… i would like to authenticate ruby site using LDAP … I followed the link http://wiki.rubyonrails.org/rails/pages/HowtoAuthenticateViaLdap but after mentioning require ‘activeldap’…

---

## [Problem with text\_field and \[\]](https://www.ruby-forum.com/t/problem-with-text-field-and/114315)

<div class="topic-metadata">

**Author:** [@stebi](https://www.ruby-forum.com/u/stebi)\
**Replies:** 0\
**Last updated:** [September 11, 2007, 10:00am UTC](https://www.ruby-forum.com/t/problem-with-text-field-and/114315 "2007-09-11T10:00:49Z")

</div>

Hi, I was pleased to see how easy it is to add more then one new items in a form: form\_tag :action =\> ‘update\_multiple’ do 3.times do @item = Item.new # create an active record object text\_field ‘item\[\]’, ‘name’ e…

---

## [Get javascript value](https://www.ruby-forum.com/t/get-javascript-value/114257)

<div class="topic-metadata">

**Author:** [@qwerty73](https://www.ruby-forum.com/u/qwerty73)\
**Replies:** 2\
**Last updated:** [September 11, 2007, 9:34am UTC](https://www.ruby-forum.com/t/get-javascript-value/114257 "2007-09-11T09:34:19Z")

</div>

hi to all, i’ve this javascript function : function km(str\_dir) { map = new GMap2(document.getElementById("map\_canvas")); directionsPanel = document.getElementById("route"); directions = new GDirections(map, dire…

---

## [Reading API?](https://www.ruby-forum.com/t/reading-api/114311)

<div class="topic-metadata">

**Author:** [@nightingale2k1](https://www.ruby-forum.com/u/nightingale2k1)\
**Replies:** 0\
**Last updated:** [September 11, 2007, 9:08am UTC](https://www.ruby-forum.com/t/reading-api/114311 "2007-09-11T09:08:42Z")

</div>

How to read the Rails / Ruby Api ? This question comes on my mind when I look at ActiveRecord::Base documentation. I am looking for all methods that are available on ActiveRecord::Base, but i couldnt know. For exampl…

---

## [Ruby script/console hangs on cygwin](https://www.ruby-forum.com/t/ruby-script-console-hangs-on-cygwin/114312)

<div class="topic-metadata">

**Author:** [@Ronald\_Rood](https://www.ruby-forum.com/u/Ronald_Rood)\
**Replies:** 0\
**Last updated:** [September 11, 2007, 8:52am UTC](https://www.ruby-forum.com/t/ruby-script-console-hangs-on-cygwin/114312 "2007-09-11T08:52:41Z")

</div>

ruby -v script/console ruby 1.8.6 (2007-03-13 patchlevel 0) \[i386-cygwin\] Loading development environment. What I did was install latest cygwin files download and install rubygems from \<http://rubyforge.org/frs/? …

---

## [Arrays in test fixtures](https://www.ruby-forum.com/t/arrays-in-test-fixtures/114290)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 1\
**Last updated:** [September 11, 2007, 8:51am UTC](https://www.ruby-forum.com/t/arrays-in-test-fixtures/114290 "2007-09-11T08:51:41Z")

</div>

I have a model called role which has many rights. However, I’m having trouble expressing this in my text fixture: administrators: id: 1 name: Administrators rights: How do I add an item to the rights array here?

---

## [Help with associations](https://www.ruby-forum.com/t/help-with-associations/114302)

<div class="topic-metadata">

**Author:** [@itchy](https://www.ruby-forum.com/u/itchy)\
**Replies:** 1\
**Last updated:** [September 11, 2007, 8:09am UTC](https://www.ruby-forum.com/t/help-with-associations/114302 "2007-09-11T08:09:34Z")

</div>

Hi I have a site that has the following model declarations: User: has\_and\_belongs\_to\_many :categories has\_and\_belongs\_to\_many :sub\_categories Item: has\_and\_belongs\_to\_many :sub\_categories has\_and\_belongs\_to\_many :c…

---

## [Rendirng on the same view](https://www.ruby-forum.com/t/rendirng-on-the-same-view/114310)

<div class="topic-metadata">

**Author:** [@ravikanth](https://www.ruby-forum.com/u/ravikanth)\
**Replies:** 0\
**Last updated:** [September 11, 2007, 7:49am UTC](https://www.ruby-forum.com/t/rendirng-on-the-same-view/114310 "2007-09-11T07:49:15Z")

</div>

I have one listusers.rhtml where i have to print all projects-wise list and in the same page i have print in a different way or i have to print the users-wise list when i am clicking any link provided in the same pag…

---

## [Using exceptions on all of my controller actions](https://www.ruby-forum.com/t/using-exceptions-on-all-of-my-controller-actions/114294)

<div class="topic-metadata">

**Author:** [@jojojobbins](https://www.ruby-forum.com/u/jojojobbins)\
**Replies:** 1\
**Last updated:** [September 11, 2007, 7:32am UTC](https://www.ruby-forum.com/t/using-exceptions-on-all-of-my-controller-actions/114294 "2007-09-11T07:32:43Z")

</div>

Hello guys, I was wondering how good is it to use exceptions for everything in your rails application. I mean like using save! everytime instead of the plain save. Or using begin and rescue in every action in your con…

---

## [Issue with update\_attributes](https://www.ruby-forum.com/t/issue-with-update-attributes/114309)

<div class="topic-metadata">

**Author:** [@knarula\_iiitk](https://www.ruby-forum.com/u/knarula_iiitk)\
**Replies:** 0\
**Last updated:** [September 11, 2007, 6:47am UTC](https://www.ruby-forum.com/t/issue-with-update-attributes/114309 "2007-09-11T06:47:20Z")

</div>

Hi, I have the following question regarding index updates in rails. Suppose I have a users table with the following columns: user\_id (primary key) username (index is created on this column) name (there is no index o…

---

## [Why doesn't my session work when I run my app via curl](https://www.ruby-forum.com/t/why-doesnt-my-session-work-when-i-run-my-app-via-curl/114303)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 5\
**Last updated:** [September 11, 2007, 5:51am UTC](https://www.ruby-forum.com/t/why-doesnt-my-session-work-when-i-run-my-app-via-curl/114303 "2007-09-11T05:51:26Z")

</div>

I have my app keep state with a session variable in my DB: session :session\_key =\> ‘\_myapp\_session\_id’ This works find when I login and run my app via my browser. But when I login via curl, the session doesn’t seem to…

---

## [Migrations for an Existing DB](https://www.ruby-forum.com/t/migrations-for-an-existing-db/114274)

<div class="topic-metadata">

**Author:** [@sydneyos](https://www.ruby-forum.com/u/sydneyos)\
**Replies:** 5\
**Last updated:** [September 11, 2007, 2:57am UTC](https://www.ruby-forum.com/t/migrations-for-an-existing-db/114274 "2007-09-11T02:57:08Z")

</div>

I am writing a RoR app against a legacy Oracle database against which other applications are running. My app will use some existing tables and will add some. My question is how to handle this and still use migration…

---

## [Find by compared date](https://www.ruby-forum.com/t/find-by-compared-date/114215)

<div class="topic-metadata">

**Author:** [@dracos](https://www.ruby-forum.com/u/dracos)\
**Replies:** 3\
**Last updated:** [September 11, 2007, 2:27am UTC](https://www.ruby-forum.com/t/find-by-compared-date/114215 "2007-09-11T02:27:41Z")

</div>

I how to find an object by an exact relative date, such as: Model.find(:date =\> 2.days.ago) How do I find an object with a :date of at least two days ago or at most two days ago?

---

## [Rails Site: VegasLists.com](https://www.ruby-forum.com/t/rails-site-vegaslists-com/54403)

<div class="topic-metadata">

**Author:** [@HHHHHH](https://www.ruby-forum.com/u/HHHHHH)\
**Replies:** 5\
**Last updated:** [September 11, 2007, 12:13am UTC](https://www.ruby-forum.com/t/rails-site-vegaslists-com/54403 "2007-09-11T00:13:44Z")

</div>

Just wanted to drop a note about a new Rails site that we’re testing in the wild, http://www.vegaslists.com. The site allows users to create lists about anything Las Vegas related and then lets other users comment o…

---

## [Rails, Nginx and blocking linked images](https://www.ruby-forum.com/t/rails-nginx-and-blocking-linked-images/113989)

<div class="topic-metadata">

**Author:** [@dan](https://www.ruby-forum.com/u/dan)\
**Replies:** 2\
**Last updated:** [September 10, 2007, 11:48pm UTC](https://www.ruby-forum.com/t/rails-nginx-and-blocking-linked-images/113989 "2007-09-10T23:48:53Z")

</div>

Hi Everyone, Im using the standard rails/mongrel config script (http://wiki.codemongers.com/NginxRubyonRailsMongrel) for a rails site but Im trying to block images from being linked from other sites. It looks like so…

---

## [Character Sets and rake db:test:prepare](https://www.ruby-forum.com/t/character-sets-and-rake-dbprepare/114291)

<div class="topic-metadata">

**Author:** [@Geoffrey\_W](https://www.ruby-forum.com/u/Geoffrey_W)\
**Replies:** 0\
**Last updated:** [September 10, 2007, 11:23pm UTC](https://www.ruby-forum.com/t/character-sets-and-rake-dbprepare/114291 "2007-09-10T23:23:51Z")

</div>

As far as I can tell, if I’m using MySQL and I set the character set and collation on my databases when I create them (e.g. CREATE DATABASE project\_development CHARACTER SET utf8 COLLATION utf8\_general\_ci), when I run…

---

## [Session Problem - Probably Simply Solution](https://www.ruby-forum.com/t/session-problem-probably-simply-solution/114285)

<div class="topic-metadata">

**Author:** [@Tommay\_Amstrad](https://www.ruby-forum.com/u/Tommay_Amstrad)\
**Replies:** 1\
**Last updated:** [September 10, 2007, 10:34pm UTC](https://www.ruby-forum.com/t/session-problem-probably-simply-solution/114285 "2007-09-10T22:34:53Z")

</div>

I am having a problem saving something into a session variable and struggling to make any progress. I have a login screen that I want to display differing logo’s dependent on the URL that people use. For example, I h…

---

## [Validation for : Start date lesser than End date?](https://www.ruby-forum.com/t/validation-for-start-date-lesser-than-end-date/114270)

<div class="topic-metadata">

**Author:** [@sgudibanda](https://www.ruby-forum.com/u/sgudibanda)\
**Replies:** 2\
**Last updated:** [September 10, 2007, 10:24pm UTC](https://www.ruby-forum.com/t/validation-for-start-date-lesser-than-end-date/114270 "2007-09-10T22:24:37Z")

</div>

Hi, I have two dates(Start and End date)in my model. How can i do a validation such as enddate is greater than start date? Regards, Sandeep G

---

## [One-click Installer (ruby186-25) not installing gem](https://www.ruby-forum.com/t/one-click-installer-ruby186-25-not-installing-gem/114284)

<div class="topic-metadata">

**Author:** [@fenokid](https://www.ruby-forum.com/u/fenokid)\
**Replies:** 0\
**Last updated:** [September 10, 2007, 10:21pm UTC](https://www.ruby-forum.com/t/one-click-installer-ruby186-25-not-installing-gem/114284 "2007-09-10T22:21:36Z")

</div>

Windows XP SP2 New to ROR Every note I’ve found about installing Ruby on Rails on Windows using the one click installer from http://rubyforge.org suggests that it seamlessly also installs rubyGems. But after I run th…

---

## [Rails Mentoring](https://www.ruby-forum.com/t/rails-mentoring/114282)

<div class="topic-metadata">

**Author:** [@funkeyMonk](https://www.ruby-forum.com/u/funkeyMonk)\
**Replies:** 0\
**Last updated:** [September 10, 2007, 10:20pm UTC](https://www.ruby-forum.com/t/rails-mentoring/114282 "2007-09-10T22:20:36Z")

</div>

Hi, everyone. Is any one interested in being a mentor, I have developed several small rails apps, but I would like to learn from someone with experience. I am a fast learner and have a dev background. i like to be a …

---

## [Authentication differs per-environment](https://www.ruby-forum.com/t/authentication-differs-per-environment/114281)

<div class="topic-metadata">

**Author:** [@Ben\_Kimball](https://www.ruby-forum.com/u/Ben_Kimball)\
**Replies:** 0\
**Last updated:** [September 10, 2007, 10:11pm UTC](https://www.ruby-forum.com/t/authentication-differs-per-environment/114281 "2007-09-10T22:11:34Z")

</div>

Hey everyone. In my app, I use a before\_filter called ‘authorize’ to set up a User object @current\_user for the logged-in user (or reject the client if I can’t match their credentials). But depending on my environment…

---

## [Can't reach a controller :(](https://www.ruby-forum.com/t/cant-reach-a-controller/114246)

<div class="topic-metadata">

**Author:** [@Korosu\_Itai](https://www.ruby-forum.com/u/Korosu_Itai)\
**Replies:** 3\
**Last updated:** [September 10, 2007, 10:10pm UTC](https://www.ruby-forum.com/t/cant-reach-a-controller/114246 "2007-09-10T22:10:34Z")

</div>

When I try to see a controller I get a 404 error, this is what WEBrick says What could it be? Thanks for the help :wink: =\> Booting WEBrick… =\> Rails application started on http://0.0.0.0:3000 =\> Ctrl-C to shutdown …

---

## [Rails Developer - Atlanta, Ga](https://www.ruby-forum.com/t/rails-developer-atlanta-ga/114278)

<div class="topic-metadata">

**Author:** [@starmaerker](https://www.ruby-forum.com/u/starmaerker)\
**Replies:** 0\
**Last updated:** [September 10, 2007, 10:06pm UTC](https://www.ruby-forum.com/t/rails-developer-atlanta-ga/114278 "2007-09-10T22:06:33Z")

</div>

We (http://www.astralbrands.com) are looking for a good Rails developer in the Atlanta, Ga area. This is not a telecommuting position. We’ve already converted the http://www.aloette.com site and have a few more to …

---

## [\[ANN\] Beta Testing needed for Toolbawks Packer v1.0.0](https://www.ruby-forum.com/t/ann-beta-testing-needed-for-toolbawks-packer-v1-0-0/114279)

<div class="topic-metadata">

**Author:** [@nshb](https://www.ruby-forum.com/u/nshb)\
**Replies:** 0\
**Last updated:** [September 10, 2007, 9:32pm UTC](https://www.ruby-forum.com/t/ann-beta-testing-needed-for-toolbawks-packer-v1-0-0/114279 "2007-09-10T21:32:30Z")

</div>

Hey… so I just rearchitected the AssetPackager written by Scott B. into Toolbawks Packer. The major change is no more configuration. It’s all done automatically and is as automated as possible. The new plugin now w…

---

## [Need assistance figuring out the logic for my controller](https://www.ruby-forum.com/t/need-assistance-figuring-out-the-logic-for-my-controller/114275)

<div class="topic-metadata">

**Author:** [@matt](https://www.ruby-forum.com/u/matt)\
**Replies:** 0\
**Last updated:** [September 10, 2007, 9:03pm UTC](https://www.ruby-forum.com/t/need-assistance-figuring-out-the-logic-for-my-controller/114275 "2007-09-10T21:03:27Z")

</div>

Good afternoon, I’m working on a small app that generates some dynamic charts using JFreeCharts. I have a view that contains some different chart links in a side bar. Then in the center of the page I have a div for t…

---

## [Looking for Rails developer to join a startup and become co-](https://www.ruby-forum.com/t/looking-for-rails-developer-to-join-a-startup-and-become-co/114266)

<div class="topic-metadata">

**Author:** [@YLYLYL](https://www.ruby-forum.com/u/YLYLYL)\
**Replies:** 5\
**Last updated:** [September 10, 2007, 8:44pm UTC](https://www.ruby-forum.com/t/looking-for-rails-developer-to-join-a-startup-and-become-co/114266 "2007-09-10T20:44:24Z")

</div>

Looking for Rails developer to join a startup and become co-founder. It has to be someone who’s passionate about software, knows the stuff, doer, and can work alone. Phase one will take about 200-250 hours to develop.…

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

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