# Rails

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

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

---

## [URL tracking](https://www.ruby-forum.com/t/url-tracking/138017)

<div class="topic-metadata">

**Author:** [@ripan](https://www.ruby-forum.com/u/ripan)\
**Replies:** 1\
**Last updated:** [May 20, 2008, 6:17am UTC](https://www.ruby-forum.com/t/url-tracking/138017 "2008-05-20T06:17:58Z")

</div>

Hi guys… I want to keep track all urls of my rails application. Suppose i m not logged in… i am clicking the links…after logging in i should come to that page which i viewed last time (in not logged in mode). can a…

---

## [Help with session variables in firefox](https://www.ruby-forum.com/t/help-with-session-variables-in-firefox/138028)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 1\
**Last updated:** [May 20, 2008, 6:16am UTC](https://www.ruby-forum.com/t/help-with-session-variables-in-firefox/138028 "2008-05-20T06:16:47Z")

</div>

I have an action “new” which has a before\_filter to reset the session\[:count\] variable to 1. I then render this variable in the view and it is as expected. in the view their is an link\_to\_remote which calls the method …

---

## [Newbie](https://www.ruby-forum.com/t/newbie/138049)

<div class="topic-metadata">

**Author:** [@fred](https://www.ruby-forum.com/u/fred)\
**Replies:** 3\
**Last updated:** [May 20, 2008, 6:10am UTC](https://www.ruby-forum.com/t/newbie/138049 "2008-05-20T06:10:21Z")

</div>

Hello New to ruby :slight\_smile: i have to current code : xml.Worksheet ‘ss:Name’ =\> ‘Sheet1’ do xml.Table do # Header xml.Row do for column in @model.content\_columns do xml.Cell d…

---

## [Ruby-net-ldap auth with CA certificate](https://www.ruby-forum.com/t/ruby-net-ldap-auth-with-ca-certificate/138091)

<div class="topic-metadata">

**Author:** [@michael\_teter](https://www.ruby-forum.com/u/michael_teter)\
**Replies:** 0\
**Last updated:** [May 20, 2008, 5:59am UTC](https://www.ruby-forum.com/t/ruby-net-ldap-auth-with-ca-certificate/138091 "2008-05-20T05:59:48Z")

</div>

Howdy. I’ve got authentication working on a test ActiveDirectory server, but now I need to adapt my routine to work with a client’s system. They require AD connections to use their CA certificate. Does anyone have a …

---

## [Catching a Shopify WebHooks in a Rails App](https://www.ruby-forum.com/t/catching-a-shopify-webhooks-in-a-rails-app/138090)

<div class="topic-metadata">

**Author:** [@Will\_Merrell](https://www.ruby-forum.com/u/Will_Merrell)\
**Replies:** 0\
**Last updated:** [May 20, 2008, 4:39am UTC](https://www.ruby-forum.com/t/catching-a-shopify-webhooks-in-a-rails-app/138090 "2008-05-20T04:39:40Z")

</div>

I have a rails app that sends the user over to Shopify to process the purchase of the product. I want to use their webhooks feature to track when those products have been purchased. So my question is: Does anyone know…

---

## [Flex Rest Security](https://www.ruby-forum.com/t/flex-rest-security/138088)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 0\
**Last updated:** [May 20, 2008, 4:02am UTC](https://www.ruby-forum.com/t/flex-rest-security/138088 "2008-05-20T04:02:13Z")

</div>

Hello, I am trying to grasp how people have best solved the integration of FLEX Rest services and restful\_authentication. Since FLEX is stateful, how are you securing the access to the web services? For example, o…

---

## [Squeegy Fleximage Routing](https://www.ruby-forum.com/t/squeegy-fleximage-routing/137668)

<div class="topic-metadata">

**Author:** [@joel](https://www.ruby-forum.com/u/joel)\
**Replies:** 9\
**Last updated:** [May 20, 2008, 3:47am UTC](https://www.ruby-forum.com/t/squeegy-fleximage-routing/137668 "2008-05-20T03:47:35Z")

</div>

Hello people, I’m using squeegy fleximage for my site right now and having some difficulty to achieve some things. Updates photos are saved in created at date generated fom like : ’ /images/2008/05/14/22.png ’ . Howev…

---

## [Routing issue with rails](https://www.ruby-forum.com/t/routing-issue-with-rails/138068)

<div class="topic-metadata">

**Author:** [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Replies:** 3\
**Last updated:** [May 20, 2008, 2:01am UTC](https://www.ruby-forum.com/t/routing-issue-with-rails/138068 "2008-05-20T02:01:17Z")

</div>

I have following routes: map.resources :users ruby script/console rs = ActionController::Routing::Routes rs.recognize\_path(’/users/2’) =\> {:controller=\>“users”, :action=\>“2”} The output is not correct. However…

---

## [Is this possible with Ruby on Rails?](https://www.ruby-forum.com/t/is-this-possible-with-ruby-on-rails/137986)

<div class="topic-metadata">

**Author:** [@FurrNak](https://www.ruby-forum.com/u/FurrNak)\
**Replies:** 3\
**Last updated:** [May 20, 2008, 1:47am UTC](https://www.ruby-forum.com/t/is-this-possible-with-ruby-on-rails/137986 "2008-05-20T01:47:02Z")

</div>

Hi All, I wonder if you could help me, I have a project for a web site which will allow users to log in, complete a questionnaire and then submit it. It will have a MySQL DB to store user details and data etc… all s…

---

## ["Ajax is not defined" problem](https://www.ruby-forum.com/t/ajax-is-not-defined-problem/138073)

<div class="topic-metadata">

**Author:** [@gringo](https://www.ruby-forum.com/u/gringo)\
**Replies:** 1\
**Last updated:** [May 20, 2008, 1:40am UTC](https://www.ruby-forum.com/t/ajax-is-not-defined-problem/138073 "2008-05-20T01:40:00Z")

</div>

Hello, I want to call Ajax.Request from my javascript function defined in “/ javascripts/application.js” but I still get the same error on my firebug console: “Ajax is not defined”. As I know Ajax class is defined in…

---

## [Action\_mailer settings for multiple sites](https://www.ruby-forum.com/t/action-mailer-settings-for-multiple-sites/138078)

<div class="topic-metadata">

**Author:** [@Kevin\_Wu](https://www.ruby-forum.com/u/Kevin_Wu)\
**Replies:** 0\
**Last updated:** [May 20, 2008, 1:12am UTC](https://www.ruby-forum.com/t/action-mailer-settings-for-multiple-sites/138078 "2008-05-20T01:12:28Z")

</div>

Hello people I have an app that I deploy to multiple sites. In this app, I send out email notifications. In my actionmailer I have ActionMailer::Base.smtp\_settings = { :address =\> ‘smtp.\[domain\]’, :port =\> 25, :do…

---

## [Attach more than one image to record using fleximage](https://www.ruby-forum.com/t/attach-more-than-one-image-to-record-using-fleximage/138044)

<div class="topic-metadata">

**Author:** [@joel](https://www.ruby-forum.com/u/joel)\
**Replies:** 2\
**Last updated:** [May 20, 2008, 12:59am UTC](https://www.ruby-forum.com/t/attach-more-than-one-image-to-record-using-fleximage/138044 "2008-05-20T00:59:35Z")

</div>

Hello people, just wanted to know if it was possible to attach two different images to a record using Squeegy Fleximage plugin. If yes, how should the rendering of these files be achieved ? Best Regards, :wink: Joe…

---

## [X is not a number error?](https://www.ruby-forum.com/t/x-is-not-a-number-error/138072)

<div class="topic-metadata">

**Author:** [@mwalsh](https://www.ruby-forum.com/u/mwalsh)\
**Replies:** 2\
**Last updated:** [May 20, 2008, 12:30am UTC](https://www.ruby-forum.com/t/x-is-not-a-number-error/138072 "2008-05-20T00:30:16Z")

</div>

I may be overlooking something really obvious here but I’m not getting it. I have a Category model. Categories can have sub categories and parent categories, but when a category doesn’t have a parent category, its “pa…

---

## [Populating dropdowns REST-style](https://www.ruby-forum.com/t/populating-dropdowns-rest-style/138053)

<div class="topic-metadata">

**Author:** [@ahead](https://www.ruby-forum.com/u/ahead)\
**Replies:** 1\
**Last updated:** [May 20, 2008, 12:24am UTC](https://www.ruby-forum.com/t/populating-dropdowns-rest-style/138053 "2008-05-20T00:24:21Z")

</div>

Resource A and B are nested. In the form for C, I need to populate a dropdown of B:s depending on the value of A. Trying to be RESTful, my approach is to have an onchange-handler on the A dropdown which calls the inde…

---

## [Don't save fixtures into database](https://www.ruby-forum.com/t/dont-save-fixtures-into-database/137979)

<div class="topic-metadata">

**Author:** [@mr\_tibs](https://www.ruby-forum.com/u/mr_tibs)\
**Replies:** 7\
**Last updated:** [May 20, 2008, 12:12am UTC](https://www.ruby-forum.com/t/dont-save-fixtures-into-database/137979 "2008-05-20T00:12:38Z")

</div>

Hi, I’m using RSpec on Rails and it seems that my fixtures are saved into the database. I don’t want that. Does the fixtures call take any parameters to don’t commit the examples to the database? I can’t find the doc…

---

## [Inching towards a working 1.1.6 app](https://www.ruby-forum.com/t/inching-towards-a-working-1-1-6-app/137715)

<div class="topic-metadata">

**Author:** [@amanda](https://www.ruby-forum.com/u/amanda)\
**Replies:** 3\
**Last updated:** [May 19, 2008, 11:46pm UTC](https://www.ruby-forum.com/t/inching-towards-a-working-1-1-6-app/137715 "2008-05-19T23:46:16Z")

</div>

I have an old app that I’m trying to get running on Dreamhost. I finally sorted out that it was built on rails 1.1.6 (did I mention that it is old? it is old.) and went about specifying 1.1.6 in environment.rb: RAILS…

---

## [Instance Var Scope in Modules?](https://www.ruby-forum.com/t/instance-var-scope-in-modules/138052)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 2\
**Last updated:** [May 19, 2008, 11:32pm UTC](https://www.ruby-forum.com/t/instance-var-scope-in-modules/138052 "2008-05-19T23:32:47Z")

</div>

I’ve created a module to include in a Controller. Basically it works, but I am expecting methods in the module to have access to instance variables from the controller, and that appears to not be the case. Yet, a simp…

---

## [Sortable List with RJS](https://www.ruby-forum.com/t/sortable-list-with-rjs/137939)

<div class="topic-metadata">

**Author:** [@daz](https://www.ruby-forum.com/u/daz)\
**Replies:** 2\
**Last updated:** [May 19, 2008, 11:24pm UTC](https://www.ruby-forum.com/t/sortable-list-with-rjs/137939 "2008-05-19T23:24:33Z")

</div>

Hi, I want to use rjs to make a sortable list. If I put this code in the index.html.erb view, it works: \<%= sortable\_element :people\_list, :url =\> {:action =\> “sort” }, :tree =\> true %\> I thought that I should be ab…

---

## [How to unload fixtures data?](https://www.ruby-forum.com/t/how-to-unload-fixtures-data/196684)

<div class="topic-metadata">

**Author:** [@Carson](https://www.ruby-forum.com/u/Carson)\
**Replies:** 2\
**Last updated:** [May 19, 2008, 11:20pm UTC](https://www.ruby-forum.com/t/how-to-unload-fixtures-data/196684 "2008-05-19T23:20:27Z")

</div>

I’ve tried to unload fixture data by rolling back db:migration and rolling forward, then reloading fixtures with rake db:fixtures:load. Strangely, the previous fixture data loads, not the updated, error- free fixture …

---

## [Voucher, promotional code system](https://www.ruby-forum.com/t/voucher-promotional-code-system/138060)

<div class="topic-metadata">

**Author:** [@joel](https://www.ruby-forum.com/u/joel)\
**Replies:** 0\
**Last updated:** [May 19, 2008, 10:34pm UTC](https://www.ruby-forum.com/t/voucher-promotional-code-system/138060 "2008-05-19T22:34:34Z")

</div>

Hello, Does anyone know an example code implemented in RoR for voucher codes or promotional codes systems in rails. Regards, Joel

---

## [How to unload fixtures data?](https://www.ruby-forum.com/t/how-to-unload-fixtures-data/138057)

<div class="topic-metadata">

**Author:** [@Carson](https://www.ruby-forum.com/u/Carson)\
**Replies:** 0\
**Last updated:** [May 19, 2008, 10:28pm UTC](https://www.ruby-forum.com/t/how-to-unload-fixtures-data/138057 "2008-05-19T22:28:06Z")

</div>

I’ve tried to unload fixture data by rolling back db:migration and rolling forward, then reloading fixtures with rake db:fixtures:load. Strangely, the previous fixture data loads, not the updated, error- free fixture …

---

## [TimeRange 'this weekend'](https://www.ruby-forum.com/t/timerange-this-weekend/138032)

<div class="topic-metadata">

**Author:** [@Laughlink](https://www.ruby-forum.com/u/Laughlink)\
**Replies:** 4\
**Last updated:** [May 19, 2008, 10:25pm UTC](https://www.ruby-forum.com/t/timerange-this-weekend/138032 "2008-05-19T22:25:53Z")

</div>

How would one calculate ‘this weekend’? In my event model I have: def self.dates\_for\_time\_range(range) case range when ‘today’ then \[Date.today, Date.today\] when ‘tomorrow’ then \[Date.tomorrow, Date.tomorrow\] when …

---

## [Rails experts wanted](https://www.ruby-forum.com/t/rails-experts-wanted/138055)

<div class="topic-metadata">

**Author:** [@Jim\_RSWilson](https://www.ruby-forum.com/u/Jim_RSWilson)\
**Replies:** 0\
**Last updated:** [May 19, 2008, 9:56pm UTC](https://www.ruby-forum.com/t/rails-experts-wanted/138055 "2008-05-19T21:56:11Z")

</div>

Hi all, Ruby on Rails is a great project and a growing niche. As it becomes even more popular, there will be increasing demand for experts in the field. I am compiling a contact list of RoR experts who may be intere…

---

## [Text\_field\_with\_auto\_complete](https://www.ruby-forum.com/t/text-field-with-auto-complete/138043)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 1\
**Last updated:** [May 19, 2008, 9:54pm UTC](https://www.ruby-forum.com/t/text-field-with-auto-complete/138043 "2008-05-19T21:54:25Z")

</div>

I am using the auto\_complete functionality \<%= text\_field\_with\_auto\_complete :category, :name … %\> after the user select an item , I need to get the ID of the selected item (category\[:id\]), is there any way to do it ?…

---

## [Loading a yaml File](https://www.ruby-forum.com/t/loading-a-yaml-file/138045)

<div class="topic-metadata">

**Author:** [@jef](https://www.ruby-forum.com/u/jef)\
**Replies:** 1\
**Last updated:** [May 19, 2008, 9:13pm UTC](https://www.ruby-forum.com/t/loading-a-yaml-file/138045 "2008-05-19T21:13:04Z")

</div>

Hi there. I have a yaml file like this: first\_name: “paul” age: 23 first\_name: “peter” age: 26 first\_name: “luc” age: 40 I load my yaml file in a variable called data: data = YAML.load\_file(“my\_file.yaml”) I onl…

---

## [Passing params FROM Views TO Controllers -- using form\_for, form\_tag/select\_tag](https://www.ruby-forum.com/t/passing-params-from-views-to-controllers-using-form-for-form-tag-select-tag/138048)

<div class="topic-metadata">

**Author:** [@rgtorre](https://www.ruby-forum.com/u/rgtorre)\
**Replies:** 1\
**Last updated:** [May 19, 2008, 8:38pm UTC](https://www.ruby-forum.com/t/passing-params-from-views-to-controllers-using-form-for-form-tag-select-tag/138048 "2008-05-19T20:38:56Z")

</div>

Hello, I have 3 methods in a controller (index, choose\_table and profile). The index method simply displays a form\_for template where the user can choose a database name to use and pass the information to the action …

---

## [Mod\_rails kills my Apache](https://www.ruby-forum.com/t/mod-rails-kills-my-apache/137929)

<div class="topic-metadata">

**Author:** [@tuktuk](https://www.ruby-forum.com/u/tuktuk)\
**Replies:** 5\
**Last updated:** [May 19, 2008, 7:42pm UTC](https://www.ruby-forum.com/t/mod-rails-kills-my-apache/137929 "2008-05-19T19:42:07Z")

</div>

I have not been so lucky in my experiments with the new mod\_rails… I’ve installed it on a server previously running mongrel clusters. I followed the instructions to the letter. The server is a FreeBSD 7.0 Apache is v…

---

## [ActiveRecord Basics Help](https://www.ruby-forum.com/t/activerecord-basics-help/138024)

<div class="topic-metadata">

**Author:** [@newbie](https://www.ruby-forum.com/u/newbie)\
**Replies:** 7\
**Last updated:** [May 19, 2008, 6:58pm UTC](https://www.ruby-forum.com/t/activerecord-basics-help/138024 "2008-05-19T18:58:07Z")

</div>

I’m still learning all the cool things about ActiveRecord. I’m currently stuck on figuring out how how to make this SQL query into something that uses some rails magic. Current situation is I have two tables Entries …

---

## [RailsConf Portland | Anybody has a spare bed?](https://www.ruby-forum.com/t/railsconf-portland-anybody-has-a-spare-bed/138041)

<div class="topic-metadata">

**Author:** [@ajay](https://www.ruby-forum.com/u/ajay)\
**Replies:** 1\
**Last updated:** [May 19, 2008, 6:56pm UTC](https://www.ruby-forum.com/t/railsconf-portland-anybody-has-a-spare-bed/138041 "2008-05-19T18:56:22Z")

</div>

Hello I forgot to book a room!!! I would be making the hike up from San Francisco. Anybody has a spare bed in their room to share? AJ

---

## [Multiline input](https://www.ruby-forum.com/t/multiline-input/138014)

<div class="topic-metadata">

**Author:** [@Prasanna\_kumar\_N](https://www.ruby-forum.com/u/Prasanna_kumar_N)\
**Replies:** 2\
**Last updated:** [May 19, 2008, 6:27pm UTC](https://www.ruby-forum.com/t/multiline-input/138014 "2008-05-19T18:27:13Z")

</div>

Hi Supposing i have a table Employees as follows id | Name | Age | Salary | and use scaffold while generating model, view and controller by the command. ruby script/generate scaffold Employee When I go to the new e…

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

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