Displaying 20 results from an estimated 1000 matches similar to: "geokit on merb"
2007 Nov 07
1
merb/sequel mutex on or off? proxy_balancer or no?
Just a quick question to those of you using merb and sequel or
datamapper. How do you setup your merb app?
For example:
merb -X off -c 5, then run mod_proxy_balancer or nginx to load balance
between the 5 (or whatever #) of merb nodes?
merb -X off -d, then simply use something like proxypass
merb -c 5, keep the mutex lock and cluster it
haproxy, swiftiply, evented mongrel......
What
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
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
2007 Jul 19
3
Merb::Controller#url Usage
I have a question about the usage of Merb::Controller#url. When I
have nested resources, requesting the new action works differently
than I expected. I was wondering what the intended usage is.
For example:
Say I have
r.resources :articles do |article|
article.resources :article_attachments
end
irb(main):002:0> show_routes
[:articles, "/articles"]
[:article_attachments,
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
2011 May 31
1
Geokit query with multiple models involved
Hello,
My database structure consists of Store, Book, BookStore and Address
as below.
class Store < ActiveRecord::Base
has_many :book_stores
has_many :books, :through => :book_stores
has_many :addresses
acts_as_mappable :through => :addresses
end
class Address < ActiveRecord::Base
belongs_to :store
acts_as_mappable
end
class Book < ActiveRecord::Base
has_many
2007 Aug 30
1
active record alternatives
Just wanted to get the opinion from merb users on active record
alternatives that you are either using or watching. I''ve been reading
a bit about sequel and data mapper. Both look pretty nice. Anyone
actively using those yet? Any others?
If anyone cares to provide their thoughts, I''d love to hear them.
BTW - is this too off-topic for this list? If so, just let me know
and
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/.
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
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
2007 Sep 29
1
templates with same name before extension are cached
Hi all,
I was just wondering if this is the intended behavior. Here is my setup:
controller
def index
respond_to do |f|
f.xml { render :xml => true }
f.html { render :layout => :none }
end
end
In my views I have a file for each type
index.herb
index.xerb
The first request I send is cached and interferes with the other one.
For example, if I send an xml request
2007 Jul 31
1
changeset 355
I have a question about changeset 355 for "Initial support for
controllers to be nested in modules and directories."
I have probably overlooked something here, but it appears to me that
something is missing to be able to route to those nested controllers.
Looking in Merb::Dispatcher, it looks like the workflow goes like this.
route = route_path(request_uri)
route_path then calls
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
2007 Aug 04
2
How do you run an app on "edge merb"?
I didn''t quite see a direct answer to Matt''s question regarding
running merb from SVN:
http://rubyforge.org/pipermail/merb-devel/2007-July/000132.html
In a merb application, is there something comparable to having rails
in the vendor/ folder of a rails app?
Thanks,
Duane Johnson
(canadaduane)
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
2007 Jul 29
7
Merb test harness
Ezra,
* test harness in new generated merb apps with helpers for testing
merb without starting a server.
* pin down plugin arch
Seems to me that these two tasks go together unless you want to have
rspec built in Merb.
Regarding the test harness, my understanding is that:
- a developer should be able to easily write specs against a merb application.
- a developer should not need to start a merb
2008 Sep 19
0
Rounding Errors using GeoKit
Hi all,
I''m trying to use the excellent GeoKit plugin to geocode addresses
entered by users. I use GeoKit to get latitude and longitude values,
then plot these using Google Maps.
The problem I have is that the maps produced tend to be slightly off
where they should be. Nearby addresses seem to be grouped to one
point, which suggests that the problem is in rounding the lat and lng
values
2009 Sep 02
0
Geokit - find within fuzzy locations
I''m using Geokit gem to query mappable records within some distance to a
mappable user.
When geocoding an address such as "Madrid", lat&lng represent a point,
in this case the center of the city.
Suppose I have some records with location "Madrid", which are mapped
with lat & lng to the center of the city. When querying for the closest
record, the inaccuracy
2009 Feb 01
8
undefined method `inherit'' for Merb::Test::ExampleGroup
RSpeckers:
I''m trying to install this into a Merb-generated RSpec rig:
http://code.jeremyevans.net/doc/fixture_dependencies/
It requires inserting their test case into RSpec. This is the documented way to
do it:
describe ''Post'' do
inherit FixtureDependencies::SequelTestCase
And that leads to the syntax error in the subject line. (No stack trace is
available
2007 Oct 09
0
mutex
Few quick questions.
What is the risk of turning off the mutex lock? I have a particular
controller which fires off snmpwalks/gets to pull back data. It works
great if everything is up, but when I test against a hung snmp server,
I notice that lock getting in the way of other requests.
I have just ran a test with mutex turned off and it seems to work
great. But, I was wondering what the risk