# Rails

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

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

---

## [Newbie question - how do I hide/show a div using pure rails?](https://www.ruby-forum.com/t/newbie-question-how-do-i-hide-show-a-div-using-pure-rails/105679)

<div class="topic-metadata">

**Author:** [@smc7000](https://www.ruby-forum.com/u/smc7000)\
**Replies:** 8\
**Last updated:** [June 4, 2007, 8:17pm UTC](https://www.ruby-forum.com/t/newbie-question-how-do-i-hide-show-a-div-using-pure-rails/105679 "2007-06-04T20:17:33Z")

</div>

Right now I’m using this in one of my views: \<% if @isopen %\>\<% end -%\>Project name:\<% if @isopen %\>\<% end -%\> but having two sets of if/end makes me think that there might be a better way to be doing this. Unfortuna…

---

## [Remote\_form\_for issue](https://www.ruby-forum.com/t/remote-form-for-issue/105863)

<div class="topic-metadata">

**Author:** [@Pierre-Alexandre\_M](https://www.ruby-forum.com/u/Pierre-Alexandre_M)\
**Replies:** 3\
**Last updated:** [June 4, 2007, 7:58pm UTC](https://www.ruby-forum.com/t/remote-form-for-issue/105863 "2007-06-04T19:58:38Z")

</div>

Hi everybody, I’m trying to change my current forms in my app to remote\_forms. It was my understanding that remote\_form\_for and form\_for work in the same way, so I just wanted to change the methods. My code looks like…

---

## [Acts\_as\_ratable method not found](https://www.ruby-forum.com/t/acts-as-ratable-method-not-found/105838)

<div class="topic-metadata">

**Author:** [@amoo3](https://www.ruby-forum.com/u/amoo3)\
**Replies:** 1\
**Last updated:** [June 4, 2007, 7:46pm UTC](https://www.ruby-forum.com/t/acts-as-ratable-method-not-found/105838 "2007-06-04T19:46:44Z")

</div>

After i install the acts\_as\_ratable plugin, my app says \[code=\]NameError in UploadController#list undefined local variable or method \`acts\_as\_rateable’ for Jclass:Class RAILS\_ROOT: script/…/config/… Application Trace…

---

## [Is anybody doing anything about the spam on this list?](https://www.ruby-forum.com/t/is-anybody-doing-anything-about-the-spam-on-this-list/105837)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 6\
**Last updated:** [June 4, 2007, 7:44pm UTC](https://www.ruby-forum.com/t/is-anybody-doing-anything-about-the-spam-on-this-list/105837 "2007-06-04T19:44:20Z")

</div>

It seems to me that the amount of span on this last has gotten a lot worse over the last couple of months. Are we hoping that Google filters out spam? Or is that the responsiblity of the list owners or something? I…

---

## [How to read pdf files?](https://www.ruby-forum.com/t/how-to-read-pdf-files/105927)

<div class="topic-metadata">

**Author:** [@coelho](https://www.ruby-forum.com/u/coelho)\
**Replies:** 0\
**Last updated:** [June 4, 2007, 7:17pm UTC](https://www.ruby-forum.com/t/how-to-read-pdf-files/105927 "2007-06-04T19:17:47Z")

</div>

Hello, I need to read a bunch of text from many pdf files. Could you guys tell me what pdf lib to use? I only need a function to read text from the pdfs.

---

## [Dynamic Find using LIKE](https://www.ruby-forum.com/t/dynamic-find-using-like/105725)

<div class="topic-metadata">

**Author:** [@deniedlates](https://www.ruby-forum.com/u/deniedlates)\
**Replies:** 8\
**Last updated:** [June 4, 2007, 6:56pm UTC](https://www.ruby-forum.com/t/dynamic-find-using-like/105725 "2007-06-04T18:56:39Z")

</div>

Hi all, I have a simple text box for the user to enter a search term. I think there is a helper that will convert a search term like “word\_1 word\_2” into a generated SQL query like this: SELECT \* FROM table WHERE te…

---

## [Route, namespace and admin controllers](https://www.ruby-forum.com/t/route-namespace-and-admin-controllers/105898)

<div class="topic-metadata">

**Author:** [@nuno](https://www.ruby-forum.com/u/nuno)\
**Replies:** 1\
**Last updated:** [June 4, 2007, 6:29pm UTC](https://www.ruby-forum.com/t/route-namespace-and-admin-controllers/105898 "2007-06-04T18:29:06Z")

</div>

Hi, I’ve created my own locale handling system with the following route added in routes.rb : map.connect ‘:locale/:controller/:action/:id’ Works fine. Then, I’ve added Admin namespace for all the backoffice controlle…

---

## [\[ann\] erubycon session list now online](https://www.ruby-forum.com/t/ann-erubycon-session-list-now-online/105921)

<div class="topic-metadata">

**Author:** [@moontan](https://www.ruby-forum.com/u/moontan)\
**Replies:** 0\
**Last updated:** [June 4, 2007, 5:56pm UTC](https://www.ruby-forum.com/t/ann-erubycon-session-list-now-online/105921 "2007-06-04T17:56:00Z")

</div>

Sessions Announced The session list (Güvenilir Bahis Siteleri) has finally been posted. We will be having two tracks and have some incredible talks to choose from. Stay tuned for the exact schedule. Some of the topics…

---

## [\[JOB\] Atlanta, Ga](https://www.ruby-forum.com/t/job-atlanta-ga/105919)

<div class="topic-metadata">

**Author:** [@starmaerker](https://www.ruby-forum.com/u/starmaerker)\
**Replies:** 0\
**Last updated:** [June 4, 2007, 5:45pm UTC](https://www.ruby-forum.com/t/job-atlanta-ga/105919 "2007-06-04T17:45:59Z")

</div>

Hello all, The company I’m working for, Astral Brands, is looking for a versatile developer. This is a very stable non-tech company looking to beef up it’s web presence. Here’s a link to the about info: http://www.…

---

## [Acts\_as\_rateable in Beast](https://www.ruby-forum.com/t/acts-as-rateable-in-beast/105882)

<div class="topic-metadata">

**Author:** [@monjurul](https://www.ruby-forum.com/u/monjurul)\
**Replies:** 1\
**Last updated:** [June 4, 2007, 5:21pm UTC](https://www.ruby-forum.com/t/acts-as-rateable-in-beast/105882 "2007-06-04T17:21:56Z")

</div>

I’m trying to implement acts\_as\_rateable to my Beast installation to give users the option to rate posts (like reddit). I chose acts\_as\_rateable as it supposedly easily allows reddit-type voting but I’m having some p…

---

## [Rake environment hosed - error on Rakefile](https://www.ruby-forum.com/t/rake-environment-hosed-error-on-rakefile/105916)

<div class="topic-metadata">

**Author:** [@clemrock](https://www.ruby-forum.com/u/clemrock)\
**Replies:** 0\
**Last updated:** [June 4, 2007, 5:21pm UTC](https://www.ruby-forum.com/t/rake-environment-hosed-error-on-rakefile/105916 "2007-06-04T17:21:38Z")

</div>

Hello, Suddenly, my dev environment is completely destroyed. I have multiple projects and whenever I try to run any rake tasks I get an error on line 11 of my Rakefile. Here’s the error: user$ rake (in /Users/user…

---

## [Can't start script/server as other user than root](https://www.ruby-forum.com/t/cant-start-script-server-as-other-user-than-root/105901)

<div class="topic-metadata">

**Author:** [@Pascal\_F](https://www.ruby-forum.com/u/Pascal_F)\
**Replies:** 3\
**Last updated:** [June 4, 2007, 5:16pm UTC](https://www.ruby-forum.com/t/cant-start-script-server-as-other-user-than-root/105901 "2007-06-04T17:16:56Z")

</div>

hi, iam on gentoo linux since a few weeks. today i checked out a ror project and wanted to start the webbrick server. when i “ruby script/server” with another user than “root” it tells me: “./script/…/config/boot.rb…

---

## [Am I crazy?](https://www.ruby-forum.com/t/am-i-crazy/103215)

<div class="topic-metadata">

**Author:** [@zakifataya](https://www.ruby-forum.com/u/zakifataya)\
**Replies:** 17\
**Last updated:** [June 4, 2007, 5:08pm UTC](https://www.ruby-forum.com/t/am-i-crazy/103215 "2007-06-04T17:08:55Z")

</div>

I swear this worked yesterday, but doesn’t work today. I have a method in application.rb: def img\_types \[“jpeg”, “tiff”, “gif”, “eps”\] end This is called from various controllers, e.g., if f.type in img\_types … S…

---

## [Can't have WelcomeController and User::WelcomeController ? n](https://www.ruby-forum.com/t/cant-have-welcomecontroller-and-user-welcomecontroller-n/104515)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [June 4, 2007, 4:41pm UTC](https://www.ruby-forum.com/t/cant-have-welcomecontroller-and-user-welcomecontroller-n/104515 "2007-06-04T16:41:31Z")

</div>

I have a top level controller and a nested controller with the same name WelcomeController. It works fine in development mode. Then in production mode, it says there are no actions for that controller, and plops out …

---

## [A little help with organization!](https://www.ruby-forum.com/t/a-little-help-with-organization/105910)

<div class="topic-metadata">

**Author:** [@CPerry](https://www.ruby-forum.com/u/CPerry)\
**Replies:** 4\
**Last updated:** [June 4, 2007, 4:30pm UTC](https://www.ruby-forum.com/t/a-little-help-with-organization/105910 "2007-06-04T16:30:52Z")

</div>

Hey all, first let me say that this list has been very valuable for me in learning the basics of Rails, so I appreciate this list very much! I have been doing a great amount of reading, studying, and learning, and now…

---

## [Mongrel as service on windows 2003](https://www.ruby-forum.com/t/mongrel-as-service-on-windows-2003/105626)

<div class="topic-metadata">

**Author:** [@chuvisco](https://www.ruby-forum.com/u/chuvisco)\
**Replies:** 9\
**Last updated:** [June 4, 2007, 3:42pm UTC](https://www.ruby-forum.com/t/mongrel-as-service-on-windows-2003/105626 "2007-06-04T15:42:16Z")

</div>

Hello, I’m trying to run Mongrel as a service under Windows 2003 Server. Everything is fine with my application (I’ve tested it locally with Webrick and Mongrel as well). I’ve tested it on server, too, and it works,…

---

## [Restful design - make everything restful?](https://www.ruby-forum.com/t/restful-design-make-everything-restful/105887)

<div class="topic-metadata">

**Author:** [@Tarscher](https://www.ruby-forum.com/u/Tarscher)\
**Replies:** 3\
**Last updated:** [June 4, 2007, 3:26pm UTC](https://www.ruby-forum.com/t/restful-design-make-everything-restful/105887 "2007-06-04T15:26:41Z")

</div>

hi all, I want to have a administrator view where users can be altered, site structures can be changed, layout can be defined, … I can perfectly see how to define a restful user, sitestructure and layout controller b…

---

## [Can I use acts\_as\_list with a has\_many :through association](https://www.ruby-forum.com/t/can-i-use-acts-as-list-with-a-has-many-through-association/104762)

<div class="topic-metadata">

**Author:** [@stepheneb](https://www.ruby-forum.com/u/stepheneb)\
**Replies:** 3\
**Last updated:** [June 4, 2007, 3:06pm UTC](https://www.ruby-forum.com/t/can-i-use-acts-as-list-with-a-has-many-through-association/104762 "2007-06-04T15:06:37Z")

</div>

I’d like to be able to use a has\_many :through association and treat the associations as a list but I’m getting this error when I try an use an acts\_as\_list method: NoMethodError: undefined method \`move\_to\_bottom’ I’…

---

## [How can I perform a stress test?](https://www.ruby-forum.com/t/how-can-i-perform-a-stress-test/105905)

<div class="topic-metadata">

**Author:** [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Replies:** 0\
**Last updated:** [June 4, 2007, 3:02pm UTC](https://www.ruby-forum.com/t/how-can-i-perform-a-stress-test/105905 "2007-06-04T15:02:14Z")

</div>

Hi dear community! I’m a new member from Germany :slight\_smile: So don’t be angry with me, when sometimes my english sounds terrible. Currently I’m working on a huge project, a web application, which is coded with Ru…

---

## [Annotate models http://svn.pragprog.com/Public/plugins/annot](https://www.ruby-forum.com/t/annotate-models-http-svn-pragprog-com-public-plugins-annot/105903)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [June 4, 2007, 2:31pm UTC](https://www.ruby-forum.com/t/annotate-models-http-svn-pragprog-com-public-plugins-annot/105903 "2007-06-04T14:31:32Z")

</div>

I am trying to redownload one of my favourite (and very small plugins) annotate\_models, unfortunately it seems to not be accesible… so I was wondering does anybody have a local gem I can ftp, or does anybody know what…

---

## [Cascading select box](https://www.ruby-forum.com/t/cascading-select-box/105902)

<div class="topic-metadata">

**Author:** [@dhaval](https://www.ruby-forum.com/u/dhaval)\
**Replies:** 0\
**Last updated:** [June 4, 2007, 2:24pm UTC](https://www.ruby-forum.com/t/cascading-select-box/105902 "2007-06-04T14:24:30Z")

</div>

hey people i am trying to create dynamic drowns with three select boxes and using one model …if i change first drop down then the second gets updated but the third one doesnt get updated…could u please tell me wat is …

---

## [Get paid to surf Ads....its real](https://www.ruby-forum.com/t/get-paid-to-surf-ads-its-real/105885)

<div class="topic-metadata">

**Author:** [@coolguy17111987](https://www.ruby-forum.com/u/coolguy17111987)\
**Replies:** 0\
**Last updated:** [June 4, 2007, 11:27am UTC](https://www.ruby-forum.com/t/get-paid-to-surf-ads-its-real/105885 "2007-06-04T11:27:07Z")

</div>

Hi all Now you can get paid to surf ads…All you need to do is register on their site, surf ads for 30 seconds. And you will be credited with the earning immediately. Ist’nt dat amazing. Many of you must have already …

---

## [A problem w/ association testing?](https://www.ruby-forum.com/t/a-problem-w-association-testing/105878)

<div class="topic-metadata">

**Author:** [@arachnd](https://www.ruby-forum.com/u/arachnd)\
**Replies:** 1\
**Last updated:** [June 4, 2007, 10:59am UTC](https://www.ruby-forum.com/t/a-problem-w-association-testing/105878 "2007-06-04T10:59:02Z")

</div>

http://pastie.caboo.se/67535 I have a problem w/ my associations, you can look at it on my pastie up above. Please help me out, thanks!

---

## [Checkboxes validation](https://www.ruby-forum.com/t/checkboxes-validation/104364)

<div class="topic-metadata">

**Author:** [@georgeuoa](https://www.ruby-forum.com/u/georgeuoa)\
**Replies:** 4\
**Last updated:** [June 4, 2007, 8:12am UTC](https://www.ruby-forum.com/t/checkboxes-validation/104364 "2007-06-04T08:12:18Z")

</div>

Hi Guys i have this method for finding a list of items via check-boxes def selected conditions = \[\[\]\] params\[:result\].each do |result\_id| conditions.first \<\< ‘feature.uniquename=?’ conditions \<\< result\_id end …

---

## [Where to put common methods](https://www.ruby-forum.com/t/where-to-put-common-methods/105036)

<div class="topic-metadata">

**Author:** [@giorgio](https://www.ruby-forum.com/u/giorgio)\
**Replies:** 7\
**Last updated:** [June 4, 2007, 7:50am UTC](https://www.ruby-forum.com/t/where-to-put-common-methods/105036 "2007-06-04T07:50:42Z")

</div>

I seem to have missed something in my (limited) rails experience. I can put lots of stuff in helpers for the views to call but these methods aren’t accessible to the controller. Now they always bang on about “Dont Rep…

---

## [Web notation](https://www.ruby-forum.com/t/web-notation/105877)

<div class="topic-metadata">

**Author:** [@Zirael](https://www.ruby-forum.com/u/Zirael)\
**Replies:** 0\
**Last updated:** [June 4, 2007, 7:42am UTC](https://www.ruby-forum.com/t/web-notation/105877 "2007-06-04T07:42:42Z")

</div>

Hi, What do you think about WebML? Is it worth to learn that notation? I’m searching for the way I could create a good web project documentation. Greetings.

---

## [Some problems with redirect\_to method](https://www.ruby-forum.com/t/some-problems-with-redirect-to-method/105872)

<div class="topic-metadata">

**Author:** [@ungsophy](https://www.ruby-forum.com/u/ungsophy)\
**Replies:** 1\
**Last updated:** [June 4, 2007, 7:08am UTC](https://www.ruby-forum.com/t/some-problems-with-redirect-to-method/105872 "2007-06-04T07:08:27Z")

</div>

Hi everyone, I have developed a login form that allow users to login using their gmail account. Enabling users to login using their gmail account I use XMPP4R library which is written in ruby. When users provide corre…

---

## [Expected ... to define (rails version 1.2.2)](https://www.ruby-forum.com/t/expected-to-define-rails-version-1-2-2/105873)

<div class="topic-metadata">

**Author:** [@steven290](https://www.ruby-forum.com/u/steven290)\
**Replies:** 3\
**Last updated:** [June 4, 2007, 7:01am UTC](https://www.ruby-forum.com/t/expected-to-define-rails-version-1-2-2/105873 "2007-06-04T07:01:08Z")

</div>

Hi, I’m having a mysterious problem that occurs when I’m using Rails 1.2.2. My app works fine when the environment.rb file reads: RAILS\_GEM\_VERSION = ‘1.1.6’ When I change this to: RAILS\_GEM\_VERSION = ‘1.2.2’ and t…

---

## [Why validates\_length\_of + :within just discard :message?](https://www.ruby-forum.com/t/why-validates-length-of-within-just-discard-message/105870)

<div class="topic-metadata">

**Author:** [@sishen](https://www.ruby-forum.com/u/sishen)\
**Replies:** 0\
**Last updated:** [June 4, 2007, 6:17am UTC](https://www.ruby-forum.com/t/why-validates-length-of-within-just-discard-message/105870 "2007-06-04T06:17:35Z")

</div>

Does this a design gotcha? Maybe more likely is a bug. I have read the code, and found that only :is, :maximum, :mininum will accept the :message option. Below is the related code. 442: def validates\_length\_of(…

---

## [Serch in blog - What is the best method](https://www.ruby-forum.com/t/serch-in-blog-what-is-the-best-method/105754)

<div class="topic-metadata">

**Author:** [@raj\_ma](https://www.ruby-forum.com/u/raj_ma)\
**Replies:** 7\
**Last updated:** [June 4, 2007, 5:56am UTC](https://www.ruby-forum.com/t/serch-in-blog-what-is-the-best-method/105754 "2007-06-04T05:56:54Z")

</div>

Hi, I am completly new to rail and developing a blog, was just interested in knowing what is the best method to implement search to search my blogs. Thank you, Raj.

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

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