# Rails

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

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

---

## [Weird dates problem](https://www.ruby-forum.com/t/weird-dates-problem/186172)

<div class="topic-metadata">

**Author:** [@adam](https://www.ruby-forum.com/u/adam)\
**Replies:** 6\
**Last updated:** [April 7, 2010, 3:58pm UTC](https://www.ruby-forum.com/t/weird-dates-problem/186172 "2010-04-07T15:58:18Z")

</div>

HI, I have a pretty weird problems with dates. my objective was to parse some text files and put them into a database. the lines of the file are divided with a | and some of the fields are dates in this format dd.mm…

---

## [Recommendation for searching with regards to timestamp & foreign key attributes](https://www.ruby-forum.com/t/recommendation-for-searching-with-regards-to-timestamp-foreign-key-attributes/186466)

<div class="topic-metadata">

**Author:** [@ct9a](https://www.ruby-forum.com/u/ct9a)\
**Replies:** 2\
**Last updated:** [April 7, 2010, 3:50pm UTC](https://www.ruby-forum.com/t/recommendation-for-searching-with-regards-to-timestamp-foreign-key-attributes/186466 "2010-04-07T15:50:06Z")

</div>

Sorry guys, please replace " new\_blog\_entries = Blog.status\_name\_does\_not\_equal\_any(\[‘published’, ‘archived’\]) " with " new\_blog\_entries = Blog.status\_name\_does\_not\_equal\_all(\[‘published’, ‘archived’\]) "

---

## [Has\_many :through and named\_scope](https://www.ruby-forum.com/t/has-many-through-and-named-scope/186459)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 2\
**Last updated:** [April 7, 2010, 3:50pm UTC](https://www.ruby-forum.com/t/has-many-through-and-named-scope/186459 "2010-04-07T15:50:06Z")

</div>

Hi I have the models roles, users and user\_roles. The relationship among them is user.r user has\_many user\_roles user has\_many roles, :through =\> :user\_roles role.rb role has\_many user\_roles role has\_many users, :t…

---

## [Recommendation for searching with regards to timestamp & foreign key attributes](https://www.ruby-forum.com/t/recommendation-for-searching-with-regards-to-timestamp-foreign-key-attributes/186465)

<div class="topic-metadata">

**Author:** [@ct9a](https://www.ruby-forum.com/u/ct9a)\
**Replies:** 0\
**Last updated:** [April 7, 2010, 3:00pm UTC](https://www.ruby-forum.com/t/recommendation-for-searching-with-regards-to-timestamp-foreign-key-attributes/186465 "2010-04-07T15:00:21Z")

</div>

hi guys, I need a recommendation for searching with regards to timestamp & foreign key attributes. Sounds a bit too much but here’s an example. Suppose we have a “blog” object. It has many attributes such as title …

---

## [Rails Google Visualizations MySql](https://www.ruby-forum.com/t/rails-google-visualizations-mysql/186464)

<div class="topic-metadata">

**Author:** [@bill-h](https://www.ruby-forum.com/u/bill-h)\
**Replies:** 0\
**Last updated:** [April 7, 2010, 2:41pm UTC](https://www.ruby-forum.com/t/rails-google-visualizations-mysql/186464 "2010-04-07T14:41:29Z")

</div>

Im trying to get a gauge to update realtime using javascript in rails, I have got a starting point and the gauges move in realtime using a maths random function. When I try to pull the data from the database It seems …

---

## [JOBS : Ruby on Rails Developer Needed](https://www.ruby-forum.com/t/jobs-ruby-on-rails-developer-needed/186463)

<div class="topic-metadata">

**Author:** [@ccalhoun](https://www.ruby-forum.com/u/ccalhoun)\
**Replies:** 0\
**Last updated:** [April 7, 2010, 2:30pm UTC](https://www.ruby-forum.com/t/jobs-ruby-on-rails-developer-needed/186463 "2010-04-07T14:30:31Z")

</div>

Hello, Our green recycling company in Wilmington, North Carolina needs of a Ruby on Rails Developer to help track it fast growing client base. This project will be contract based and will require almost one month of …

---

## [How does Rails / Apache handle database connections?](https://www.ruby-forum.com/t/how-does-rails-apache-handle-database-connections/186414)

<div class="topic-metadata">

**Author:** [@agnathan](https://www.ruby-forum.com/u/agnathan)\
**Replies:** 2\
**Last updated:** [April 7, 2010, 1:22pm UTC](https://www.ruby-forum.com/t/how-does-rails-apache-handle-database-connections/186414 "2010-04-07T13:22:37Z")

</div>

Hi all, I’m trying to figure out how Rails handles database connections. The business problem is: My users have access to multiple, structurally identical schemas So, for each request, Rails needs to be able to talk …

---

## [Jobs: 2x Ruby on Rails Developer â€“ DotCom Start-up, London](https://www.ruby-forum.com/t/jobs-2x-ruby-on-rails-developer-a-dotcom-start-up-london/186086)

<div class="topic-metadata">

**Author:** [@dangermoose](https://www.ruby-forum.com/u/dangermoose)\
**Replies:** 6\
**Last updated:** [April 7, 2010, 12:30pm UTC](https://www.ruby-forum.com/t/jobs-2x-ruby-on-rails-developer-a-dotcom-start-up-london/186086 "2010-04-07T12:30:10Z")

</div>

Hi all, here is a new Ruby on Rails opportunity I have at the moment: Anyone interested can message me. 2x Ruby on Rails Developers are required by DotCom Startup. Funded by a leading publishing company this Greenfiel…

---

## [Incompatible character encodings](https://www.ruby-forum.com/t/incompatible-character-encodings/186453)

<div class="topic-metadata">

**Author:** [@ESESES](https://www.ruby-forum.com/u/ESESES)\
**Replies:** 0\
**Last updated:** [April 7, 2010, 12:27pm UTC](https://www.ruby-forum.com/t/incompatible-character-encodings/186453 "2010-04-07T12:27:00Z")

</div>

I am getting an error incompatible character encodings: ASCII-8BIT and UTF-8 when I try to render a partial view for the children objects of a main object’s edit page. This is the controller method : def update @di…

---

## [Incompatible character encodings: ASCII-8BIT and UTF-8](https://www.ruby-forum.com/t/incompatible-character-encodings-ascii-8bit-and-utf-8/186452)

<div class="topic-metadata">

**Author:** [@ESESES](https://www.ruby-forum.com/u/ESESES)\
**Replies:** 0\
**Last updated:** [April 7, 2010, 12:25pm UTC](https://www.ruby-forum.com/t/incompatible-character-encodings-ascii-8bit-and-utf-8/186452 "2010-04-07T12:25:14Z")

</div>

I am getting an error incompatible character encodings: ASCII-8BIT and UTF-8 when I try to render a partial view for the children objects of a main object’s edit page. This is the controller method : def update @di…

---

## [Newbie regular expression question](https://www.ruby-forum.com/t/newbie-regular-expression-question/186448)

<div class="topic-metadata">

**Author:** [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Replies:** 7\
**Last updated:** [April 7, 2010, 12:09pm UTC](https://www.ruby-forum.com/t/newbie-regular-expression-question/186448 "2010-04-07T12:09:44Z")

</div>

Hello champs, I am having an string and i want all extra characters to be removed from that string except + and . How to write a regular expression for it… Currently i am trying it like this as word.sub(/\[\_-:\\/\]/, “”…

---

## [Retrieving records using like condition](https://www.ruby-forum.com/t/retrieving-records-using-like-condition/186443)

<div class="topic-metadata">

**Author:** [@bungoman](https://www.ruby-forum.com/u/bungoman)\
**Replies:** 1\
**Last updated:** [April 7, 2010, 10:07am UTC](https://www.ruby-forum.com/t/retrieving-records-using-like-condition/186443 "2010-04-07T10:07:04Z")

</div>

So I’ve got a model called Item and one of its properties is called “tags”. It’s just string that is a simple comma separated list of tags associated with the item. I’m trying to do two things. First create a list of …

---

## [Form Authenticity Token Error generated from iframe](https://www.ruby-forum.com/t/form-authenticity-token-error-generated-from-iframe/186220)

<div class="topic-metadata">

**Author:** [@nisha](https://www.ruby-forum.com/u/nisha)\
**Replies:** 1\
**Last updated:** [April 7, 2010, 8:55am UTC](https://www.ruby-forum.com/t/form-authenticity-token-error-generated-from-iframe/186220 "2010-04-07T08:55:39Z")

</div>

Hi, Iam trying to link my app from another site. I have used iframes and a form is being loaded in the iframe embeded in another site outside my rails app. So when the user submits this form it should effectively tak…

---

## [Captcha in a belongs\_to](https://www.ruby-forum.com/t/captcha-in-a-belongs-to/186398)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 1\
**Last updated:** [April 7, 2010, 6:19am UTC](https://www.ruby-forum.com/t/captcha-in-a-belongs-to/186398 "2010-04-07T06:19:25Z")

</div>

Hi I am using simple\_captcha. I have two models User and Staff. Relation ship are User has\_one staff staff belongs\_to user Now in the staff edit I have to include a captcha. I did like \<% form\_for @user, :url =\> s…

---

## [Authenticating against ActiveDirectory - can't read userPassword/unicodePwd?](https://www.ruby-forum.com/t/authenticating-against-activedirectory-cant-read-userpassword-unicodepwd/186378)

<div class="topic-metadata">

**Author:** [@mhfs](https://www.ruby-forum.com/u/mhfs)\
**Replies:** 2\
**Last updated:** [April 7, 2010, 2:44am UTC](https://www.ruby-forum.com/t/authenticating-against-activedirectory-cant-read-userpassword-unicodepwd/186378 "2010-04-07T02:44:03Z")

</div>

Hello list, So, the application I am working on right now needs to have LDAP authentication build in, meaning that if the user enabled it, we will query about his basic data (email,pwd) on a user-setup LDAP directory…

---

## [EXIFIR problem](https://www.ruby-forum.com/t/exifir-problem/186424)

<div class="topic-metadata">

**Author:** [@johnk](https://www.ruby-forum.com/u/johnk)\
**Replies:** 0\
**Last updated:** [April 7, 2010, 12:56am UTC](https://www.ruby-forum.com/t/exifir-problem/186424 "2010-04-07T00:56:25Z")

</div>

class Photo \< ActiveRecord::Base belongs\_to :album after\_create :set\_exif\_data has\_attached\_file :image, :styles =\> { :display =\> “300x200” } def set\_exif\_data logger.debug “setting exif” exif = EXIFR::JPEG.new(…

---

## [Error with 'will\_paginate' -- need help!](https://www.ruby-forum.com/t/error-with-will-paginate-need-help/186419)

<div class="topic-metadata">

**Author:** [@ironmantis7x](https://www.ruby-forum.com/u/ironmantis7x)\
**Replies:** 1\
**Last updated:** [April 6, 2010, 11:54pm UTC](https://www.ruby-forum.com/t/error-with-will-paginate-need-help/186419 "2010-04-06T23:54:48Z")

</div>

My controller is as follows: class CommunityController \< ApplicationController helper :profile def index @title = “Community” @letters = “ABCDEFGHIJKLMNOPQRSTUVWXYZ”.split("") if params\[:id\] @initial = params\[:id\] …

---

## [Files in lib directory not loading](https://www.ruby-forum.com/t/files-in-lib-directory-not-loading/185650)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [April 6, 2010, 10:28pm UTC](https://www.ruby-forum.com/t/files-in-lib-directory-not-loading/185650 "2010-04-06T22:28:10Z")

</div>

Hi there I’m trying to install this rack application: http://fuelyourcoding.com/set-rails-logging-on-fire/ However, my rails3 setup is not picking up my lib file: app/lib/rack/firebug\_logger.rb which contains: modu…

---

## [Show all children of object](https://www.ruby-forum.com/t/show-all-children-of-object/186409)

<div class="topic-metadata">

**Author:** [@ESESES](https://www.ruby-forum.com/u/ESESES)\
**Replies:** 3\
**Last updated:** [April 6, 2010, 9:46pm UTC](https://www.ruby-forum.com/t/show-all-children-of-object/186409 "2010-04-06T21:46:02Z")

</div>

I have an index page of ‘objects A’ who each have many of another ‘object B’. I want to have a link that will open a popup and list all the object B’s of an object A. I have this: \<%= link\_to( “details of object B”, …

---

## [\[JOBS\] Web Programmer at Reed College, Portland OR](https://www.ruby-forum.com/t/jobs-web-programmer-at-reed-college-portland-or/186391)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [April 6, 2010, 5:34pm UTC](https://www.ruby-forum.com/t/jobs-web-programmer-at-reed-college-portland-or/186391 "2010-04-06T17:34:52Z")

</div>

Reed College is looking for a web programmer who’s interested in working in an enterprise setting but doesn’t want to be told not to bring your dog to the office. In the Web Support Services group, we work on web app…

---

## [Issue with libxml validation block](https://www.ruby-forum.com/t/issue-with-libxml-validation-block/186244)

<div class="topic-metadata">

**Author:** [@ClSSSSment\_LAGRANGE](https://www.ruby-forum.com/u/ClSSSSment_LAGRANGE)\
**Replies:** 1\
**Last updated:** [April 6, 2010, 5:19pm UTC](https://www.ruby-forum.com/t/issue-with-libxml-validation-block/186244 "2010-04-06T17:19:34Z")

</div>

Hello, I have a weird issue with the ruby Libxml2 ruby bindings in a Rails project. I use the validate\_schema method, with a block which should be called on each validation error. The problem is that this block is n…

---

## [Mysql syntax error when trying to capture cumulative sum](https://www.ruby-forum.com/t/mysql-syntax-error-when-trying-to-capture-cumulative-sum/186380)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 2\
**Last updated:** [April 6, 2010, 4:35pm UTC](https://www.ruby-forum.com/t/mysql-syntax-error-when-trying-to-capture-cumulative-sum/186380 "2010-04-06T16:35:28Z")

</div>

Hey all, I’ve searched the web and cannot find an example of getting a cumulative count by month for a specific object using Rails, and then displaying that in an array. This gives a mysql syntax error: count = Stude…

---

## [Importing gems to another machine](https://www.ruby-forum.com/t/importing-gems-to-another-machine/186399)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 1\
**Last updated:** [April 6, 2010, 2:29pm UTC](https://www.ruby-forum.com/t/importing-gems-to-another-machine/186399 "2010-04-06T14:29:14Z")

</div>

Hi, I am working on an application which has around 70 gems installed. My problem is my coulig also wants to up the application. Is there any way to just import my gems to his machine? and application gets up and run…

---

## [How to create a form for multiple entries?](https://www.ruby-forum.com/t/how-to-create-a-form-for-multiple-entries/186387)

<div class="topic-metadata">

**Author:** [@ct9a](https://www.ruby-forum.com/u/ct9a)\
**Replies:** 2\
**Last updated:** [April 6, 2010, 1:59pm UTC](https://www.ruby-forum.com/t/how-to-create-a-form-for-multiple-entries/186387 "2010-04-06T13:59:57Z")

</div>

hi guys, I have a fairly simple application for a party. An “invite” object has many “guest” objects. When I open up localhost:3000/invites/:id/guests/, I expect to see the details of the “invite” along with all the …

---

## [Please help(writing conditions using haml)](https://www.ruby-forum.com/t/please-help-writing-conditions-using-haml/186397)

<div class="topic-metadata">

**Author:** [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Replies:** 0\
**Last updated:** [April 6, 2010, 1:54pm UTC](https://www.ruby-forum.com/t/please-help-writing-conditions-using-haml/186397 "2010-04-06T13:54:24Z")

</div>

in ma project there is a model named campaigns and delivery\_schedules . in delivery\_schedules i defined a method called below def get\_scheduled\_time self.delivery\_date.to\_s \<\< " " \<\< self.delivery\_hour.to\_s \<\< “:” \<\< …

---

## [Acts as ferret no search results](https://www.ruby-forum.com/t/acts-as-ferret-no-search-results/186396)

<div class="topic-metadata">

**Author:** [@catalin](https://www.ruby-forum.com/u/catalin)\
**Replies:** 0\
**Last updated:** [April 6, 2010, 1:39pm UTC](https://www.ruby-forum.com/t/acts-as-ferret-no-search-results/186396 "2010-04-06T13:39:07Z")

</div>

Hi, I\`m having trouble with acts\_as\_feret gem. It renders no results. First I \< require ‘acts\_as\_ferret’ \> in enviroment.rb. Then I use \< acts\_as\_ferret \> in every model I need. (user, spec, detalii) I made a serch …

---

## [Paperclip question](https://www.ruby-forum.com/t/paperclip-question/186331)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [April 6, 2010, 11:31am UTC](https://www.ruby-forum.com/t/paperclip-question/186331 "2010-04-06T11:31:17Z")

</div>

Hi All, My application is using paperclip and its working fine without any problems, I am able to generate the thumb images and big images from actual uploaded images. There are many images already uploaded by the us…

---

## [SystemTimer failing](https://www.ruby-forum.com/t/systemtimer-failing/186372)

<div class="topic-metadata">

**Author:** [@mhfs](https://www.ruby-forum.com/u/mhfs)\
**Replies:** 5\
**Last updated:** [April 6, 2010, 10:20am UTC](https://www.ruby-forum.com/t/systemtimer-failing/186372 "2010-04-06T10:20:27Z")

</div>

Hello list, I have searched everywhere else, tesed extensively and came to a point where I do not have a clue on what is happening. I am using SystemTimer and Ruby/LDAP in my Rails application. Ruby/LDAP to authent…

---

## [How to upload video file?](https://www.ruby-forum.com/t/how-to-upload-video-file/186375)

<div class="topic-metadata">

**Author:** [@rutisyrz](https://www.ruby-forum.com/u/rutisyrz)\
**Replies:** 2\
**Last updated:** [April 6, 2010, 10:05am UTC](https://www.ruby-forum.com/t/how-to-upload-video-file/186375 "2010-04-06T10:05:13Z")

</div>

Dear all, kindly help me to upload video files… Thanking you…

---

## [Using RadRails](https://www.ruby-forum.com/t/using-radrails/186374)

<div class="topic-metadata">

**Author:** [@Tig](https://www.ruby-forum.com/u/Tig)\
**Replies:** 2\
**Last updated:** [April 6, 2010, 9:47am UTC](https://www.ruby-forum.com/t/using-radrails/186374 "2010-04-06T09:47:40Z")

</div>

Hi, I’m new to RoR and have downloaded RadRails to use (on windows) after seeing some good recommendations. However, in setting up a new project I get the error below: C:/ruby/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/i…

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

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