# Rails

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

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

---

## [Rails 3 constraints, named routes and form\_tag](https://www.ruby-forum.com/t/rails-3-constraints-named-routes-and-form-tag/190388)

<div class="topic-metadata">

**Author:** [@Alan\_McCann](https://www.ruby-forum.com/u/Alan_McCann)\
**Replies:** 2\
**Last updated:** [June 19, 2010, 7:13pm UTC](https://www.ruby-forum.com/t/rails-3-constraints-named-routes-and-form-tag/190388 "2010-06-19T19:13:00Z")

</div>

I have the following URL I match to show a subset of text from a book /bookname/chapter1/line1/chapter2/line2 I have a route definition that works perfectly when entering a url in the browser however I cannot get a li…

---

## [Webrick will not start on OSX 10.6.4. Snow Leopard](https://www.ruby-forum.com/t/webrick-will-not-start-on-osx-10-6-4-snow-leopard/190417)

<div class="topic-metadata">

**Author:** [@rhand-on-ruby](https://www.ruby-forum.com/u/rhand-on-ruby)\
**Replies:** 1\
**Last updated:** [June 19, 2010, 6:09pm UTC](https://www.ruby-forum.com/t/webrick-will-not-start-on-osx-10-6-4-snow-leopard/190417 "2010-06-19T18:09:11Z")

</div>

I cannot get Rails to play nice with my MacPorts installed MySQL5: $ script/server =\> Booting WEBrick =\> Rails 2.3.8 application starting on http://0.0.0.0:3000 /opt/local/lib/ruby/1.8/yaml.rb:133:in load': syntax er…

---

## [Locale in namespaced routes](https://www.ruby-forum.com/t/locale-in-namespaced-routes/190414)

<div class="topic-metadata">

**Author:** [@Justin\_MacCarthy](https://www.ruby-forum.com/u/Justin_MacCarthy)\
**Replies:** 0\
**Last updated:** [June 19, 2010, 4:52pm UTC](https://www.ruby-forum.com/t/locale-in-namespaced-routes/190414 "2010-06-19T16:52:29Z")

</div>

Hi, I want to add a locale to my admin routes , currently I have routes such as map.resources :gigs, :path\_prefix =\> ‘/:locale’ So /en/gigs etc works, now I want to do /en/admin/venues What can do to the following r…

---

## [Tibco Software - Career Opportunity - UI Opportunity](https://www.ruby-forum.com/t/tibco-software-career-opportunity-ui-opportunity/190403)

<div class="topic-metadata">

**Author:** [@lisa](https://www.ruby-forum.com/u/lisa)\
**Replies:** 1\
**Last updated:** [June 19, 2010, 4:08pm UTC](https://www.ruby-forum.com/t/tibco-software-career-opportunity-ui-opportunity/190403 "2010-06-19T16:08:17Z")

</div>

Hi, My company Tibco Software, located in Palo Alto, has UI Architect position available. Can I post this with your organization? Lisa Greenawalt Recruiter Tibco Software 650-846-8763

---

## [re:Help needed act as commentable plugin urgent](https://www.ruby-forum.com/t/re-help-needed-act-as-commentable-plugin-urgent/190407)

<div class="topic-metadata">

**Author:** [@samproseruby](https://www.ruby-forum.com/u/samproseruby)\
**Replies:** 0\
**Last updated:** [June 19, 2010, 12:00pm UTC](https://www.ruby-forum.com/t/re-help-needed-act-as-commentable-plugin-urgent/190407 "2010-06-19T12:00:25Z")

</div>

Hi, I am facing problem during act as commentable plugin. i had follwed these two links error undefined method order in comment\_methods.rb. shall create commentable model? http://groups.google.com/group/rubyonra…

---

## [Whether scaffolding can be used with cassandra database](https://www.ruby-forum.com/t/whether-scaffolding-can-be-used-with-cassandra-database/190408)

<div class="topic-metadata">

**Author:** [@raghujoshi](https://www.ruby-forum.com/u/raghujoshi)\
**Replies:** 0\
**Last updated:** [June 19, 2010, 10:26am UTC](https://www.ruby-forum.com/t/whether-scaffolding-can-be-used-with-cassandra-database/190408 "2010-06-19T10:26:46Z")

</div>

hi I am using cassandra gem 0.8.2 and activerecord-cassandra-adapter by winebarrel. The database does not support migration. So, things like scaffolding can be used with Ruby on Rails? Pls do the needful – View thi…

---

## [Re:help for act as commentable](https://www.ruby-forum.com/t/re-help-for-act-as-commentable/190406)

<div class="topic-metadata">

**Author:** [@samproseruby](https://www.ruby-forum.com/u/samproseruby)\
**Replies:** 0\
**Last updated:** [June 19, 2010, 10:17am UTC](https://www.ruby-forum.com/t/re-help-for-act-as-commentable/190406 "2010-06-19T10:17:39Z")

</div>

Hi, I am facing problem during act as commentable plugin. i had follwed these two links error undefined method order in comment\_methods.rb. shall create commentable model?

---

## [Is validates\_presence\_of() deprecated in Rails 3?](https://www.ruby-forum.com/t/is-validates-presence-of-deprecated-in-rails-3/190404)

<div class="topic-metadata">

**Author:** [@Vikrant\_C](https://www.ruby-forum.com/u/Vikrant_C)\
**Replies:** 1\
**Last updated:** [June 19, 2010, 10:16am UTC](https://www.ruby-forum.com/t/is-validates-presence-of-deprecated-in-rails-3/190404 "2010-06-19T10:16:49Z")

</div>

Just wondering if validates\_presence\_of() has been deprecated in favour of validates(:name, :presence =\> true) or we can prefer to use any? Asking so, since NetBeans 6.9 shows a deprecation warning, however I can not…

---

## [Rails3 & sqlserver](https://www.ruby-forum.com/t/rails3-sqlserver/190401)

<div class="topic-metadata">

**Author:** [@Excelan](https://www.ruby-forum.com/u/Excelan)\
**Replies:** 0\
**Last updated:** [June 19, 2010, 8:44am UTC](https://www.ruby-forum.com/t/rails3-sqlserver/190401 "2010-06-19T08:44:20Z")

</div>

As soon as gem activerecord-sqlserver-adapter isn’t maintaned yet to work with Rails3 is there any other way to connect ActiveRecord to SQLServer?

---

## [Set server-side environment variables in integration testing](https://www.ruby-forum.com/t/set-server-side-environment-variables-in-integration-testing/190402)

<div class="topic-metadata">

**Author:** [@ranchlan](https://www.ruby-forum.com/u/ranchlan)\
**Replies:** 0\
**Last updated:** [June 19, 2010, 8:43am UTC](https://www.ruby-forum.com/t/set-server-side-environment-variables-in-integration-testing/190402 "2010-06-19T08:43:45Z")

</div>

My Rails application uses the SERVER\_NAME environment variable to decide how to display some of the web pages. I want to do integration testing with this application but I do not see how to force the request object’s …

---

## [Covert HTML to PDF](https://www.ruby-forum.com/t/covert-html-to-pdf/190321)

<div class="topic-metadata">

**Author:** [@railslist](https://www.ruby-forum.com/u/railslist)\
**Replies:** 10\
**Last updated:** [June 19, 2010, 8:43am UTC](https://www.ruby-forum.com/t/covert-html-to-pdf/190321 "2010-06-19T08:43:45Z")

</div>

Hello Everyone, I am working on a website where I am required to convert an HTML view into a PDF document. I have found some gems and plug-ins like PDF::Writer, but none of these are good for converting HTML and CSS t…

---

## [Read receipt status with bulk emails](https://www.ruby-forum.com/t/read-receipt-status-with-bulk-emails/190399)

<div class="topic-metadata">

**Author:** [@technova](https://www.ruby-forum.com/u/technova)\
**Replies:** 0\
**Last updated:** [June 19, 2010, 8:10am UTC](https://www.ruby-forum.com/t/read-receipt-status-with-bulk-emails/190399 "2010-06-19T08:10:59Z")

</div>

Hi Guys, I am sending bulk email in my ror app with Gmail SMTP connection using Action Mailer. I want to get it’s read receipt or email bounce status. Is there any way to get email sent status? Is it possible with RO…

---

## [Cumber: Sending unwanted form parameters](https://www.ruby-forum.com/t/cumber-sending-unwanted-form-parameters/190395)

<div class="topic-metadata">

**Author:** [@brianp](https://www.ruby-forum.com/u/brianp)\
**Replies:** 0\
**Last updated:** [June 19, 2010, 4:26am UTC](https://www.ruby-forum.com/t/cumber-sending-unwanted-form-parameters/190395 "2010-06-19T04:26:14Z")

</div>

Hey, I have a 2 model form. Vehicle which accepts\_nested\_attributes\_for Images. The form has a single File input field for an image. The form does not require a file to process (Works in Dev fine). In cucumber I fil…

---

## [\[ANN\] easy\_translate 0.1.1](https://www.ruby-forum.com/t/ann-easy-translate-0-1-1/190394)

<div class="topic-metadata">

**Author:** [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Replies:** 0\
**Last updated:** [June 19, 2010, 2:36am UTC](https://www.ruby-forum.com/t/ann-easy-translate-0-1-1/190394 "2010-06-19T02:36:14Z")

</div>

== Name easy\_translate == Synopsis Ruby binding for Google Translate that supports Batch Translation. Great, clean syntax for server-side translations. == Install gem install easy\_translate == Why not rtranslate …

---

## [Module for editing I18n translations in Netbeans](https://www.ruby-forum.com/t/module-for-editing-i18n-translations-in-netbeans/190390)

<div class="topic-metadata">

**Author:** [@svelhas](https://www.ruby-forum.com/u/svelhas)\
**Replies:** 0\
**Last updated:** [June 19, 2010, 12:23am UTC](https://www.ruby-forum.com/t/module-for-editing-i18n-translations-in-netbeans/190390 "2010-06-19T00:23:30Z")

</div>

Some time ago I wrote a plugin for Netbeans to make editing Rails i18n translation YAMLs a bit easier. Itâ€™s still quite basic but I plan to improve it. Feel free to comment, request features or submit patches if you…

---

## [How to use an active record store session model?](https://www.ruby-forum.com/t/how-to-use-an-active-record-store-session-model/190045)

<div class="topic-metadata">

**Author:** [@nick](https://www.ruby-forum.com/u/nick)\
**Replies:** 2\
**Last updated:** [June 18, 2010, 11:37pm UTC](https://www.ruby-forum.com/t/how-to-use-an-active-record-store-session-model/190045 "2010-06-18T23:37:43Z")

</div>

I have a toy rails app, 2.3.5 on Debian ‘squeeze’, that uses the ActiveRecord session store. I can see that it set cookies and inserts rows into the database table ‘sessions’. Inside a controller, how do I acquire a …

---

## ["Clickable" error pages in development mode](https://www.ruby-forum.com/t/clickable-error-pages-in-development-mode/190389)

<div class="topic-metadata">

**Author:** [@pedz](https://www.ruby-forum.com/u/pedz)\
**Replies:** 0\
**Last updated:** [June 18, 2010, 11:25pm UTC](https://www.ruby-forum.com/t/clickable-error-pages-in-development-mode/190389 "2010-06-18T23:25:32Z")

</div>

When I use merb or if I get an exception in Passenger, the page that is render has links for each of the source lines. These links I can click and it puts me into textmate. I have a hook so it puts me into emacs. Is…

---

## [Different views for different user's types](https://www.ruby-forum.com/t/different-views-for-different-users-types/190370)

<div class="topic-metadata">

**Author:** [@spitfire](https://www.ruby-forum.com/u/spitfire)\
**Replies:** 2\
**Last updated:** [June 18, 2010, 9:58pm UTC](https://www.ruby-forum.com/t/different-views-for-different-users-types/190370 "2010-06-18T21:58:27Z")

</div>

I have to create a web app with 2 different user’s types: advanced and basic. What’s the best way to manage different user’s views (one for user’s type) ? I am using respond\_to in this way: respond\_to do |format| …

---

## [Troubles with ActionController::DoubleRenderError](https://www.ruby-forum.com/t/troubles-with-actioncontroller-doublerendererror/190382)

<div class="topic-metadata">

**Author:** [@jorgegetafe](https://www.ruby-forum.com/u/jorgegetafe)\
**Replies:** 0\
**Last updated:** [June 18, 2010, 9:39pm UTC](https://www.ruby-forum.com/t/troubles-with-actioncontroller-doublerendererror/190382 "2010-06-18T21:39:59Z")

</div>

Hello all! I’m having troubles with my ruby application. When I click on the submit button, the browser shows me this: We’re sorry, but something went wrong. The production.log file has this text: Processing Identif…

---

## [Hostingrails.com appears to have had an ownership change](https://www.ruby-forum.com/t/hostingrails-com-appears-to-have-had-an-ownership-change/187429)

<div class="topic-metadata">

**Author:** [@minka](https://www.ruby-forum.com/u/minka)\
**Replies:** 15\
**Last updated:** [June 18, 2010, 8:59pm UTC](https://www.ruby-forum.com/t/hostingrails-com-appears-to-have-had-an-ownership-change/187429 "2010-06-18T20:59:07Z")

</div>

Uggh, this happened to be me before, my site trashed when the host had business problems. I hope it won’t be that bad. It seems Jumpline has taken over hostingrails and it also seems that there have been support tran…

---

## [Client-side form validation](https://www.ruby-forum.com/t/client-side-form-validation/190365)

<div class="topic-metadata">

**Author:** [@lucas\_franceschi](https://www.ruby-forum.com/u/lucas_franceschi)\
**Replies:** 5\
**Last updated:** [June 18, 2010, 6:49pm UTC](https://www.ruby-forum.com/t/client-side-form-validation/190365 "2010-06-18T18:49:05Z")

</div>

hey all, I am having a hard time looking for a plugin/gem to auto-validate a form in client-side, just like “live-validations”… I tried to download and install it via “script/plugin install git:// github.com/porras/…

---

## [Need Full-time Senior Ruby Dev with CSS/Jquery skills etc](https://www.ruby-forum.com/t/need-full-time-senior-ruby-dev-with-css-jquery-skills-etc/190342)

<div class="topic-metadata">

**Author:** [@jandrake](https://www.ruby-forum.com/u/jandrake)\
**Replies:** 13\
**Last updated:** [June 18, 2010, 6:42pm UTC](https://www.ruby-forum.com/t/need-full-time-senior-ruby-dev-with-css-jquery-skills-etc/190342 "2010-06-18T18:42:03Z")

</div>

Subject says it all. removed\_email\_address@domain.invalid

---

## [Mac and Rails](https://www.ruby-forum.com/t/mac-and-rails/190261)

<div class="topic-metadata">

**Author:** [@VikramAditya](https://www.ruby-forum.com/u/VikramAditya)\
**Replies:** 11\
**Last updated:** [June 18, 2010, 6:26pm UTC](https://www.ruby-forum.com/t/mac-and-rails/190261 "2010-06-18T18:26:08Z")

</div>

Hello, I have been just tasked to learn Rails for a new project and have been given Mac machine for it. I have never used a Mac / Linux ever. I have used Rails before on Windows. I need to set up Rails development env …

---

## [How to get line\_number and file\_name of an exception](https://www.ruby-forum.com/t/how-to-get-line-number-and-file-name-of-an-exception/190368)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 0\
**Last updated:** [June 18, 2010, 5:54pm UTC](https://www.ruby-forum.com/t/how-to-get-line-number-and-file-name-of-an-exception/190368 "2010-06-18T17:54:25Z")

</div>

Hi, My goal is to get the file\_name where an exception happened and its line\_number. The way it’s made in Rails is awkward as it gets computed in class TemplateError \< ActionViewError which is in the view. So how to …

---

## [Image tag automatically appending some parameter](https://www.ruby-forum.com/t/image-tag-automatically-appending-some-parameter/190367)

<div class="topic-metadata">

**Author:** [@bakaonigiri](https://www.ruby-forum.com/u/bakaonigiri)\
**Replies:** 2\
**Last updated:** [June 18, 2010, 5:42pm UTC](https://www.ruby-forum.com/t/image-tag-automatically-appending-some-parameter/190367 "2010-06-18T17:42:54Z")

</div>

Hello, I just took over some project and I noticed some odd behaviour : every image\_tag executed inside my views generate the needed code, but also append some sort of non random parameter wich I never asked for ! Fo…

---

## [SQLite - show html from entry](https://www.ruby-forum.com/t/sqlite-show-html-from-entry/190352)

<div class="topic-metadata">

**Author:** [@eric2323223](https://www.ruby-forum.com/u/eric2323223)\
**Replies:** 1\
**Last updated:** [June 18, 2010, 4:58pm UTC](https://www.ruby-forum.com/t/sqlite-show-html-from-entry/190352 "2010-06-18T16:58:59Z")

</div>

Hi, I have an entry in my database that has line breaks. I want those line breaks to actually appear as line breaks when the entry is displayed. So, I did something like: \<%= string\_var.sub("\\n"," ":slight\_smile: %\> …

---

## [How to pass params to button\_to\_remote?](https://www.ruby-forum.com/t/how-to-pass-params-to-button-to-remote/190366)

<div class="topic-metadata">

**Author:** [@mamadoutoure](https://www.ruby-forum.com/u/mamadoutoure)\
**Replies:** 1\
**Last updated:** [June 18, 2010, 4:35pm UTC](https://www.ruby-forum.com/t/how-to-pass-params-to-button-to-remote/190366 "2010-06-18T16:35:29Z")

</div>

Hi folks, I have a form that I populate, and then submit with button\_to\_remote, but I would like to have all my fileds that I populated passed as parameters (like the params hash) with to my controller. How would you …

---

## [Big performance issues regarding the browser](https://www.ruby-forum.com/t/big-performance-issues-regarding-the-browser/190152)

<div class="topic-metadata">

**Author:** [@bakaonigiri](https://www.ruby-forum.com/u/bakaonigiri)\
**Replies:** 4\
**Last updated:** [June 18, 2010, 3:44pm UTC](https://www.ruby-forum.com/t/big-performance-issues-regarding-the-browser/190152 "2010-06-18T15:44:19Z")

</div>

Hi ! I have a ruby server set up running Ruby v1.8.7 and those gems : actionmailer (2.3.8, 2.3.5, 2.3.3) actionpack (2.3.8, 2.3.5, 2.3.3) activerecord (2.3.8, 2.3.5, 2.3.3) activeresource (2.3.8, 2.3.5, 2.3.3) acti…

---

## [Render model to json-schema?](https://www.ruby-forum.com/t/render-model-to-json-schema/190361)

<div class="topic-metadata">

**Author:** [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Replies:** 0\
**Last updated:** [June 18, 2010, 2:18pm UTC](https://www.ruby-forum.com/t/render-model-to-json-schema/190361 "2010-06-18T14:18:35Z")

</div>

I am looking to optimize how we build forms for some of our models and ideally I would like to build them from json-schema. Is there a gem or the like which would allow me to export a model definition to json-schem…

---

## [Rails 3 generators](https://www.ruby-forum.com/t/rails-3-generators/190358)

<div class="topic-metadata">

**Author:** [@roa](https://www.ruby-forum.com/u/roa)\
**Replies:** 1\
**Last updated:** [June 18, 2010, 2:06pm UTC](https://www.ruby-forum.com/t/rails-3-generators/190358 "2010-06-18T14:06:26Z")

</div>

Hi, I’m having some problems running a self made generator. When I want to list the generators with: rails g, my generator shows up in the list. But when I want to run it, I get Could not find generator error. module…

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

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