# Rails

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

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

---

## [jQuery.post gets some code but the code isn't evaluated](https://www.ruby-forum.com/t/jquery-post-gets-some-code-but-the-code-isnt-evaluated/144518)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 3\
**Last updated:** [July 31, 2008, 11:33am UTC](https://www.ruby-forum.com/t/jquery-post-gets-some-code-but-the-code-isnt-evaluated/144518 "2008-07-31T11:33:09Z")

</div>

I’m calling one of my controller actions with this remote call: jQuery.post("/plans/\<%= @plan.id %\>/add\_learning\_objective?name=" + objective\_name) The action does its stuff and then falls through to a .js.rjs file th…

---

## [Couldn't find Photo with ID=index](https://www.ruby-forum.com/t/couldnt-find-photo-with-id-index/144595)

<div class="topic-metadata">

**Author:** [@mostafa\_badawi](https://www.ruby-forum.com/u/mostafa_badawi)\
**Replies:** 1\
**Last updated:** [July 31, 2008, 11:26am UTC](https://www.ruby-forum.com/t/couldnt-find-photo-with-id-index/144595 "2008-07-31T11:26:47Z")

</div>

Hi all, I need help in this problem. i have a model class named Photo, a controller Photos. when typing the URL http://localhost:3000/photos Rails calls the default index method. but when typing http://localhost:300…

---

## [Link\_to\_remote](https://www.ruby-forum.com/t/link-to-remote/144540)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 4\
**Last updated:** [July 31, 2008, 10:53am UTC](https://www.ruby-forum.com/t/link-to-remote/144540 "2008-07-31T10:53:11Z")

</div>

view: \<%= link\_to\_remote “Remove”, :url =\> { :controller =\> “auth\_user”, :action =\> :remove\_req }, :id =\> “post.requirement\_id” %\> controller: def remove\_req redirect\_to :action =\> :index end When I click on the l…

---

## [Top Online Culture site in NYC seeking two backend ROR Dev's](https://www.ruby-forum.com/t/top-online-culture-site-in-nyc-seeking-two-backend-ror-devs/144594)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [July 31, 2008, 9:58am UTC](https://www.ruby-forum.com/t/top-online-culture-site-in-nyc-seeking-two-backend-ror-devs/144594 "2008-07-31T09:58:58Z")

</div>

One of my top clients and an incredible place to work is seeking to expand their team and has retained me to secure two developers for staff positions paying 75-95k. Email me @ ryan \[at\] magnetagency.net or ryanbrogan…

---

## [Filtering one data set based on user action from another controller](https://www.ruby-forum.com/t/filtering-one-data-set-based-on-user-action-from-another-controller/144593)

<div class="topic-metadata">

**Author:** [@ryan](https://www.ruby-forum.com/u/ryan)\
**Replies:** 0\
**Last updated:** [July 31, 2008, 9:58am UTC](https://www.ruby-forum.com/t/filtering-one-data-set-based-on-user-action-from-another-controller/144593 "2008-07-31T09:58:58Z")

</div>

Hello, I am trying to filter the results of one controller based on the selection (not as a drop-down list) by the user resulting from a click from the results of another data set (anotherer controller). For example,…

---

## [Possible to add columns to a database table from a controller? (not from a migration)](https://www.ruby-forum.com/t/possible-to-add-columns-to-a-database-table-from-a-controller-not-from-a-migration/144551)

<div class="topic-metadata">

**Author:** [@mikebind](https://www.ruby-forum.com/u/mikebind)\
**Replies:** 7\
**Last updated:** [July 31, 2008, 9:58am UTC](https://www.ruby-forum.com/t/possible-to-add-columns-to-a-database-table-from-a-controller-not-from-a-migration/144551 "2008-07-31T09:58:23Z")

</div>

I am trying to figure out how to add columns to a database table from within a controller. I have a client who wants to be able to add their own attributes to a model from within the running application, so I don’t t…

---

## [Central authorization](https://www.ruby-forum.com/t/central-authorization/144591)

<div class="topic-metadata">

**Author:** [@lazx](https://www.ruby-forum.com/u/lazx)\
**Replies:** 0\
**Last updated:** [July 31, 2008, 9:56am UTC](https://www.ruby-forum.com/t/central-authorization/144591 "2008-07-31T09:56:37Z")

</div>

I am building a couple applications (rails, java, some other legacy apps) and would like to have centralized authorization. Authentication is handled through JA SIGs CAS (Central Authentication Service). Has anyone a…

---

## [Can't access model method in view](https://www.ruby-forum.com/t/cant-access-model-method-in-view/144585)

<div class="topic-metadata">

**Author:** [@hangingclowns](https://www.ruby-forum.com/u/hangingclowns)\
**Replies:** 1\
**Last updated:** [July 31, 2008, 9:11am UTC](https://www.ruby-forum.com/t/cant-access-model-method-in-view/144585 "2008-07-31T09:11:36Z")

</div>

In the console: act = Activity.find\_by\_id(37) =\> #\<Activity id: 37, created\_at: “2008-07-30 05:08:41”, updated\_at: “2008-07-30 05:08:41”, location\_id: 1, scheduled\_at: nil\> act.location =\> #\<Location id: 1, name…

---

## [Getting a a list of acts\_as\_tree items with hierarchy](https://www.ruby-forum.com/t/getting-a-a-list-of-acts-as-tree-items-with-hierarchy/144577)

<div class="topic-metadata">

**Author:** [@joshua-asem](https://www.ruby-forum.com/u/joshua-asem)\
**Replies:** 1\
**Last updated:** [July 31, 2008, 6:56am UTC](https://www.ruby-forum.com/t/getting-a-a-list-of-acts-as-tree-items-with-hierarchy/144577 "2008-07-31T06:56:26Z")

</div>

I’m using acts\_as\_tree to nest categories n-levels deep and am wondering if anyone out there in Ruby-land knows the best, least expensive way to start with top level categories and then loop recursively through each c…

---

## [Ssl\_requirement ajax call from non https to https](https://www.ruby-forum.com/t/ssl-requirement-ajax-call-from-non-https-to-https/144582)

<div class="topic-metadata">

**Author:** [@kineticac](https://www.ruby-forum.com/u/kineticac)\
**Replies:** 0\
**Last updated:** [July 31, 2008, 6:41am UTC](https://www.ruby-forum.com/t/ssl-requirement-ajax-call-from-non-https-to-https/144582 "2008-07-31T06:41:51Z")

</div>

I have a page that has nothing on it that needs to be secured by SSL, except when someone wants to hit an ajax request to login. I don’t want to secure every page, just so that when I render a partial that needs to be…

---

## [RE: Similar to yousendit application](https://www.ruby-forum.com/t/re-similar-to-yousendit-application/144375)

<div class="topic-metadata">

**Author:** [@celinehgl](https://www.ruby-forum.com/u/celinehgl)\
**Replies:** 1\
**Last updated:** [July 31, 2008, 6:33am UTC](https://www.ruby-forum.com/t/re-similar-to-yousendit-application/144375 "2008-07-31T06:33:39Z")

</div>

Hi all, i need some help on ruby on rails programming. Please do guide me as I am still new to ruby on rails. I need to do a application similar to yousendit.com. But i am stuck on how to go on. This is how my applic…

---

## [Find\_with\_ferret conditions?](https://www.ruby-forum.com/t/find-with-ferret-conditions/144517)

<div class="topic-metadata">

**Author:** [@Sean\_CSHess](https://www.ruby-forum.com/u/Sean_CSHess)\
**Replies:** 1\
**Last updated:** [July 31, 2008, 6:03am UTC](https://www.ruby-forum.com/t/find-with-ferret-conditions/144517 "2008-07-31T06:03:15Z")

</div>

Hello all, I’m trying to use acts\_as\_ferret to not only search for records, but to combine it with a filter function that filters those results by other things as well. http://pastie.textmate.org/244035 That gives …

---

## [Calling methods from an erb template?](https://www.ruby-forum.com/t/calling-methods-from-an-erb-template/144576)

<div class="topic-metadata">

**Author:** [@Axel\_Bock](https://www.ruby-forum.com/u/Axel_Bock)\
**Replies:** 1\
**Last updated:** [July 31, 2008, 5:23am UTC](https://www.ruby-forum.com/t/calling-methods-from-an-erb-template/144576 "2008-07-31T05:23:25Z")

</div>

Hi, I am quite new to rails and ruby, and I have a little issue here: I want to write a helper method which generates some erb code, which I want to call and then eval from a template. This is best illustrated with a…

---

## [Work from home and get payout daily](https://www.ruby-forum.com/t/work-from-home-and-get-payout-daily/144578)

<div class="topic-metadata">

**Author:** [@prince](https://www.ruby-forum.com/u/prince)\
**Replies:** 0\
**Last updated:** [July 31, 2008, 5:17am UTC](https://www.ruby-forum.com/t/work-from-home-and-get-payout-daily/144578 "2008-07-31T05:17:00Z")

</div>

Retired? Unemployed? Laid-Off, or Insufficient Income? Start your own Internet business from home. Build residual and leveraged income to create real wealth. World Wide Income System that REALLY WORKS! All it needs i…

---

## [No db connection in console](https://www.ruby-forum.com/t/no-db-connection-in-console/144488)

<div class="topic-metadata">

**Author:** [@joeyboy](https://www.ruby-forum.com/u/joeyboy)\
**Replies:** 15\
**Last updated:** [July 31, 2008, 5:06am UTC](https://www.ruby-forum.com/t/no-db-connection-in-console/144488 "2008-07-31T05:06:28Z")

</div>

hi! i created a db with one table “users” with one record, then run ruby script/console User.find(:first) returns : “access denied for root@localhost” why is that? i created the table and record inside mysql thr…

---

## [How do I add an action to a controller?](https://www.ruby-forum.com/t/how-do-i-add-an-action-to-a-controller/144487)

<div class="topic-metadata">

**Author:** [@df-sean](https://www.ruby-forum.com/u/df-sean)\
**Replies:** 3\
**Last updated:** [July 31, 2008, 5:06am UTC](https://www.ruby-forum.com/t/how-do-i-add-an-action-to-a-controller/144487 "2008-07-31T05:06:28Z")

</div>

It looks like manually modifying the controller file does not work.

---

## [Multiple asset host](https://www.ruby-forum.com/t/multiple-asset-host/144486)

<div class="topic-metadata">

**Author:** [@shuaib85](https://www.ruby-forum.com/u/shuaib85)\
**Replies:** 1\
**Last updated:** [July 31, 2008, 5:06am UTC](https://www.ruby-forum.com/t/multiple-asset-host/144486 "2008-07-31T05:06:28Z")

</div>

Dear, I was reading on multiple assets host and i want to implement it however, i want to do it on my localhost. so what is the link supposed to be. Thanks

---

## [Encrypt ROR code](https://www.ruby-forum.com/t/encrypt-ror-code/144322)

<div class="topic-metadata">

**Author:** [@shuaib85](https://www.ruby-forum.com/u/shuaib85)\
**Replies:** 10\
**Last updated:** [July 31, 2008, 5:06am UTC](https://www.ruby-forum.com/t/encrypt-ror-code/144322 "2008-07-31T05:06:27Z")

</div>

Dear all This is the scenario I want to give my code to someone which he will then run it on his machine offline. But I do not want this guy to see the code. Is there anyway that I can encrypt the code and run it on…

---

## [Pull full date from group\_by](https://www.ruby-forum.com/t/pull-full-date-from-group-by/144405)

<div class="topic-metadata">

**Author:** [@jackson](https://www.ruby-forum.com/u/jackson)\
**Replies:** 4\
**Last updated:** [July 31, 2008, 5:06am UTC](https://www.ruby-forum.com/t/pull-full-date-from-group-by/144405 "2008-07-31T05:06:27Z")

</div>

Hello there, I started with to\_set.classify and have the find function grouping by day. I then did a group\_by function to the same effect both in the model and the view. They both work wonderfully except I need to p…

---

## [Any issues with Redhat?](https://www.ruby-forum.com/t/any-issues-with-redhat/144475)

<div class="topic-metadata">

**Author:** [@MW\_Administrator](https://www.ruby-forum.com/u/MW_Administrator)\
**Replies:** 20\
**Last updated:** [July 31, 2008, 2:52am UTC](https://www.ruby-forum.com/t/any-issues-with-redhat/144475 "2008-07-31T02:52:33Z")

</div>

Hi - We’re considering using Redhat as our platform due to the support our host can offer. We’re curious of opinions regarding it. Such any issues running Apache, Ngix, Mongrel, Ruby, Rails, MySQL, etc… We currentl…

---

## [Redmine on Dream Host](https://www.ruby-forum.com/t/redmine-on-dream-host/132564)

<div class="topic-metadata">

**Author:** [@sidon](https://www.ruby-forum.com/u/sidon)\
**Replies:** 7\
**Last updated:** [July 31, 2008, 2:20am UTC](https://www.ruby-forum.com/t/redmine-on-dream-host/132564 "2008-07-31T02:20:25Z")

</div>

Hi, I instaled redmine on Dream Host, all seems ok but, but the “look” of the site is wrong. this is the look of redmine: www.redmine.org My site works but… see: www.rause.com.br/redmine I following step by step the…

---

## [Postfix and rails (ubuntu)](https://www.ruby-forum.com/t/postfix-and-rails-ubuntu/144565)

<div class="topic-metadata">

**Author:** [@kopf1988](https://www.ruby-forum.com/u/kopf1988)\
**Replies:** 3\
**Last updated:** [July 31, 2008, 12:45am UTC](https://www.ruby-forum.com/t/postfix-and-rails-ubuntu/144565 "2008-07-31T00:45:43Z")

</div>

I’ve got postfix up and running on my rails system (unsure if it’s correct), but Rails doesn’t seem to talk to it at all. I’ve setup: ActionMailer::Base.delivery\_method = :sendmail ActionMailer::Base.smtp\_settings = …

---

## [Datetime field inserted is NULL](https://www.ruby-forum.com/t/datetime-field-inserted-is-null/144532)

<div class="topic-metadata">

**Author:** [@hangingclowns](https://www.ruby-forum.com/u/hangingclowns)\
**Replies:** 3\
**Last updated:** [July 31, 2008, 12:01am UTC](https://www.ruby-forum.com/t/datetime-field-inserted-is-null/144532 "2008-07-31T00:01:15Z")

</div>

This is pretty baffling. I have the following model object: create\_table “activities”, :force =\> true do |t| t.integer “user\_id”, :limit =\> 11 t.datetime “created\_at” t.datetime “updated\_at” t.integer “locatio…

---

## [Ajax Effect.Scale](https://www.ruby-forum.com/t/ajax-effect-scale/144564)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 11:55pm UTC](https://www.ruby-forum.com/t/ajax-effect-scale/144564 "2008-07-30T23:55:21Z")

</div>

+Larger Is it possible to set a maximum width? Thanks!

---

## [Error loading fixtures with classes that set\_table\_name](https://www.ruby-forum.com/t/error-loading-fixtures-with-classes-that-set-table-name/140946)

<div class="topic-metadata">

**Author:** [@bcm](https://www.ruby-forum.com/u/bcm)\
**Replies:** 2\
**Last updated:** [July 30, 2008, 11:39pm UTC](https://www.ruby-forum.com/t/error-loading-fixtures-with-classes-that-set-table-name/140946 "2008-07-30T23:39:04Z")

</div>

Hi all, I just hit a big wall involving a legacy database. I’ve got an active record class called “School” that uses “set\_table\_name ‘old\_school’” to map to a legacy database table: class School \< ActiveRecord::Base …

---

## [Getting value of collection\_select](https://www.ruby-forum.com/t/getting-value-of-collection-select/144563)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 11:21pm UTC](https://www.ruby-forum.com/t/getting-value-of-collection-select/144563 "2008-07-30T23:21:24Z")

</div>

\<%= collection\_select(:post, :id, @posts, :id, :title, options ={:prompt =\> “-Select categories-”}, :class=\>“category\_dropdown\_list”) %\> Hi, how would I send the value of the selected item in the collection\_select? I…

---

## [Sending input value to controller](https://www.ruby-forum.com/t/sending-input-value-to-controller/144562)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 0\
**Last updated:** [July 30, 2008, 10:54pm UTC](https://www.ruby-forum.com/t/sending-input-value-to-controller/144562 "2008-07-30T22:54:30Z")

</div>

\<%= form.text\_field :title, :value =\> params\[:title\] %\> That is my text field. I need a link\_to\_remote to pass :with =\> the value of the text\_field. How do I do this? Thanks!

---

## [Problems learning rake db:migrate](https://www.ruby-forum.com/t/problems-learning-rake-db-migrate/144542)

<div class="topic-metadata">

**Author:** [@A\_Love\_of\_Surf](https://www.ruby-forum.com/u/A_Love_of_Surf)\
**Replies:** 3\
**Last updated:** [July 30, 2008, 10:53pm UTC](https://www.ruby-forum.com/t/problems-learning-rake-db-migrate/144542 "2008-07-30T22:53:25Z")

</div>

i added , force =\> true to the migration file which was created when i generated the model. can anyone tell me what is going wrong here? ####################################### MIGRATION: ###########################…

---

## [Datetime field inserted is NULL when value is assigned to model object](https://www.ruby-forum.com/t/datetime-field-inserted-is-null-when-value-is-assigned-to-model-object/144548)

<div class="topic-metadata">

**Author:** [@hangingclowns](https://www.ruby-forum.com/u/hangingclowns)\
**Replies:** 1\
**Last updated:** [July 30, 2008, 9:19pm UTC](https://www.ruby-forum.com/t/datetime-field-inserted-is-null-when-value-is-assigned-to-model-object/144548 "2008-07-30T21:19:07Z")

</div>

This is pretty baffling. I have the following model object: create\_table “activities”, :force =\> true do |t| t.integer “user\_id”, :limit =\> 11 t.datetime “created\_at” t.datetime “updated\_at” t.integer “locatio…

---

## [Multiple databases questions (newbie)](https://www.ruby-forum.com/t/multiple-databases-questions-newbie/144443)

<div class="topic-metadata">

**Author:** [@andrewg77](https://www.ruby-forum.com/u/andrewg77)\
**Replies:** 3\
**Last updated:** [July 30, 2008, 9:19pm UTC](https://www.ruby-forum.com/t/multiple-databases-questions-newbie/144443 "2008-07-30T21:19:02Z")

</div>

Hi all, I am new to programming and am trying to create my first ROR application from books and online posts. I have come to a challenge that i don’t know how to solve. Any help is really appreciated… I need to hav…

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

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