Displaying 20 results from an estimated 2000 matches similar to: "Ruby & Javascript"
2008 Oct 07
6
https problems
I''m having a problem but don''t know what is causing it so I don''t know
exactly where to post, please bear with me.
I''m trying to set up https access however whenever I go to https://url_for_site
the root route renders but the url is rewritten to http://url_for_site.
The ssl request shows in the apache logs but obviously no further ssl
requests show up.
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 Oct 24
4
Railscast 75, Observe_field and Shopping Cart
Hi all,
I have the shopping cart page where a user can add items dynamically
through ajax as explained in Railscast episode 75. I am using
observe_field to observe the ''quantity'' and ''cost'' fields to update
the total field for each item.
This does not work however, for records that are added through the
Ajax. How can i name the fields and observe them as i have
2008 May 29
7
when is a boolean not a boolean?
Weird problem.. I''m new to rails and ruby... maybe someone can explain
what I am not getting..
Env: Mac OS X 10.5.3, Rails. 2.0.2, ruby 1.8.6 (2007-09-24 patchlevel
111)
A User class created using the restful_authentication plugin
A Company class (has lots of fields not really important to the
problem below)
Users can have many companies, entered into the User.rb model as one
would
2008 Nov 24
2
Namespacing conventions
I compared the output from ``rake routes'''' for each solution below,
and they both produce the exact same routes. Is one solution preferred
over the over?
# Solution #1:
map.resource :account do |account|
account.resources :properties, :controller => ''account/properties''
account.resources :photos, :controller =>
2009 Apr 06
11
How do I fix this? Power went down.
I was successful in reaching page 184 in the book "Agile Web
Development with Rails" 3rd edition and while running the website with
PostGreSQL as the backend, the power went down. The PostGreSQL
database contents look OK and so do the source code files I was
editing. But whenever I click on any "Add To Cart" button in the
catalog, I get the following information in the
2009 Aug 27
8
Adding New Column
I added a new column using a migration. Once I updated the
new.html.erb, edit.html.erb, show.html.erb, and the index.html.erb I
brought up my web pages. There was a field to update show. I tried the
update and the it was successful but the update did not show up in any
of the other pages. What did I miss? I am using 2.3.3 of ror.
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
2008 Nov 25
4
Developing with Ruby 1.8.2
Hi all,
I have to develop a Ruby on Rails web application using Ruby 1.8.2.
Could you inform me about what are the latest versions of Rails and
RubyGems that should work with Ruby 1.8.2. I am also looking for some
documentation that covers these versions. What I have found so far is
that most of the examples that can be found in internet do not fully
work on Ruby 1.8.2 and Rails 1.1.6 since they
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
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
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
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
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
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.
--
2009 Sep 10
2
cannot start mongrel after Snow Leopard upgrade : Wrong Architecture !!!
(MacBook Core 2 Duo.. but 32-bits kernel... upgraded to SL)
Rails 2.3.4 / Ruby 1.8.7
fine with Webrick
Booting WEBrick
=> Rails 2.3.4 application starting on http://0.0.0.0:3000
but trying to start Mongrel ( btw should be the default in dev mode
when installed ?)
mongrel_rails start -d
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/
http11.bundle:
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 Nov 07
11
Rails requires RubyGems >= 1.1.1 : problem
Hello,
On my local machine (Mac OS X 10.5.5), I get the following error when I try
to run script/server start :
"Rails requires RubyGems >= 1.1.1 (you have 1.0.1). Please `gem update
--system` and try again."
The Rails app was a former 1.2.6 upgraded to 2.1, and it worked fine.
I''ve run the rake rails:update command.
If I create a new Rails app, it starts with the command