similar to: cucumber - when to stub/mock

Displaying 20 results from an estimated 1200 matches similar to: "cucumber - when to stub/mock"

2009 Feb 23
2
geokit - using :through to connect models
hello.. i am currently trying to use :through to attach two of my models together using geokit. for some reason, i am running into a problem: ArgumentError: Unknown key(s): as i have two models, one that is geocoded, and one that belongs to that model. the models look like: ,----[ employer.rb ] | class Employer < ActiveRecord::Base | acts_as_mappable | before_validation_on_create
2006 Jun 29
11
AJAX Maps
Hi, I would like to know if there is a library that provides an API to support map scrolling, like the one available in google maps. This is, I would like to create a user interface where the user is able to see a small part of a large map. It can then move the view, thus observing another part of the map. Additionally, I would also like to provide a zoom mechanism. Thanks in advance. --
2010 Dec 14
5
Build associated model confusion
I''m new to Rails3, and I''m just trying to get one last thing to work before I call it a night. The situation is the following (please if the code is horrible, just let me know, still learning): I want to log a dive. I might have a new location on that dive at which point I have to create a new Location, and then create the dive. A dive has_one location. A location has_many
2011 Sep 19
14
gmaps4rails "acts_as_gmappable" error
Hi all, I started to see fun of gmaps4rails gem from https://github.com/apneadiving/Google-Maps-for-Rails. After everything done. When visited the locahost, i got the following error. undefined local variable or method `acts_as_gmappable'' for #<Class: 0x31a9da8> the error is due to i have line "acts_as_gmappable" in my model. Anybody knows how this is
2008 Jan 23
3
Find city, state from supplied ZIP Code
Is there a simple solution available that would allow me to take a ZIP Code from a user and then populate City and State fields based on that ZIP? Any kind of a plugin, for example? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2009 May 18
3
Pagination
Hi, I am using the will_paginate plugin for my application. It is showing Previous 1,2,3...22,23,24 Next links How will I hide the numbers? I want to have first and last links also. How will i do that? Thanks in advance. -- Posted via http://www.ruby-forum.com/.
2011 Mar 18
3
webapplications with rails+geokit
Hi all Anybody knows any webapplictions presently using geokit plugin with rails 2.x or 3.x ? If yes pls send me the url pls. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to
2009 Sep 20
3
coordinates for geokit
i''m trying geokit and loving it, but i''m seeing really odd stuff on distances, I''m wondering about the coordinates i''ve got in my DB. I don''t think they''re standard format, they look like this. east 6''41.6 north 45''24.8 Can anyone advise please ? -- Posted via http://www.ruby-forum.com/.
2009 Jan 09
2
Ruby & Javascript
Hey guys! Does anyone knows how to a ruby program communicate with the Google API, which one is written in Javascript ? I''ve heard something about a wrapper to do the communication, but i didn''t find anything yet. I know a plugin for rails can do that (geokit), but i don''t know how. There is a method (geocode) that use the javascript function to return the XML data
2008 Jul 06
1
GeoKit / Form Validation
I am new to rails and have been scouring the web for the past two days trying to figure out 2 things. 1) I am currently using a form with 2 models. The first is person, the second is address. I attempted to duplicate the two models on one form as seen in Advanced Rails Recipes and Railscasts, and they work fine - except when there are validation issues on the address piece it just returns saying
2011 Mar 18
1
using Geokit with rails3
HI all i am a newbie ,and starting a rails 3 application and my application needs geokit plugin .so anybody knows how to install geokit plugin in rails 3 and using it with the application? I am using ruby 1.9.2 and rails 3.0.3 with mysql2. pls help.. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send
2010 May 15
3
ActiveResource Mock Objects
Some of my tests use ActiveResource HttpMock requests and some of them do not. Does anyone know if there is a way to disable the HttpMocks after they have already been loaded? The method ActiveResource::HttpMock.reset! only removes all the objects, but ActiveResource still thinks it should look for mock requests rather than actually making requests. I hope this makes sense! Thanks, Tom --
2011 Apr 11
12
Freelance Developer using Rails
Hi all, Is anyone doing freelance rails development? I need some advice before I jump in. Thanks, -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to
2009 Jun 24
3
ActiveResource:: HttpMock
I''m trying to set up testing on my ActiveResource project. The HttpMock appears to be what I want, but whenever I use the code in the "documentation", I get the error NameError: uninitialized constant ActiveResource::HttpMock Is there something I need to do to enable HttpMock testing? Thanks, Tom
2008 Jan 26
0
Error: no such file to load -- geokit (plugin is install)
Hi, after spending hours on getting geokit and ym4r running I don''t know how to do or how to getting a test running. I have try the tutorial from http://www.railslodge.com/plugins/179-ym4r but I don''t get it :(. Has sone one other tutorials he can recommend? Maybe someone knows were I did my mistake (I only want to show a fixed address, no database connection so far, pure
2006 Nov 29
5
AR, find(:all), loops and memory usage
I''m a beginning programming using ActiveRecord outside of Rails to do conditional processing of database records. So far, I''ve been successful. However, my script loads all matching records into memory first. There are hundreds of thousands of matching records so the script quickly consumes over 500MB of RAM before any processing is done. Is there a way to avoid this preloading
2010 Jul 19
1
geokit app
Newbie here :) So, a friend mentioned that geokit is the way to go if I want to make a simple location based app. I basically want to make a list of locations so the app should allow me to Create a location, give it a name and an address along with the geo location information associated with it. (Geokit will take care of this last thing right?) I tried looking for sample apps but had no
2008 Feb 07
1
geokit on merb
I converted the rails geokit plugin to a merb plugin today. Anyone interested in testing it out? It seems to be working great for me. If so, where should I put it? I don''t have a blog up or anything right now. Been meaning to do that, but haven''t had the time. -Dusty Doris
2008 Apr 16
4
Doing a radius/location search
The application I''m developing allows people to create events in their local area; as part of this feature I want to display a list of, say, the five most recent events within 30 miles of a person''s location. I have a User model and a Profiles model which contains the user''s location (city, state, zip code) among other non-related personal information. So what I would
2007 Dec 22
8
Rails 2.0 rescue_from
I am trying to use the new Rails 2.0 macro : rescue_from class PostsController < ApplicationController rescue_from ActiveRecord::RecordNotFound, :with => :deny_access ... def show @post = Post.find_by_id(params[:id]) raise ActiveRecord::RecordNotFound if @post.nil? #illegal access ..... end def deny_access respond_to do |format| format.html end end but the