[Rails] MapServer setup with rails in ubuntu 12.04

2013-05-20 Thread Arv
Hi i have one rails application in which i need to setup the mapserver i have added the gem https://github.com/sourcepole/ruby_mapscript but while running the command require rubygems require ruby_mapscript include Mapscript it use to tell me LoadError (cannot load such file -- mapscript):

[Rails] Re: MapServer setup with rails in ubuntu 12.04

2013-05-20 Thread 김성식
just add this to the Gemfile gem ruby_mapscript and execute bundle install. Then, You don't need to require it manually When the rails application start, it will require it automatically. 2013년 5월 20일 월요일 오후 4시 22분 34초 UTC+9, Arvind Vyas 님의 말: Hi i have one rails application in which

Re: [Rails] Re: MapServer setup with rails in ubuntu 12.04

2013-05-20 Thread Arvind Vyas
yes i have added it in my gem list inside the rvm , i am working with rails 2.3.5 so i dont have any bundle that what i can not do bundle install. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop

Re: [Rails] Re: MapServer setup with rails in ubuntu 12.04

2013-05-20 Thread 김성식
Even if you add the gem to your system gem path, a rails application doesn't use it. We have to add it to a Gemfile. You can find the Gemfile at the root directory of your rails application. make sure install bundler, before you hit the bundle install. execute this to install bundler gem install

Re: [Rails] Re: MapServer setup with rails in ubuntu 12.04

2013-05-20 Thread Arvind Vyas
sorry , but it is rails2 application and as i am working since 1 year i did not see any Gemfile on this , my all other gem are working fine but getting problem with this gem only , i do not know weather it has any relation with mapserver or not , because i do not have a mapserver Thanks On Mon,

Re: [Rails] Re: MapServer setup with rails in ubuntu 12.04

2013-05-20 Thread 김성식
Sorry, Rails2 must be somthing different from 3 or 4. I looked into the ruby_mapscript gem. I ran the test.. then failed. The gem might be broken. 2013/5/20 Arvind Vyas arvindvya...@gmail.com sorry , but it is rails2 application and as i am working since 1 year i did not see any Gemfile on

Re: [Rails] Re: MapServer setup with rails in ubuntu 12.04

2013-05-20 Thread Arvind Vyas
Thanks On Mon, May 20, 2013 at 2:01 PM, 김성식 kssmi...@gmail.com wrote: Sorry, Rails2 must be somthing different from 3 or 4. I looked into the ruby_mapscript gem. I ran the test.. then failed. The gem might be broken. 2013/5/20 Arvind Vyas arvindvya...@gmail.com sorry , but it is

Re: [Rails] Active Admin with Ajax call

2013-05-20 Thread Bruno Sapienza
Walter I already builded an entire site and also an admin panel with RnR, (with really simple ajax), and i'm doing great stuff with active admin in this current project, the only problem is the ajax. As you said, these tools enforce their own logic on top of Rails, and this is my problem,

[Rails] Re: Make a column data unique for each user_id

2013-05-20 Thread Matt Jones
On Saturday, 18 May 2013 11:14:35 UTC-4, Denny Mueller wrote: This is my setup. I have a table user where all user with password and so on are set. The customer table has some customer related data. The user_id is the foreign key to relate the customers to the user. On of the column in

Re: [Rails] Active Admin with Ajax call

2013-05-20 Thread Walter Lee Davis
On May 20, 2013, at 8:40 AM, Bruno Sapienza wrote: Walter I already builded an entire site and also an admin panel with RnR, (with really simple ajax), and i'm doing great stuff with active admin in this current project, the only problem is the ajax. As you said, these tools enforce

[Rails] Re: acts_as_list crashes with non-numeric id

2013-05-20 Thread Robert Walker
Greg Willits wrote in post #1109539: Seems to me acts_as_list has a bug -- I have data where the row id is a random alphaNumeric, not a simple integer. Using acts_as_list with a scope of a related model id, acts_as_list crashes the app due to a faulty query in MySQL something like this:

Re: [Rails] Active Admin with Ajax call

2013-05-20 Thread Walter Lee Davis
On May 20, 2013, at 8:40 AM, Bruno Sapienza wrote: Walter I already builded an entire site and also an admin panel with RnR, (with really simple ajax), and i'm doing great stuff with active admin in this current project, the only problem is the ajax. As you said, these tools enforce

[Rails] db connection returns stale values

2013-05-20 Thread tom_302
Hello, I'm working on a rails 3 app for a legacy oracle db. I have a controller that saves object graphs (accepts_nested_attributes_for) but I noticed the post-update JSON response still contains the pre-update values. After some debugging, it appears the database connection is returning

[Rails] Re: acts_as_list crashes with non-numeric id

2013-05-20 Thread Frederick Cheung
On Monday, May 20, 2013 2:19:28 PM UTC+1, Ruby-Forum.com User wrote: Greg Willits wrote in post #1109539: Seems to me acts_as_list has a bug -- I have data where the row id is a random alphaNumeric, not a simple integer. Using acts_as_list with a scope of a related model id,

[Rails] Help needed - No route matches [GET] /draw/load

2013-05-20 Thread Rochit Sen
Hi All, I am new to Rails. I installed rails 3.2.13. Have Ruby ver. 1.9.2p20. I created a very simple rails example as follows. 1. Created rails app called chart 2. Generated a controller called - draw that has the following lines of code. It has a action called load which has no code in it.

Re: [Rails] Re: Advice needed --- Best way to get mysql2 gem installed to interact with Mysql Database?

2013-05-20 Thread dave
Hassan, My IRC/#rvm session today echoes your advice *to use macports/mysql instead of rvm*. As rvm is just a conduit where the install/compile of gems is outside its jurisdiction regarding correctness. I suggested in the irc/#rvm session that rvm's website be corrected regarding their mysql

Re: [Rails] Re: Advice needed --- Best way to get mysql2 gem installed to interact with Mysql Database?

2013-05-20 Thread Hassan Schroeder
On Mon, May 20, 2013 at 10:29 AM, dave bone_da...@mac.com wrote: My IRC/#rvm session today echoes your advice to use macports/mysql instead of rvm. As rvm is just a conduit where the install/compile of gems is outside its jurisdiction regarding correctness. I suggested in the irc/#rvm

[Rails] Re: Help needed - No route matches [GET] /draw/load

2013-05-20 Thread mike
On Monday, May 20, 2013 1:26:20 PM UTC-4, Ruby-Forum.com User wrote: Hi All, I am new to Rails. I installed rails 3.2.13. Have Ruby ver. 1.9.2p20. I created a very simple rails example as follows. 1. Created rails app called chart 2. Generated a controller called - draw that has the

[Rails] Re: Help needed - No route matches [GET] /draw/load

2013-05-20 Thread Rochit Sen
mike wrote in post #1109637: On Monday, May 20, 2013 1:26:20 PM UTC-4, Ruby-Forum.com User wrote: def load You need to configure the route in the config/routes.db file. In this case, get 'draw#load' Hi Mike. Thanks for response. So in this case i would need to do addition in

Re: [Rails] Re: Help needed - No route matches [GET] /draw/load

2013-05-20 Thread Hassan Schroeder
On Mon, May 20, 2013 at 12:20 PM, Rochit Sen li...@ruby-forum.com wrote: So in this case i would need to do addition in Routes.rb for each controller/action.? Is there no rule that can be set In routes.rb? Recommended reading: http://guides.rubyonrails.org/routing.html -- Hassan Schroeder

Re: [Rails] Re: Help needed - No route matches [GET] /draw/load

2013-05-20 Thread Colin Law
On 20 May 2013 20:44, Hassan Schroeder hassan.schroe...@gmail.com wrote: On Mon, May 20, 2013 at 12:20 PM, Rochit Sen li...@ruby-forum.com wrote: So in this case i would need to do addition in Routes.rb for each controller/action.? Is there no rule that can be set In routes.rb? Recommended

[Rails] activerecord to write to database

2013-05-20 Thread Marcio Pugina
I created a db with rake migrate and added to columns, symbol and cur_price in a table call Financials. I want to use activererecord from a script to write the data from the script to the database. Could someone please provide an example. Model: class Financials ActiveRecord::Base

[Rails] undefined method `stringify_keys' for #String:0x007fe8a3ba0a48

2013-05-20 Thread John Merlino
From my understanding, you can pass a block to the link_to helper, but the following code gives me an error undefined method `stringify_keys' for #String:0x007fe8a3ba0a48. = link_to(One time Payment with Paypal or Credit Card, @order.payment_payment_standard_url(new_order_url(invoice:

Re: [Rails] activerecord to write to database

2013-05-20 Thread Hassan Schroeder
On Mon, May 20, 2013 at 3:36 PM, Marcio Pugina li...@ruby-forum.com wrote: I created a db with rake migrate and added to columns, symbol and cur_price in a table call Financials. I want to use activererecord from a script to write the data from the script to the database. Could someone please

[Rails] Re: acts_as_list crashes with non-numeric id

2013-05-20 Thread Greg Willits
Robert Walker wrote in post #1109609: For future reference this is one of those times that fighting Rails conventions makes your life more difficult as a Rails developer. I've done quite a few apps with non-numeric IDs w/o problems until now. Apparently I never needed to scope a list (?) or

[Rails] gem install rails ERROR

2013-05-20 Thread Majid L.
Hi, I am new in mac and ruby on rails, please bear with me if I asked stupid questions : I tried to install, rails in my mac : bdelmajids-iMac:~ majid$ gem install rails ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/1.8

[Rails] Re: Help needed - No route matches [GET] /draw/load

2013-05-20 Thread Rochit Sen
Rochit Sen wrote in post #1109638: mike wrote in post #1109637: On Monday, May 20, 2013 1:26:20 PM UTC-4, Ruby-Forum.com User wrote: def load You need to configure the route in the config/routes.db file. In this case, get 'draw#load' Hi Mike. Thanks for response. So in this case i

Re: [Rails] Re: Help needed - No route matches [GET] /draw/load

2013-05-20 Thread tamouse mailing lists
On Tue, May 21, 2013 at 12:01 AM, Rochit Sen li...@ruby-forum.com wrote: Rochit Sen wrote in post #1109638: mike wrote in post #1109637: On Monday, May 20, 2013 1:26:20 PM UTC-4, Ruby-Forum.com User wrote: def load You need to configure the route in the config/routes.db file. In this

Re: [Rails] gem install rails ERROR

2013-05-20 Thread tamouse mailing lists
On Mon, May 20, 2013 at 10:36 PM, Majid L. li...@ruby-forum.com wrote: Hi, I am new in mac and ruby on rails, please bear with me if I asked stupid questions : I tried to install, rails in my mac : bdelmajids-iMac:~ majid$ gem install rails ERROR: While executing gem ...