[Rails] Re: ActiveRecord transactions thread safety

2014-06-03 Thread Frederick Cheung
On Tuesday, June 3, 2014 5:32:57 AM UTC+1, Alexey Chernenkov wrote: My question is about AR transactions feature. Is it thread safe? Is it safe to use both `ActiveRecord::Base.transaction do ...` and `Account.transaction do ...` statements? It should be - a connection is only ever used by

Re: [Rails] Learning Ruby on Rails

2014-06-03 Thread Colin Law
On 3 June 2014 05:11, Ali Eshragi a.eshr...@gmail.com wrote: Hi All, My name is Ali and I am an embedded software engineering (C, C++ on embedded platforms), but want to learn Ruby on Rails mainly because I want to start my own start-up and based on my research Rails is the most efficient way

[Rails] Starting Thinking Sphinx on Joyent SmartOS with svcadm

2014-06-03 Thread Walter Lee Davis
I followed this tutorial: http://www.neo.com/2013/10/09/unicorn-on-joyent-smartos and the RailsCast about configuring Nginx and Unicorn, and successfully set up my first non-Passenger/Apache Rails app last weekend. Buoyed by this success, I next set about trying to get ThinkingSphinx to

[Rails] Need mapping recommendations

2014-06-03 Thread James Davis, PhD
I need to add geo location / mapping to an application such that users can be presented with and select service providers (such as dentists) in a graphical manner. The user's selection would need to be stored in my app's database. I am looking at google maps, yelp, foursquare, and facebook

Re: [Rails] Need mapping recommendations

2014-06-03 Thread Walter Lee Davis
I just used the Geocoder gem again recently, reminded how awesome that is for the search side as well as coding an address into a lat/lng. gem 'geocoder' As far as showing the results on a map, you can use the Open Street Map for that, or Google if you like to fiddle with API keys. Either one

Re: [Rails] Need mapping recommendations

2014-06-03 Thread James Davis, PhD
WD, Thanks for the reply. I am familiar with geocoder and use it already but it only helps for service providers already in my database. I am looking for a solution that essentially allows me to externalize the storage of heathcare provider information (anything from dentists to massage

[Rails] How to solve NameError: undefined local variable or method `user'

2014-06-03 Thread Jaimin Pandya
I am using Ruby 1.9.3 and Rails 3.2.16. When I run test suite: bundle exec rspec spec/ I get following error: 1) Authentication authorization in the Users controller visiting the following page Failure/Error: before { visit following_user_path(user) } NameError: undefined

Re: [Rails] Need mapping recommendations

2014-06-03 Thread Colin Law
On 3 June 2014 17:28, James Davis, PhD james.davis...@gmail.com wrote: WD, Thanks for the reply. I am familiar with geocoder and use it already but it only helps for service providers already in my database. I am looking for a solution that essentially allows me to externalize the storage

Re: [Rails] How to solve NameError: undefined local variable or method `user'

2014-06-03 Thread Antônio Augusto Sousa Britto
You haven't assigned anything to the user variable used at line 93 inside the method call following_user_path You coudl try to create an user using factory girl, inside your current scope, perhaps using: let(:user) { FactoryGirl.create(:user) } Anyway, I strongly recommend that you refactor this

[Rails] Re: How to solve NameError: undefined local variable or method `user'

2014-06-03 Thread Jaimin Pandya
Antônio Augusto Sousa Britto wrote in post #1148726: You haven't assigned anything to the user variable used at line 93 inside the method call following_user_path You coudl try to create an user using factory girl, inside your current scope, perhaps using: let(:user) {

Re: [Rails] Need mapping recommendations

2014-06-03 Thread James Davis, PhD
On Tuesday, June 3, 2014 12:35:51 PM UTC-5, Colin Law wrote: On 3 June 2014 17:28, James Davis, PhD james.d...@gmail.com javascript: wrote: WD, Thanks for the reply. I am familiar with geocoder and use it already but it only helps for service providers already in my database. I am

Re: [Rails] Need mapping recommendations

2014-06-03 Thread Colin Law
On 3 June 2014 19:29, James Davis, PhD james.davis...@gmail.com wrote: On Tuesday, June 3, 2014 12:35:51 PM UTC-5, Colin Law wrote: On 3 June 2014 17:28, James Davis, PhD james.d...@gmail.com wrote: WD, Thanks for the reply. I am familiar with geocoder and use it already but it only

Re: [Rails] Need mapping recommendations

2014-06-03 Thread James Davis, PhD
On Tuesday, June 3, 2014 1:36:40 PM UTC-5, Colin Law wrote: On 3 June 2014 19:29, James Davis, PhD james.d...@gmail.com javascript: wrote: On Tuesday, June 3, 2014 12:35:51 PM UTC-5, Colin Law wrote: On 3 June 2014 17:28, James Davis, PhD james.d...@gmail.com wrote: WD,

Re: [Rails] Need mapping recommendations

2014-06-03 Thread Walter Lee Davis
On Jun 3, 2014, at 3:24 PM, James Davis, PhD wrote: On Tuesday, June 3, 2014 1:36:40 PM UTC-5, Colin Law wrote: On 3 June 2014 19:29, James Davis, PhD james.d...@gmail.com wrote: On Tuesday, June 3, 2014 12:35:51 PM UTC-5, Colin Law wrote: On 3 June 2014 17:28, James Davis,