# Rails

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

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

---

## [MysQL and Ruby](https://www.ruby-forum.com/t/mysql-and-ruby/189637)

<div class="topic-metadata">

**Author:** [@ziburudebian](https://www.ruby-forum.com/u/ziburudebian)\
**Replies:** 2\
**Last updated:** [June 4, 2010, 4:18pm UTC](https://www.ruby-forum.com/t/mysql-and-ruby/189637 "2010-06-04T16:18:33Z")

</div>

Hi, what is necessary to install to use the database MySQL under Aptana (Rubyb 1.8.6) My config: Windows XP PRO SP2 Wamp5 1.7.4 with MysQL 5.0.45 Aptana 2.0.4 RubyGems 1.3.5 Ruby 1.8.6

---

## [Command require](https://www.ruby-forum.com/t/command-require/189655)

<div class="topic-metadata">

**Author:** [@Srinivas\_G](https://www.ruby-forum.com/u/Srinivas_G)\
**Replies:** 1\
**Last updated:** [June 4, 2010, 3:32pm UTC](https://www.ruby-forum.com/t/command-require/189655 "2010-06-04T15:32:43Z")

</div>

In Ruby there is a command called ‘require’. Explain what this command means and write an example of how it is used to include a Ruby Gem in a file.

---

## [Apache freezing with Passenger](https://www.ruby-forum.com/t/apache-freezing-with-passenger/189597)

<div class="topic-metadata">

**Author:** [@billv](https://www.ruby-forum.com/u/billv)\
**Replies:** 4\
**Last updated:** [June 4, 2010, 3:30pm UTC](https://www.ruby-forum.com/t/apache-freezing-with-passenger/189597 "2010-06-04T15:30:58Z")

</div>

We have a virtual server running CentOS5 and Rails 2.3.5 with Ruby 1.8.7. There are two lightly used rails apps in production on the server. Every so often, maybe once a month, Apache freezes. A simple service res…

---

## [How to use split method?](https://www.ruby-forum.com/t/how-to-use-split-method/189575)

<div class="topic-metadata">

**Author:** [@SushilKarwa](https://www.ruby-forum.com/u/SushilKarwa)\
**Replies:** 5\
**Last updated:** [June 4, 2010, 2:31pm UTC](https://www.ruby-forum.com/t/how-to-use-split-method/189575 "2010-06-04T14:31:11Z")

</div>

I’m trying to use split method and here is my sample code.When I use irb I gett following output irb(main):001:0\> result = “OK:1234” =\> “OK:1234” irb(main):002:0\> result.split(’:’) =\> \[“OK”, “1234”\] irb(main):003:0\>…

---

## [Ruby on rails language problem](https://www.ruby-forum.com/t/ruby-on-rails-language-problem/189651)

<div class="topic-metadata">

**Author:** [@binghai](https://www.ruby-forum.com/u/binghai)\
**Replies:** 0\
**Last updated:** [June 4, 2010, 1:29pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-language-problem/189651 "2010-06-04T13:29:47Z")

</div>

This is definitely a language issue, both of our code and our database contains Chinese characters. \*\*\*\*This is my environment: About your application’s environment Ruby version 1.9.1 (i386-mingw32) Rub…

---

## [How to add multi image with paperclip dynamicly](https://www.ruby-forum.com/t/how-to-add-multi-image-with-paperclip-dynamicly/189643)

<div class="topic-metadata">

**Author:** [@HHHHHH](https://www.ruby-forum.com/u/HHHHHH)\
**Replies:** 0\
**Last updated:** [June 4, 2010, 11:51am UTC](https://www.ruby-forum.com/t/how-to-add-multi-image-with-paperclip-dynamicly/189643 "2010-06-04T11:51:26Z")

</div>

i want add one or many image using paperclip but dynamicly

---

## [Scheduled tasks in Rails: Cron + wget = Best solution?](https://www.ruby-forum.com/t/scheduled-tasks-in-rails-cron-wget-best-solution/189615)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 7\
**Last updated:** [June 4, 2010, 11:21am UTC](https://www.ruby-forum.com/t/scheduled-tasks-in-rails-cron-wget-best-solution/189615 "2010-06-04T11:21:47Z")

</div>

Hi there, do you agree that for having scheduled tasks in Rails, the leanest solution is the following? Create a controller with an action for each task Implement the logic of the task as controller code Set up a cro…

---

## [Compress css files with Rails](https://www.ruby-forum.com/t/compress-css-files-with-rails/189633)

<div class="topic-metadata">

**Author:** [@gremio](https://www.ruby-forum.com/u/gremio)\
**Replies:** 9\
**Last updated:** [June 4, 2010, 11:20am UTC](https://www.ruby-forum.com/t/compress-css-files-with-rails/189633 "2010-06-04T11:20:02Z")

</div>

Hi, I work on a website with many css files. To improve the performance of the site I would to merge all my css file into one on the production site. I know I could do this using plugins, but I heard it is possible …

---

## [Error after Updating version of Ubuntu](https://www.ruby-forum.com/t/error-after-updating-version-of-ubuntu/189632)

<div class="topic-metadata">

**Author:** [@crackjack](https://www.ruby-forum.com/u/crackjack)\
**Replies:** 0\
**Last updated:** [June 4, 2010, 9:30am UTC](https://www.ruby-forum.com/t/error-after-updating-version-of-ubuntu/189632 "2010-06-04T09:30:45Z")

</div>

Hello all. I was using Ubuntu 9.10 and ruby on rails with it. I had installed few applications of rails in it. I use Aptana Rad Rails for all my applications. Everything was running fine until I updated my Ubuntu. I…

---

## [Boot.rb:4:in \`require](https://www.ruby-forum.com/t/boot-rbin-require/187488)

<div class="topic-metadata">

**Author:** [@viglu](https://www.ruby-forum.com/u/viglu)\
**Replies:** 1\
**Last updated:** [June 4, 2010, 4:35am UTC](https://www.ruby-forum.com/t/boot-rbin-require/187488 "2010-06-04T04:35:30Z")

</div>

Hello, I’m new to rails 3 beta 3 I create my first app with rails firsttest then rails s /home/luc/firsttest/config/boot.rb:4:in require': no such file to load -- bundler (LoadError) from /home/luc/firsttest/config/b…

---

## [User routing versus admin routing strategies?](https://www.ruby-forum.com/t/user-routing-versus-admin-routing-strategies/189555)

<div class="topic-metadata">

**Author:** [@fearless\_fool](https://www.ruby-forum.com/u/fearless_fool)\
**Replies:** 5\
**Last updated:** [June 4, 2010, 4:28am UTC](https://www.ruby-forum.com/t/user-routing-versus-admin-routing-strategies/189555 "2010-06-04T04:28:55Z")

</div>

In an app where ordinary users are limited to viewing and editing their own “stuff”, but someone with admin privs can view and edit anybody’s stuff, what’s the right strategy for routing? At first blush, I’d think tha…

---

## [Using rails for database migrations/installs - even if rails doesn't actually use that database](https://www.ruby-forum.com/t/using-rails-for-database-migrations-installs-even-if-rails-doesnt-actually-use-that-database/189608)

<div class="topic-metadata">

**Author:** [@chewmanfoo](https://www.ruby-forum.com/u/chewmanfoo)\
**Replies:** 0\
**Last updated:** [June 3, 2010, 10:04pm UTC](https://www.ruby-forum.com/t/using-rails-for-database-migrations-installs-even-if-rails-doesnt-actually-use-that-database/189608 "2010-06-03T22:04:58Z")

</div>

Guys, I think rails migrations are the bomb. My company deploys a rails web server and application server (for web services), as well as a stack of linux servers containing applications and databases. the rails app …

---

## [Authlogic on Rails 3 with Checkbox](https://www.ruby-forum.com/t/authlogic-on-rails-3-with-checkbox/189596)

<div class="topic-metadata">

**Author:** [@sivakumar](https://www.ruby-forum.com/u/sivakumar)\
**Replies:** 2\
**Last updated:** [June 3, 2010, 8:57pm UTC](https://www.ruby-forum.com/t/authlogic-on-rails-3-with-checkbox/189596 "2010-06-03T20:57:40Z")

</div>

Hello guys, I had a quick question. Does Authlogic save the checkboxes to db. I came to know that it posts the value. Can you guys let me know how to save this in the Users db? Thanku in advance

---

## [Routes?](https://www.ruby-forum.com/t/routes/189543)

<div class="topic-metadata">

**Author:** [@anon\_comp](https://www.ruby-forum.com/u/anon_comp)\
**Replies:** 7\
**Last updated:** [June 3, 2010, 7:15pm UTC](https://www.ruby-forum.com/t/routes/189543 "2010-06-03T19:15:14Z")

</div>

The images in my program aren’t appearing. They’re all housed in public/images so I was hoping that I could modify routes.rb to point the program in the right direciton. The page that has the images has the typical im…

---

## [Simple Design and Testing Conference - Mumbai, India; June 26-27 2010](https://www.ruby-forum.com/t/simple-design-and-testing-conference-mumbai-india-june-26-27-2010/189602)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [June 3, 2010, 7:11pm UTC](https://www.ruby-forum.com/t/simple-design-and-testing-conference-mumbai-india-june-26-27-2010/189602 "2010-06-03T19:11:44Z")

</div>

http://sdtconf.com/ SDTConf is an all open space conference providing software practitioners a platform to meet face-to-face and discuss/demonstrate simple design & testing principles/approaches. No Marketing talks, …

---

## [Session, memory\_store & NoMethodError](https://www.ruby-forum.com/t/session-memory-store-nomethoderror/189531)

<div class="topic-metadata">

**Author:** [@chdem](https://www.ruby-forum.com/u/chdem)\
**Replies:** 10\
**Last updated:** [June 3, 2010, 7:02pm UTC](https://www.ruby-forum.com/t/session-memory-store-nomethoderror/189531 "2010-06-03T19:02:22Z")

</div>

Hy everybody, first, excuse me for my english, I’m french (sorry for that :D). My actual problem is that I encountered a NoMethodError when I tried to access to a session value that is not nil. I’m doing some ajax ca…

---

## [Return partial from a xhr request](https://www.ruby-forum.com/t/return-partial-from-a-xhr-request/189581)

<div class="topic-metadata">

**Author:** [@gremio](https://www.ruby-forum.com/u/gremio)\
**Replies:** 19\
**Last updated:** [June 3, 2010, 5:01pm UTC](https://www.ruby-forum.com/t/return-partial-from-a-xhr-request/189581 "2010-06-03T17:01:45Z")

</div>

Hi, I am working on a mobile device dev using javascript and I use a remote Rails app for the backend. I query the backend using Ajax, and I would like to know if from my controller I can return a partial in response…

---

## [Has many\_through, how to show only unassociated fields for a category?](https://www.ruby-forum.com/t/has-many-through-how-to-show-only-unassociated-fields-for-a-category/189537)

<div class="topic-metadata">

**Author:** [@samuel](https://www.ruby-forum.com/u/samuel)\
**Replies:** 3\
**Last updated:** [June 3, 2010, 4:58pm UTC](https://www.ruby-forum.com/t/has-many-through-how-to-show-only-unassociated-fields-for-a-category/189537 "2010-06-03T16:58:14Z")

</div>

Hi everybody, I’m using ruby 1.9.1, with rails 2.3.\*. I have an application of products and categories, but I want each type of product to have specific attributes. So, basically, according to the chosen category, I …

---

## [Virtual/Flexible attributes on model](https://www.ruby-forum.com/t/virtual-flexible-attributes-on-model/189587)

<div class="topic-metadata">

**Author:** [@mariachi77](https://www.ruby-forum.com/u/mariachi77)\
**Replies:** 6\
**Last updated:** [June 3, 2010, 4:37pm UTC](https://www.ruby-forum.com/t/virtual-flexible-attributes-on-model/189587 "2010-06-03T16:37:44Z")

</div>

I’ve a requirement to put some user-managed attributes on a model. Essentially, I want Entity-Attribute-Value functionality - the administrator has the ability to create “fields” on the model, and to specify their typ…

---

## [Ruby on Rails + Flash Application?](https://www.ruby-forum.com/t/ruby-on-rails-flash-application/189504)

<div class="topic-metadata">

**Author:** [@TINODEV](https://www.ruby-forum.com/u/TINODEV)\
**Replies:** 26\
**Last updated:** [June 3, 2010, 4:23pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-flash-application/189504 "2010-06-03T16:23:05Z")

</div>

Hello, I’m a Ruby on Rails beginner, as well as Flash beginner… Recently started developing a Web application using Ruby on Rails (I’m using InstantRails on Windows…)… Few days ago the Application’s design was change…

---

## [Drag n drop desktop file to application as such in google](https://www.ruby-forum.com/t/drag-n-drop-desktop-file-to-application-as-such-in-google/189584)

<div class="topic-metadata">

**Author:** [@umamahe](https://www.ruby-forum.com/u/umamahe)\
**Replies:** 0\
**Last updated:** [June 3, 2010, 3:32pm UTC](https://www.ruby-forum.com/t/drag-n-drop-desktop-file-to-application-as-such-in-google/189584 "2010-06-03T15:32:09Z")

</div>

Is that possible to " Drag n drop file from desktop to upload " in Ruby on rails application for example : google (gmail) drag n drop attachments same as this feature . Drag and drop functionality work…

---

## [How to "float" layouts/partials so that they stay in a static position in the browser?](https://www.ruby-forum.com/t/how-to-float-layouts-partials-so-that-they-stay-in-a-static-position-in-the-browser/189579)

<div class="topic-metadata">

**Author:** [@Lille](https://www.ruby-forum.com/u/Lille)\
**Replies:** 2\
**Last updated:** [June 3, 2010, 3:23pm UTC](https://www.ruby-forum.com/t/how-to-float-layouts-partials-so-that-they-stay-in-a-static-position-in-the-browser/189579 "2010-06-03T15:23:21Z")

</div>

Hi, Anybody know how to “float” an element like a partial so that it stays in the same position relative to the browser window frame? (My motivation: I’d like to have certain elements always in view no matter where t…

---

## [Error: can't find ldap.h and lber.h](https://www.ruby-forum.com/t/error-cant-find-ldap-h-and-lber-h/189582)

<div class="topic-metadata">

**Author:** [@periyasamy](https://www.ruby-forum.com/u/periyasamy)\
**Replies:** 0\
**Last updated:** [June 3, 2010, 3:19pm UTC](https://www.ruby-forum.com/t/error-cant-find-ldap-h-and-lber-h/189582 "2010-06-03T15:19:30Z")

</div>

Hi, When i run the command “ruby extconf.rb --with-openldap1” i am getting the error as “can’t find ldap.h and lber.h use the option ‘–with-ldap-dir’!”. How can i solve this problem please?. Thank you Periyasamy.R …

---

## [Need to save generated pdf in public folder](https://www.ruby-forum.com/t/need-to-save-generated-pdf-in-public-folder/189578)

<div class="topic-metadata">

**Author:** [@ratnamraj\_varasala](https://www.ruby-forum.com/u/ratnamraj_varasala)\
**Replies:** 1\
**Last updated:** [June 3, 2010, 2:20pm UTC](https://www.ruby-forum.com/t/need-to-save-generated-pdf-in-public-folder/189578 "2010-06-03T14:20:42Z")

</div>

hai im ruby on rails developer, im integrating princely plugin and prince software to my rails application i have generated pdf file successfully using the following code princely = Princely.new() html\_string = re…

---

## [Iterate binary string and sqlite3 query](https://www.ruby-forum.com/t/iterate-binary-string-and-sqlite3-query/189560)

<div class="topic-metadata">

**Author:** [@japmsn](https://www.ruby-forum.com/u/japmsn)\
**Replies:** 3\
**Last updated:** [June 3, 2010, 2:18pm UTC](https://www.ruby-forum.com/t/iterate-binary-string-and-sqlite3-query/189560 "2010-06-03T14:18:28Z")

</div>

Hi guys, my problem is the following, Right now I have a list of japanese words that are loaded from the database, they display okay, the problem begins when I need to split that word into ‘characters’ in this case ‘k…

---

## [How would I create a "tagged domain"?](https://www.ruby-forum.com/t/how-would-i-create-a-tagged-domain/189374)

<div class="topic-metadata">

**Author:** [@joe](https://www.ruby-forum.com/u/joe)\
**Replies:** 3\
**Last updated:** [June 3, 2010, 1:10pm UTC](https://www.ruby-forum.com/t/how-would-i-create-a-tagged-domain/189374 "2010-06-03T13:10:25Z")

</div>

Hi, Basically I recently been playing around with my ruby on rails system, and I’m wondering how I can get it to pick some words from the :name of the tutorial (I have a system with categories and tutorials) and make…

---

## [Open Source Contribution](https://www.ruby-forum.com/t/open-source-contribution/189516)

<div class="topic-metadata">

**Author:** [@Guilherme\_GuimarSSS](https://www.ruby-forum.com/u/Guilherme_GuimarSSS)\
**Replies:** 8\
**Last updated:** [June 3, 2010, 12:38pm UTC](https://www.ruby-forum.com/t/open-source-contribution/189516 "2010-06-03T12:38:49Z")

</div>

Hi. After some reading and coding samples i’m looking for a real ROR open- source project to contribute. Does anybody need help? Regards, Guilherme Guimarães

---

## [Can only traverse a polymorphic association in one direction](https://www.ruby-forum.com/t/can-only-traverse-a-polymorphic-association-in-one-direction/189247)

<div class="topic-metadata">

**Author:** [@BarryOg](https://www.ruby-forum.com/u/BarryOg)\
**Replies:** 2\
**Last updated:** [June 3, 2010, 11:52am UTC](https://www.ruby-forum.com/t/can-only-traverse-a-polymorphic-association-in-one-direction/189247 "2010-06-03T11:52:33Z")

</div>

Hi all, I’m working on a polymorphic association and I’ve run into a bit of a stumbling block. I only seem to be able to traverse the relationship in one direction and not the other. This is what my code looks like…

---

## [Using wamp's mysql for Ruby on Rails](https://www.ruby-forum.com/t/using-wamps-mysql-for-ruby-on-rails/189567)

<div class="topic-metadata">

**Author:** [@binghai](https://www.ruby-forum.com/u/binghai)\
**Replies:** 2\
**Last updated:** [June 3, 2010, 10:10am UTC](https://www.ruby-forum.com/t/using-wamps-mysql-for-ruby-on-rails/189567 "2010-06-03T10:10:06Z")

</div>

Hi all, I am new to ROR. I have wamp all ready to go, I’d like to use its mysql for ROR so that I can access the database from phpmyadmin. How should I do that? Here is what I have in database.yml: development: ad…

---

## [Validating form that is not bounded to Model](https://www.ruby-forum.com/t/validating-form-that-is-not-bounded-to-model/189533)

<div class="topic-metadata">

**Author:** [@builtbysimple](https://www.ruby-forum.com/u/builtbysimple)\
**Replies:** 1\
**Last updated:** [June 3, 2010, 9:51am UTC](https://www.ruby-forum.com/t/validating-form-that-is-not-bounded-to-model/189533 "2010-06-03T09:51:57Z")

</div>

Hi all, I would like to validate a form, but this form is not bounded to a Model? What would be the best approach to do this in Rails? I tried to look in the Rails guide with no luck. Can anybody share their experien…

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

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