# Rails

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

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

---

## [Memecircus - Ruby on Rails news site](https://www.ruby-forum.com/t/memecircus-ruby-on-rails-news-site/155527)

<div class="topic-metadata">

**Author:** [@jpignata](https://www.ruby-forum.com/u/jpignata)\
**Replies:** 0\
**Last updated:** [December 12, 2008, 10:27pm UTC](https://www.ruby-forum.com/t/memecircus-ruby-on-rails-news-site/155527 "2008-12-12T22:27:27Z")

</div>

I’ve found the best information regarding what’s going on with Rails and related software to be Twitter. To save time each day going through twitter for new blog posts, projects, etc, I’ve built a meta- news site to m…

---

## [Optionally Nested Resources](https://www.ruby-forum.com/t/optionally-nested-resources/155485)

<div class="topic-metadata">

**Author:** [@Daniel\_Cestari](https://www.ruby-forum.com/u/Daniel_Cestari)\
**Replies:** 1\
**Last updated:** [December 12, 2008, 8:32pm UTC](https://www.ruby-forum.com/t/optionally-nested-resources/155485 "2008-12-12T20:32:03Z")

</div>

Hello, I have this model. city has\_many stores store belongs\_to city I created resources for them and mapped them as such, using nested resources: map.resources :cities, :has\_many =\> :stores But I wanted to make t…

---

## [Auto detect URL](https://www.ruby-forum.com/t/auto-detect-url/155506)

<div class="topic-metadata">

**Author:** [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Replies:** 2\
**Last updated:** [December 12, 2008, 8:27pm UTC](https://www.ruby-forum.com/t/auto-detect-url/155506 "2008-12-12T20:27:37Z")

</div>

Is it possible to read the URL that someone uses to access your site. For example: I own, www.english.com and www.chinese.com and only have one rails site. Is it possible, when a user accessing my rails site from eng…

---

## [Calendar\_date\_select on Dreamhost](https://www.ruby-forum.com/t/calendar-date-select-on-dreamhost/155435)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [December 12, 2008, 7:42pm UTC](https://www.ruby-forum.com/t/calendar-date-select-on-dreamhost/155435 "2008-12-12T19:42:00Z")

</div>

Hi, I have installed the calendar\_date\_select gem on Dreamhost using the instructions on Google Code Archive - Long-term storage for Google Code Project Hosting.. The gem is properly installed and I can find it in my …

---

## [Where do I start?](https://www.ruby-forum.com/t/where-do-i-start/155346)

<div class="topic-metadata">

**Author:** [@Painting\_With\_P](https://www.ruby-forum.com/u/Painting_With_P)\
**Replies:** 10\
**Last updated:** [December 12, 2008, 7:32pm UTC](https://www.ruby-forum.com/t/where-do-i-start/155346 "2008-12-12T19:32:01Z")

</div>

I want to become a Rails web developer. I am not a programmer by any means. I have built one static website and am familiar with HTML and CSS. I know I’ll need to learn Rails, and perhaps a list of other things lik…

---

## [Modifying bindings](https://www.ruby-forum.com/t/modifying-bindings/155512)

<div class="topic-metadata">

**Author:** [@avramd](https://www.ruby-forum.com/u/avramd)\
**Replies:** 0\
**Last updated:** [December 12, 2008, 7:25pm UTC](https://www.ruby-forum.com/t/modifying-bindings/155512 "2008-12-12T19:25:33Z")

</div>

Hello, I have a little challenge that is frustrating me. I am trying to write a wrapper around cache() so that my fragments get cached with comments injected at the front and back. Unfortunately it is not as simple as …

---

## [jQuery Rails Functions](https://www.ruby-forum.com/t/jquery-rails-functions/155042)

<div class="topic-metadata">

**Author:** [@daz](https://www.ruby-forum.com/u/daz)\
**Replies:** 9\
**Last updated:** [December 12, 2008, 7:22pm UTC](https://www.ruby-forum.com/t/jquery-rails-functions/155042 "2008-12-12T19:22:38Z")

</div>

Hi, I was wondering if anybody who used jQuery with rails could help me out. I have a droppable that fires a simple function, shown below: $("#list").droppable({ accept: “.item”, hoverClass: ‘droppable-hover’, drop…

---

## [Pagination on arrays](https://www.ruby-forum.com/t/pagination-on-arrays/155431)

<div class="topic-metadata">

**Author:** [@pimeamark](https://www.ruby-forum.com/u/pimeamark)\
**Replies:** 3\
**Last updated:** [December 12, 2008, 4:31pm UTC](https://www.ruby-forum.com/t/pagination-on-arrays/155431 "2008-12-12T16:31:01Z")

</div>

I’m looking for a way to paginate an array of data basically. I know about will\_paginate but from what I’ve seen that only works on activerecord searches. I can’t seem to find a good resource that lets you paginate a …

---

## [Is there a way in ./script/console to get the SQL debugging showing? (i.e. like you see when you r](https://www.ruby-forum.com/t/is-there-a-way-in-script-console-to-get-the-sql-debugging-showing-i-e-like-you-see-when-you-r/155483)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 3\
**Last updated:** [December 12, 2008, 4:27pm UTC](https://www.ruby-forum.com/t/is-there-a-way-in-script-console-to-get-the-sql-debugging-showing-i-e-like-you-see-when-you-r/155483 "2008-12-12T16:27:05Z")

</div>

is there a way in ./script/console to get the SQL debugging showing??? (i.e. like you see when you run ./script/server in development mode) thanks

---

## [Javascript\_include within single views](https://www.ruby-forum.com/t/javascript-include-within-single-views/155466)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 3\
**Last updated:** [December 12, 2008, 10:12am UTC](https://www.ruby-forum.com/t/javascript-include-within-single-views/155466 "2008-12-12T10:12:35Z")

</div>

Are you allowed to use the javascript\_include\_tag to include javascript files for specific views? I have included the default javascript files in the element of my site layout file, but when I try and include a java…

---

## [Odd problem with rake test](https://www.ruby-forum.com/t/odd-problem-with-rake-test/155351)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 4\
**Last updated:** [December 12, 2008, 8:53am UTC](https://www.ruby-forum.com/t/odd-problem-with-rake-test/155351 "2008-12-12T08:53:56Z")

</div>

I’ve got a strange problem with raking my tests. They come up all clear when I do rake:functionals but when I run them as individual ruby files the test fail as they should. What’s the difference? Does anyone else hav…

---

## [Ruby Arrays - Passing arrays from a function possible?](https://www.ruby-forum.com/t/ruby-arrays-passing-arrays-from-a-function-possible/155375)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 10\
**Last updated:** [December 12, 2008, 8:51am UTC](https://www.ruby-forum.com/t/ruby-arrays-passing-arrays-from-a-function-possible/155375 "2008-12-12T08:51:33Z")

</div>

I see that I’m repeating a lot of code throughout my app, and I wanted to do something like this in my model: def product\_attributes \[product, quantity, description, color, size\] end def add\_item(product\_attributes) …

---

## [Implementing auto\_complete and acts\_as\_taggable](https://www.ruby-forum.com/t/implementing-auto-complete-and-acts-as-taggable/155484)

<div class="topic-metadata">

**Author:** [@mac-eros](https://www.ruby-forum.com/u/mac-eros)\
**Replies:** 0\
**Last updated:** [December 12, 2008, 8:42am UTC](https://www.ruby-forum.com/t/implementing-auto-complete-and-acts-as-taggable/155484 "2008-12-12T08:42:58Z")

</div>

Hi, In my book store application I have installed acts\_as\_taggable for adding tags.Now I want to add auto\_complete feature in the tag field. I have googled a lot but not get the clear idea. will anybody guide me for …

---

## [Default value using Autocompleter.local](https://www.ruby-forum.com/t/default-value-using-autocompleter-local/155479)

<div class="topic-metadata">

**Author:** [@adeel](https://www.ruby-forum.com/u/adeel)\
**Replies:** 0\
**Last updated:** [December 12, 2008, 7:40am UTC](https://www.ruby-forum.com/t/default-value-using-autocompleter-local/155479 "2008-12-12T07:40:38Z")

</div>

I’m using recipe 7 from Rails Recipes to get really fast auto- completion through Javascript. I was previously using text\_field\_auto\_complete which lets me define a :value that appears in the field when the page is lo…

---

## [Loading ActiveRecord and ActionMailer only in a worker process to save memory](https://www.ruby-forum.com/t/loading-activerecord-and-actionmailer-only-in-a-worker-process-to-save-memory/155477)

<div class="topic-metadata">

**Author:** [@dcarneiro](https://www.ruby-forum.com/u/dcarneiro)\
**Replies:** 0\
**Last updated:** [December 12, 2008, 7:34am UTC](https://www.ruby-forum.com/t/loading-activerecord-and-actionmailer-only-in-a-worker-process-to-save-memory/155477 "2008-12-12T07:34:12Z")

</div>

For a Rails app, I have a SimpleDaemon process that does some URL fetching and sends off emails. The daemon script requires the config/ environment.rb of the Rails app. But this script really only needs to require Act…

---

## [Many projects, with the same framework](https://www.ruby-forum.com/t/many-projects-with-the-same-framework/154027)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 1\
**Last updated:** [December 12, 2008, 7:23am UTC](https://www.ruby-forum.com/t/many-projects-with-the-same-framework/154027 "2008-12-12T07:23:10Z")

</div>

I have many websites but much the same framework for each of them. The only differences being the views, the styles, the databases and deploy.rb. What’s the best way to arrange things in version control e.g. svn so t…

---

## [Cache\_sweeper undefined for controllers](https://www.ruby-forum.com/t/cache-sweeper-undefined-for-controllers/155476)

<div class="topic-metadata">

**Author:** [@spiceee](https://www.ruby-forum.com/u/spiceee)\
**Replies:** 0\
**Last updated:** [December 12, 2008, 7:12am UTC](https://www.ruby-forum.com/t/cache-sweeper-undefined-for-controllers/155476 "2008-12-12T07:12:40Z")

</div>

Any clues on why I’m getting cache\_sweeper undefined to any controller on Rails 2.1? NoMethodError (undefined method cache\_sweeper' for CommentsController:Class): /app/controllers/comments\_controller.rb:5 /vendor/rails…

---

## [Select the item](https://www.ruby-forum.com/t/select-the-item/82893)

<div class="topic-metadata">

**Author:** [@dilip](https://www.ruby-forum.com/u/dilip)\
**Replies:** 1\
**Last updated:** [December 12, 2008, 6:33am UTC](https://www.ruby-forum.com/t/select-the-item/82893 "2008-12-12T06:33:57Z")

</div>

hi i am new to ruby and i have one text box for search by the string in the text box insted of that i am trying to implement a drop down list,with the selected item in the drop down it should search. problem hear is …

---

## [Tired of Rails Fixtures? Try Dataset](https://www.ruby-forum.com/t/tired-of-rails-fixtures-try-dataset/155471)

<div class="topic-metadata">

**Author:** [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Replies:** 0\
**Last updated:** [December 12, 2008, 6:07am UTC](https://www.ruby-forum.com/t/tired-of-rails-fixtures-try-dataset/155471 "2008-12-12T06:07:38Z")

</div>

Dataset gives you an easy, declarative method for constructing sets of data to be used in testing. It is a data loading framework. This is in contrast to Machinist and Factory Girl which focus only on making it easy t…

---

## [Auto\_complete with no of occurance](https://www.ruby-forum.com/t/auto-complete-with-no-of-occurance/155376)

<div class="topic-metadata">

**Author:** [@tuhin\_cse99](https://www.ruby-forum.com/u/tuhin_cse99)\
**Replies:** 3\
**Last updated:** [December 12, 2008, 5:57am UTC](https://www.ruby-forum.com/t/auto-complete-with-no-of-occurance/155376 "2008-12-12T05:57:55Z")

</div>

Hi, I have implemented auto complete text box by using auto\_complete plugins in rails 2 application. Can I show the number of occurence of the text those display in the list drived by auto\_complete pugin? just like …

---

## [Validating a Tag](https://www.ruby-forum.com/t/validating-a-tag/155407)

<div class="topic-metadata">

**Author:** [@elioncho](https://www.ruby-forum.com/u/elioncho)\
**Replies:** 1\
**Last updated:** [December 12, 2008, 5:54am UTC](https://www.ruby-forum.com/t/validating-a-tag/155407 "2008-12-12T05:54:09Z")

</div>

Hello, I am using the acts\_as\_taggable\_on plugin (which derivates from acts\_as\_taggable\_on\_steroids). My question is: How can I validate that my tags doesn’t have any special characters such as . / \\ etc. It seems th…

---

## [Does animated gif will work properly using RMagick?](https://www.ruby-forum.com/t/does-animated-gif-will-work-properly-using-rmagick/154833)

<div class="topic-metadata">

**Author:** [@martin\_mercy2001](https://www.ruby-forum.com/u/martin_mercy2001)\
**Replies:** 2\
**Last updated:** [December 12, 2008, 5:29am UTC](https://www.ruby-forum.com/t/does-animated-gif-will-work-properly-using-rmagick/154833 "2008-12-12T05:29:10Z")

</div>

Dear all, I have used RMagic to read and write a image while uploading. An animated gif was read from my local machine and was written in my images folder using RMagick. But the animated gif which i read was witten in…

---

## [Serialize array finder](https://www.ruby-forum.com/t/serialize-array-finder/155366)

<div class="topic-metadata">

**Author:** [@grayson](https://www.ruby-forum.com/u/grayson)\
**Replies:** 2\
**Last updated:** [December 12, 2008, 4:06am UTC](https://www.ruby-forum.com/t/serialize-array-finder/155366 "2008-12-12T04:06:32Z")

</div>

Hello, Not sure if this is even possible/practical but I’d like to serialize an array to a string field like this and then be able to match against it. User.find(:all, :conditions =\> \[“interests in (?)”,current\_user.…

---

## [Help needed regaring Acts As Taggable On Steroids](https://www.ruby-forum.com/t/help-needed-regaring-acts-as-taggable-on-steroids/155409)

<div class="topic-metadata">

**Author:** [@mac-eros](https://www.ruby-forum.com/u/mac-eros)\
**Replies:** 1\
**Last updated:** [December 12, 2008, 2:34am UTC](https://www.ruby-forum.com/t/help-needed-regaring-acts-as-taggable-on-steroids/155409 "2008-12-12T02:34:46Z")

</div>

Hello, In my rails application, I have a book model. I want to add tags. For that I have installed acts\_as\_taggable\_on\_steroids from this link http://agilewebdevelopment.com/plugins/acts\_as\_taggable\_on\_steroids an…

---

## [Parameter validation and other security measures](https://www.ruby-forum.com/t/parameter-validation-and-other-security-measures/155458)

<div class="topic-metadata">

**Author:** [@thabenksta](https://www.ruby-forum.com/u/thabenksta)\
**Replies:** 0\
**Last updated:** [December 12, 2008, 1:45am UTC](https://www.ruby-forum.com/t/parameter-validation-and-other-security-measures/155458 "2008-12-12T01:45:01Z")

</div>

We have a site that receives about 30000 uniques per month. Lately, we have been hit with URLs that are hundreds of characters long with all sort of junk in the URL/parameters. I suspect this is an attempt at sessio…

---

## [Get an attrifutes from joins in a find method](https://www.ruby-forum.com/t/get-an-attrifutes-from-joins-in-a-find-method/155432)

<div class="topic-metadata">

**Author:** [@stratboy](https://www.ruby-forum.com/u/stratboy)\
**Replies:** 1\
**Last updated:** [December 12, 2008, 12:25am UTC](https://www.ruby-forum.com/t/get-an-attrifutes-from-joins-in-a-find-method/155432 "2008-12-12T00:25:14Z")

</div>

I have wrote an example: example=Example.find(:all,:joins=\>"(select id,“hello” as hello\_name from examples2) as examples3 where examples3.id=examples.id") I want get the attribute hello\_name that not exits in db. exa…

---

## [When it's appropriate to use fixtures](https://www.ruby-forum.com/t/when-its-appropriate-to-use-fixtures/155455)

<div class="topic-metadata">

**Author:** [@dbelsham](https://www.ruby-forum.com/u/dbelsham)\
**Replies:** 0\
**Last updated:** [December 11, 2008, 10:57pm UTC](https://www.ruby-forum.com/t/when-its-appropriate-to-use-fixtures/155455 "2008-12-11T22:57:18Z")

</div>

I know it’s, like, SO uncool to use fixtures. However, I find that there are cases where the correctness of your code relies on correct functioning of your finders. Since finders translate to SQL, and you canâ€™t test…

---

## [Condition metadata / dyanmic conditions](https://www.ruby-forum.com/t/condition-metadata-dyanmic-conditions/155453)

<div class="topic-metadata">

**Author:** [@grayson](https://www.ruby-forum.com/u/grayson)\
**Replies:** 1\
**Last updated:** [December 11, 2008, 10:03pm UTC](https://www.ruby-forum.com/t/condition-metadata-dyanmic-conditions/155453 "2008-12-11T22:03:37Z")

</div>

Hello, Is there a plugin / gem out there that would help me construct a dynamic set of conditions for a finder? In other words, I have a user with multiple attributes (some 50+). I have other users that want to expr…

---

## [Ssl\_required and form\_tag](https://www.ruby-forum.com/t/ssl-required-and-form-tag/155444)

<div class="topic-metadata">

**Author:** [@fritza](https://www.ruby-forum.com/u/fritza)\
**Replies:** 2\
**Last updated:** [December 11, 2008, 9:15pm UTC](https://www.ruby-forum.com/t/ssl-required-and-form-tag/155444 "2008-12-11T21:15:36Z")

</div>

I don’t quite understand how ssl\_required interacts with forms in Ruby on Rails. I’ve installed the ssl\_requirement plugin, and listed one of my form-submission actions (:assign\_building) in an ssl\_required declarati…

---

## [Database.yml and .gitignore](https://www.ruby-forum.com/t/database-yml-and-gitignore/155429)

<div class="topic-metadata">

**Author:** [@jgoggles](https://www.ruby-forum.com/u/jgoggles)\
**Replies:** 6\
**Last updated:** [December 11, 2008, 9:09pm UTC](https://www.ruby-forum.com/t/database-yml-and-gitignore/155429 "2008-12-11T21:09:17Z")

</div>

Hi, For some reason git is not ignoring my database.yml file even though I have config/database.yml in my .gitignore file. Any suggestions as to what the problem might be and/or how I can fix it? It’s causing major …

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

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