# Rails

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

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

---

## [Using methods in /lib while in script/console session](https://www.ruby-forum.com/t/using-methods-in-lib-while-in-script-console-session/151502)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 2\
**Last updated:** [October 22, 2008, 10:47am UTC](https://www.ruby-forum.com/t/using-methods-in-lib-while-in-script-console-session/151502 "2008-10-22T10:47:36Z")

</div>

While I’m in a script/console session I want access to methods I’ve defined in a utilities unit I’ve put in the project/lib directory. I’ve tried requiring the unit and loading the unit but still don’t get the methods…

---

## [Whether Merb 1.0 offers an alternative to Ruby on Rails](https://www.ruby-forum.com/t/whether-merb-1-0-offers-an-alternative-to-ruby-on-rails/151323)

<div class="topic-metadata">

**Author:** [@lostwarrior](https://www.ruby-forum.com/u/lostwarrior)\
**Replies:** 3\
**Last updated:** [October 22, 2008, 9:41am UTC](https://www.ruby-forum.com/t/whether-merb-1-0-offers-an-alternative-to-ruby-on-rails/151323 "2008-10-22T09:41:05Z")

</div>

http://www.sdtimes.com/MERB\_1\_0\_OFFERS\_AN\_ALTERNATIVE\_TO\_RUBY\_ON\_RAILS/About\_RUBY\_and\_SOFTWAREDEVELOPMENT\_and\_MERB\_and\_RAILS/32972 hi i got this link from my friend in new-jersey.whether merb is an alternative for rail…

---

## [Problem adding the OpenWFEru scheduler code in Initialzers](https://www.ruby-forum.com/t/problem-adding-the-openwferu-scheduler-code-in-initialzers/151507)

<div class="topic-metadata">

**Author:** [@karthikeyan](https://www.ruby-forum.com/u/karthikeyan)\
**Replies:** 0\
**Last updated:** [October 22, 2008, 9:06am UTC](https://www.ruby-forum.com/t/problem-adding-the-openwferu-scheduler-code-in-initialzers/151507 "2008-10-22T09:06:38Z")

</div>

Hi, I am using OpenWFEru gem for scheduling the weekly mailing in my rails application. I have written the scheduler code as a stand-alone ruby code. So I have to run it separately. But I want this scheduler to start…

---

## [Moving from mod\_proxy\_balancer to HAProxy; any guidance?](https://www.ruby-forum.com/t/moving-from-mod-proxy-balancer-to-haproxy-any-guidance/151117)

<div class="topic-metadata">

**Author:** [@cpher](https://www.ruby-forum.com/u/cpher)\
**Replies:** 5\
**Last updated:** [October 22, 2008, 7:22am UTC](https://www.ruby-forum.com/t/moving-from-mod-proxy-balancer-to-haproxy-any-guidance/151117 "2008-10-22T07:22:17Z")

</div>

Hi all. Just decided to move from mod\_proxy\_balancer to HAProxy for its improved load balancing to mongrels. Anyway, have you done the same? If so, can you provide any guidance for making this change? I haven’t bee…

---

## [Help with regex needed](https://www.ruby-forum.com/t/help-with-regex-needed/151490)

<div class="topic-metadata">

**Author:** [@kim](https://www.ruby-forum.com/u/kim)\
**Replies:** 1\
**Last updated:** [October 22, 2008, 7:19am UTC](https://www.ruby-forum.com/t/help-with-regex-needed/151490 "2008-10-22T07:19:56Z")

</div>

Here is the array I am scanning: \["\\n \<a href="/search~S13?/rWR%20121/rwr+121/1,7,9,B/ frameset~2489041&FF=rwr+121&1,1,"\>The Academic Writer: A Brief Guide\</ a\>\\n\\n\\n Ede, Lisa\\n\\n\\n\\n Valley Reserves – VR 282 – AV…

---

## [Active\_adaptor (MissingSourceFile)](https://www.ruby-forum.com/t/active-adaptor-missingsourcefile/151489)

<div class="topic-metadata">

**Author:** [@miglania](https://www.ruby-forum.com/u/miglania)\
**Replies:** 0\
**Last updated:** [October 22, 2008, 6:46am UTC](https://www.ruby-forum.com/t/active-adaptor-missingsourcefile/151489 "2008-10-22T06:46:30Z")

</div>

Hi, Need a small help. Which package has “active\_adaptor”? Below is detailed error message. The line “require ‘active\_adaptor’” is failing in compiler.rb. /usr/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:…

---

## [Need so instant message to Skype and google talk](https://www.ruby-forum.com/t/need-so-instant-message-to-skype-and-google-talk/151487)

<div class="topic-metadata">

**Author:** [@srijith](https://www.ruby-forum.com/u/srijith)\
**Replies:** 0\
**Last updated:** [October 22, 2008, 6:33am UTC](https://www.ruby-forum.com/t/need-so-instant-message-to-skype-and-google-talk/151487 "2008-10-22T06:33:27Z")

</div>

Hi all, In our application we are having one option for invite users,when i click invite button then instant message will go to their respective skype account,i dont know how to send message to skype.If any one knows …

---

## [Boolean database + Site Design/Architecture Question](https://www.ruby-forum.com/t/boolean-database-site-design-architecture-question/151467)

<div class="topic-metadata">

**Author:** [@bagadoughnuts](https://www.ruby-forum.com/u/bagadoughnuts)\
**Replies:** 7\
**Last updated:** [October 22, 2008, 6:19am UTC](https://www.ruby-forum.com/t/boolean-database-site-design-architecture-question/151467 "2008-10-22T06:19:20Z")

</div>

Hi all, As usual, you’ve all been very helpful in the past and I thank you for continuing to help myself and others. Today I have the following code/database architecture question which I would like you guys to help …

---

## [Where to place the session variable to access it in model](https://www.ruby-forum.com/t/where-to-place-the-session-variable-to-access-it-in-model/151151)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 4\
**Last updated:** [October 22, 2008, 5:57am UTC](https://www.ruby-forum.com/t/where-to-place-the-session-variable-to-access-it-in-model/151151 "2008-10-22T05:57:00Z")

</div>

Hi I have the model SDTicket and SDCi SDTicket has\_many :service\_desk\_cis SDCi after\_save :update\_sd\_ticket belongs\_to :sd\_ticket def update\_sd\_ticket self.sd\_ticket.update\_attribute(“modified\_by\_id”,#here I need…

---

## [I don't get why my model isn't saving - assistance requested](https://www.ruby-forum.com/t/i-dont-get-why-my-model-isnt-saving-assistance-requested/151480)

<div class="topic-metadata">

**Author:** [@wemagor](https://www.ruby-forum.com/u/wemagor)\
**Replies:** 3\
**Last updated:** [October 22, 2008, 5:17am UTC](https://www.ruby-forum.com/t/i-dont-get-why-my-model-isnt-saving-assistance-requested/151480 "2008-10-22T05:17:41Z")

</div>

I’m trying to do something relatively basic. I’m using the restful authentication plugin, so I have Users, and I also have Tasks which belong to a user: class User \< ActiveRecord::Base has\_many :assigned\_tasks, :cla…

---

## [Rails + Mongrel - autorestart on segmentation fault crash](https://www.ruby-forum.com/t/rails-mongrel-autorestart-on-segmentation-fault-crash/151479)

<div class="topic-metadata">

**Author:** [@sjdale](https://www.ruby-forum.com/u/sjdale)\
**Replies:** 1\
**Last updated:** [October 22, 2008, 3:31am UTC](https://www.ruby-forum.com/t/rails-mongrel-autorestart-on-segmentation-fault-crash/151479 "2008-10-22T03:31:09Z")

</div>

Anyone know of a way to auto-restart Mongrel on a crash, Windows environment ? We’re getting a seg fault error, so until we figure this out is there a polling script or something to run to monitor and restart if it’s …

---

## [Problems redirecting from form\_remote\_tag](https://www.ruby-forum.com/t/problems-redirecting-from-form-remote-tag/151484)

<div class="topic-metadata">

**Author:** [@ginty](https://www.ruby-forum.com/u/ginty)\
**Replies:** 2\
**Last updated:** [October 22, 2008, 3:17am UTC](https://www.ruby-forum.com/t/problems-redirecting-from-form-remote-tag/151484 "2008-10-22T03:17:07Z")

</div>

Hey, A noob question no doubt but when I use form\_remote\_tag to make an AJAX call to the server I can’t make it redirect to re-render the entire page. So for example the below code from /controller/index.html.erb in…

---

## [Problems redirecting from form\_remote\_tag](https://www.ruby-forum.com/t/problems-redirecting-from-form-remote-tag/151481)

<div class="topic-metadata">

**Author:** [@ginty](https://www.ruby-forum.com/u/ginty)\
**Replies:** 0\
**Last updated:** [October 22, 2008, 2:20am UTC](https://www.ruby-forum.com/t/problems-redirecting-from-form-remote-tag/151481 "2008-10-22T02:20:56Z")

</div>

Hey, A noob question no doubt but when I use form\_remote\_tag to make an AJAX call to the server I can’t make it redirect to re-render the entire page. So for example the below code from /controller/index.html.erb in…

---

## [Re-using session data over different domain names](https://www.ruby-forum.com/t/re-using-session-data-over-different-domain-names/151474)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 3\
**Last updated:** [October 22, 2008, 12:27am UTC](https://www.ruby-forum.com/t/re-using-session-data-over-different-domain-names/151474 "2008-10-22T00:27:06Z")

</div>

Hi, I am having a hard time here. I will be managing different websites, let’s say: www.site1.com and www.site2.com When a user wants to login on to one of these sites, he will be redirected to: https://site1.com.ma…

---

## [Preventing nil data in views](https://www.ruby-forum.com/t/preventing-nil-data-in-views/151441)

<div class="topic-metadata">

**Author:** [@rocknrollcar](https://www.ruby-forum.com/u/rocknrollcar)\
**Replies:** 2\
**Last updated:** [October 22, 2008, 12:06am UTC](https://www.ruby-forum.com/t/preventing-nil-data-in-views/151441 "2008-10-22T00:06:21Z")

</div>

I have an activerecord model Student. In show action of Student controller i retrieve the database data about a Student and display it in the view. Student object has fields like age, gender, dateofbirth, address, etc…

---

## [How to force a lock\_version increment](https://www.ruby-forum.com/t/how-to-force-a-lock-version-increment/151436)

<div class="topic-metadata">

**Author:** [@javinto](https://www.ruby-forum.com/u/javinto)\
**Replies:** 1\
**Last updated:** [October 21, 2008, 11:59pm UTC](https://www.ruby-forum.com/t/how-to-force-a-lock-version-increment/151436 "2008-10-21T23:59:54Z")

</div>

Hi everyone, I have a order with order\_lines use case. On changing the lines, I want to be sure no one else changed the order. So I use lock\_version on the order. This works fine if something is changed on the order …

---

## [Trouble validating associated objects](https://www.ruby-forum.com/t/trouble-validating-associated-objects/151284)

<div class="topic-metadata">

**Author:** [@MdSKazim\_Z](https://www.ruby-forum.com/u/MdSKazim_Z)\
**Replies:** 3\
**Last updated:** [October 21, 2008, 11:49pm UTC](https://www.ruby-forum.com/t/trouble-validating-associated-objects/151284 "2008-10-21T23:49:56Z")

</div>

Hello everyone, This is my first post to this list, so kindly remind me if I do something wrong. :stuck\_out\_tongue: When parent objects are saved, all the new children are saved. However, when the child objects valid…

---

## [Hard-coding IDs](https://www.ruby-forum.com/t/hard-coding-ids/151463)

<div class="topic-metadata">

**Author:** [@nick](https://www.ruby-forum.com/u/nick)\
**Replies:** 5\
**Last updated:** [October 21, 2008, 11:35pm UTC](https://www.ruby-forum.com/t/hard-coding-ids/151463 "2008-10-21T23:35:51Z")

</div>

Should HTML DOM IDs be hard-coded throughout a Rails app, or stored within…an appropriate model or helper or …? Here’s an example problem: /neighbourhoods/1/map/ has a form: map.html.erb \<% form\_remote\_tag … :html =\> …

---

## [Https problems](https://www.ruby-forum.com/t/https-problems/150380)

<div class="topic-metadata">

**Author:** [@Glen](https://www.ruby-forum.com/u/Glen)\
**Replies:** 7\
**Last updated:** [October 21, 2008, 10:15pm UTC](https://www.ruby-forum.com/t/https-problems/150380 "2008-10-21T22:15:13Z")

</div>

I’m having a problem but don’t know what is causing it so I don’t know exactly where to post, please bear with me. I’m trying to set up https access however whenever I go to https://url\_for\_site the root route render…

---

## [Counting / Aggregation Queries](https://www.ruby-forum.com/t/counting-aggregation-queries/151457)

<div class="topic-metadata">

**Author:** [@Neal\_L](https://www.ruby-forum.com/u/Neal_L)\
**Replies:** 1\
**Last updated:** [October 21, 2008, 9:54pm UTC](https://www.ruby-forum.com/t/counting-aggregation-queries/151457 "2008-10-21T21:54:02Z")

</div>

Hi all, Suppose you have two models – one for Files and anther for Downloads – such that a file has\_many =\> :downloads If you wanted to get a count of the downloads for the current month and the two previous months, …

---

## [So many users, so little time - looking for a better way](https://www.ruby-forum.com/t/so-many-users-so-little-time-looking-for-a-better-way/151407)

<div class="topic-metadata">

**Author:** [@jeffpritchard](https://www.ruby-forum.com/u/jeffpritchard)\
**Replies:** 16\
**Last updated:** [October 21, 2008, 9:49pm UTC](https://www.ruby-forum.com/t/so-many-users-so-little-time-looking-for-a-better-way/151407 "2008-10-21T21:49:55Z")

</div>

OK, time to come clean. Right now my app is doing something really cheesy. The first step is alway admitting that you have a problem, right? So here’s the deal. One of the features of my app is that, based on some…

---

## [Facebook App](https://www.ruby-forum.com/t/facebook-app/151455)

<div class="topic-metadata">

**Author:** [@Elizabeth\_B](https://www.ruby-forum.com/u/Elizabeth_B)\
**Replies:** 0\
**Last updated:** [October 21, 2008, 8:57pm UTC](https://www.ruby-forum.com/t/facebook-app/151455 "2008-10-21T20:57:26Z")

</div>

A tool to learn facebook applications- topics include basics and facebook markup language. http://www.yoyobrain.com/subjects/show/3217 This is an example of one person’s material, but you can copy/create your own to …

---

## [Rails gui?](https://www.ruby-forum.com/t/rails-gui/151385)

<div class="topic-metadata">

**Author:** [@johnny](https://www.ruby-forum.com/u/johnny)\
**Replies:** 2\
**Last updated:** [October 21, 2008, 6:52pm UTC](https://www.ruby-forum.com/t/rails-gui/151385 "2008-10-21T18:52:22Z")

</div>

I like the ease of use that ruby on rails provides. But before I switch over completely from ASP.NET, I would like to know what sort of gui’s are available for rubyonrails. I like the asp.net webparts. With webparts…

---

## [Ruby on Rails Internship - Austin, TX](https://www.ruby-forum.com/t/ruby-on-rails-internship-austin-tx/196826)

<div class="topic-metadata">

**Author:** [@heathers](https://www.ruby-forum.com/u/heathers)\
**Replies:** 0\
**Last updated:** [October 21, 2008, 6:48pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-internship-austin-tx/196826 "2008-10-21T18:48:19Z")

</div>

Ruby On Rails Intern - Otherinbox About the Positionâ€¨ OtherInbox is looking to bring on a Ruby On Rails intern. We are looking for a highly motivated, goal-oriented individual who will be mentored in learning Ruby …

---

## [Simple app - problems w/ routes](https://www.ruby-forum.com/t/simple-app-problems-w-routes/150574)

<div class="topic-metadata">

**Author:** [@clemrock](https://www.ruby-forum.com/u/clemrock)\
**Replies:** 5\
**Last updated:** [October 21, 2008, 5:33pm UTC](https://www.ruby-forum.com/t/simple-app-problems-w-routes/150574 "2008-10-21T17:33:40Z")

</div>

Hello, I’m trying to get the backbone of a rails project up and running on localhost and also on a rails playground hosted site. On localhost the app runs great and I can call my say/hello w/ either: http://localhos…

---

## [SQL OR in Rails](https://www.ruby-forum.com/t/sql-or-in-rails/151434)

<div class="topic-metadata">

**Author:** [@Schalk\_N](https://www.ruby-forum.com/u/Schalk_N)\
**Replies:** 6\
**Last updated:** [October 21, 2008, 5:15pm UTC](https://www.ruby-forum.com/t/sql-or-in-rails/151434 "2008-10-21T17:15:14Z")

</div>

Hi there everyone, How does one set-up a SQL OR query in Rails. I have the following SQL query: select state, state\_abbr, country from states where country = ‘Country’ or country = ‘International’ order by state asc; …

---

## [Skip all filters for a method](https://www.ruby-forum.com/t/skip-all-filters-for-a-method/145358)

<div class="topic-metadata">

**Author:** [@phil](https://www.ruby-forum.com/u/phil)\
**Replies:** 1\
**Last updated:** [October 21, 2008, 5:14pm UTC](https://www.ruby-forum.com/t/skip-all-filters-for-a-method/145358 "2008-10-21T17:14:37Z")

</div>

I have a couple of methods called from Ajax. Is there a way I can say skip\_all\_filters or something for these methods or do I tediously have to do several skip\_before\_filter :x, :only =\> :y?

---

## [Include rake migration in a plugin](https://www.ruby-forum.com/t/include-rake-migration-in-a-plugin/151442)

<div class="topic-metadata">

**Author:** [@Alain\_mSL](https://www.ruby-forum.com/u/Alain_mSL)\
**Replies:** 2\
**Last updated:** [October 21, 2008, 4:27pm UTC](https://www.ruby-forum.com/t/include-rake-migration-in-a-plugin/151442 "2008-10-21T16:27:19Z")

</div>

Hi there, as sad as it seems, I can’t find a hint on how to include a simple statement like rake db:sessions:create rake db:migrate in the rakefile of a plugin that I want to write myself. Any help of of course app…

---

## [Group by datepart(day,created\_at)](https://www.ruby-forum.com/t/group-by-datepart-day-created-at/151379)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 3\
**Last updated:** [October 21, 2008, 3:00pm UTC](https://www.ruby-forum.com/t/group-by-datepart-day-created-at/151379 "2008-10-21T15:00:23Z")

</div>

What is the best way in rails, to so something similar to this sql: select count(\*),datepart(month,created\_at) +"/"+datepart(day,created\_at) from whatever group by datepart(month,created\_at)+"/"+datepart(day,created\_a…

---

## [WEBrick error - exceeded the maximum permissible length](https://www.ruby-forum.com/t/webrick-error-exceeded-the-maximum-permissible-length/151419)

<div class="topic-metadata">

**Author:** [@katsuo](https://www.ruby-forum.com/u/katsuo)\
**Replies:** 2\
**Last updated:** [October 21, 2008, 1:36pm UTC](https://www.ruby-forum.com/t/webrick-error-exceeded-the-maximum-permissible-length/151419 "2008-10-21T13:36:55Z")

</div>

Hi I have the following error on the browser. Can anyone tell me how to change the configuration on Webrick to solve this problem? Secure Connection Failed An error occurred during a connection to localhost:3000 erro…

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

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