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
On 18 March 2011 01:22, Matt Jones al2o...@gmail.com wrote:
On Mar 17, 7:00 pm, Alexander Farley li...@ruby-forum.com wrote:
Hi, my server doesn't allow shell access or scripts. What's the easiest
way to schedule a script, from within ruby/rails?
Get a new host that doesn't suck. Seriously,
Thanks Fred
you mean it's a Ruby 1.9 issue, not Rails... ( this is why I could not
find any doc on it in Rails API... maybe )
and of course it happen only in plain-text template...
I still do not understand why this error raised only when the script
was run from the cron task ... and never when
I read this post in forum, lot of info ... thanks
it's solved now
http://www.ruby-forum.com/topic/374725
On 17 mar, 19:54, Frederick Cheung frederick.che...@gmail.com wrote:
On Mar 17, 6:07 pm, Erwin yves_duf...@mac.com wrote:
class Notifier ActionMailer::Base
default :charset
Hi,
I am using cucumber with rails 3.0.5.
Whenever I running the rake cucumber:wip
I am getting following error:-
rake aborted!
Command failed with status (1): [bundle exec
/usr/local/ruby1.9_2/bin/ruby ...]
Can anyone tell me how to fix this?
My Gemfile is
source 'http://rubygems.org'
gem
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
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
We have used geokit_rails with rails 2.3.x but site is not live yet...
On Fri, Mar 18, 2011 at 1:01 PM, venkata reddy venkatareddy...@gmail.comwrote:
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
Hey,
You should chek this version: https://github.com/jlecour/geokit-rails3
regards
Geoffroy
On Mar 18, 7:03 am, venkata reddy venkatareddy...@gmail.com wrote:
HI all i am a newbie ,and starting a rails 3 application and my
application needs geokit plugin .so anybody knows how to install
Hey Seeni,
The first thing that comes to mind is, does sms_fu include support for
your carrier there in India? Its GitHub documentation states that the
to phone number must be exactly 10 digits long (without any non-
digit characters). I'm not sure what phone numbers in India look
like, but
Thank u Fallen !!
On Fri, Mar 18, 2011 at 2:16 PM, Fallen Phoenix jaustinhug...@gmail.comwrote:
Hey Seeni,
The first thing that comes to mind is, does sms_fu include support for
your carrier there in India? Its GitHub documentation states that the
to phone number must be exactly 10 digits
Hey Fallen phoenix,
Is there any other option available in rails to send sms?
--
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@googlegroups.com.
To unsubscribe from this group, send
** for rails 2.3.x**
config.gem 'geokit', :version = '1.5.0'
script/plugin install git://github.com/andre/geokit-rails.git
On Fri, Mar 18, 2011 at 1:33 PM, Sandip san2...@gmail.com wrote:
We have used geokit_rails with rails 2.3.x but site is not live yet...
On Fri, Mar 18, 2011 at 1:01
On Mar 17, 11:04 am, Frederick Cheung frederick.che...@gmail.com
wrote:
Could you just tell rails that categories_id is the primary key? If
it's unique then that should be good enough (you'll probably have to
be a little careful when creating rows in this table though, as you'll
need to set
Well, you may need to brew your own. The most likely issue would
probably be that you don't have the information for an e-mail to SMS
gateway for your cell phone provider. You'd need to get that
information from them. This isn't so much a what should I use
instead of sms_fu? kind of question,
On Mar 18, 10:39 am, Fallen Phoenix jaustinhug...@gmail.com wrote:
The only other options I can list off the top of my head would be a
third party provider that you pay for API access. There are companies
You may be after an SMS aggregator - these are companies who have
relationships with
On Mar 17, 2011, at 7:55 PM, Norm Scherer wrote:
On 03/16/2011 01:37 PM, Walter Lee Davis wrote:
I've heard very good things about Instant Rails on Windows. I
believe it sets up a Linux VM and installs all the tools. This
makes it trivial to have a working environment that's closer to
On 18 March 2011 12:44, Walter Lee Davis wa...@wdstudio.com wrote:
Can anyone recall the name of
the one that puts everything in a Linux VM?
VirtualRails
It's also worth looking at the Bitnami Rubystack
--
You received this message because you are subscribed to the Google Groups Ruby
on
On Mar 18, 2011, at 8:49 AM, Michael Pavling wrote:
Can anyone recall the name of
the one that puts everything in a Linux VM?
VirtualRails
That was it, thanks. I knew I saw it blip by on RubyFlow.
Walter
--
You received this message because you are subscribed to the Google Groups Ruby on
It seems to be the case:
http://weblog.rubyonrails.org/2008/6/26/this-week-in-rails-june-26-2008
If you are using Rails 2.1, Ruby 1.8.7-p22 seems the way to go.
Unfortunately, Ruby 1.8.7 is not compatible with previous versions of Rails.
--
You received this message because you are subscribed
On Fri, Mar 18, 2011 at 3:46 AM, Fallen Phoenix jaustinhug...@gmail.comwrote:
The first thing that comes to mind is, does sms_fu include support for
your carrier there in India?
Looking at the default list of carriers supported in the sms_fu.yml file
there are none listed for India. However,
Hi all,
A bit stuck with a complex form.
I've 2 models, events and bands.
bands have many events, and events have many bands, so...
they're related with a has_and_belongs_to_many, with the appropriate
joining table.
In my new events form I've got some jquery to add new bands dynamically.
in
I have asked a question similar, but not same. I was unable to connect to my
remote mysql server from windows, it tries to connect to local server,
whatever i wrote in database.yml din't made any changes at all. So i ve
switched to linux. Now my rails app sees what i wrote inside my
Or RubyMine. The code completion is really impressive in that.
Creating accurate code completion in Ruby is a lot more challenging
than it is in strongly typed languages.
When I used Aptana, I found that the code completion worked better in
some places than others. I think I remember it being ok
Note that ruby is dynamic, you can add methods to a class during run time,
that is why is hard to implement code completion and some times is useless
--
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
Hello All
I have an invitations page where all invitations for channels sent are
listed with checkboxes.An Accept and Reject button is present at the
end of the list.
The logged in user can accept or reject the invitations by selecting
the checkboxes.
In my invitations.html.erb(which is my
Railers (if you allow me to you so),
*before_create*
I am not a moderator of Ruby on Rails(RoR) forum, I am not trying to become
one, and I am not pushing for any moderation of this sort. However, I am a
bit worried that some of the questions we get on this forum are not really
Ruby
Hi Fred,
Thanks for your comments and suggestions. They were really useful.
I first noticed that I had two mysql installations in my system - one
through compilation and another installed through yum.
I uninstalled both and had only one. But, it did not result in any
change in error.
I then
hi,i don't know how to capture the following exception if the file
directory or name is not correct.
##
def index
@csv_array=[]
begin
CSV.foreach('files/sample.csv') do|row|
sub_array=row
@csv_arraysub_array
end
rescue Exception=e
On Mar 18, 2:16 pm, gkaykck gkay...@gmail.com wrote:
--- database.yml
gkaykck@node2:~/Dropbox/portalegitim$ rake db:migrate
(in /home/gkaykck/Dropbox/portalegitim)
rake aborted!
Access denied for user 'username'@'78.170.46.170' (using password: YES)
(See full trace
You are re-raising the exception in rescue block. Try to modify the rescue
block like this:
rescue Exception = e
flash.now[:error]=error: #{e.message}
end
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group, send
On Mar 18, 3:33 pm, Edmond Kachale edmond.kach...@baobabhealth.org
wrote:
Railers (if you allow me to you so),
*1. Posting Right Questions*
===
There are some questions that are not necessarily worthy posting on this
forum. For example, questions on how to create HTML
You can do something like
raise File not found unless File.exists?(filename)
or better
begin
raise FileNotFoundException.new(File not Found) unless
File.exists?(filename)
rescue FileNotFoundException
end
by writing your own FileNotFoundException class and catching it in the
Here's what I did:
1. gem install calendar_date_select
2. Then in my environment.rb I put:
config.gem calendar_date_select
3. And in my template file:
%= javascript_include_tag prototype %
%= calendar_date_select_includes %
But still an error posts like this : undefined local variable or
On Mar 18, 2:20 pm, Michael Baldock li...@ruby-forum.com wrote:
currently:
If I have 3 bands saved, beatles, stones and eagles
I make a new event and select 'beatles', from the drop down then save,
a new event is saved, and associated with a band called beatles
BUT, there are now 2 bands
Well said. While language barriers may occasionally keep a member
from asking a question properly, it is TRULY in the best interest of
the user to ask a well-written, intelligent, pertinent question. I'm
a recent college grad and am appalled by the lack of creativity/
ingenuity/drive displayed
Try doing
bundle install
before running the rake task
--
Posted via http://www.ruby-forum.com/.
--
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@googlegroups.com.
To unsubscribe
On 18 Mar 2011, at 16:59, ziamie jennypala...@gmail.com wrote:
Here's what I did:
1. gem install calendar_date_select
2. Then in my environment.rb I put:
config.gem calendar_date_select
3. And in my template file:
%= javascript_include_tag prototype %
%=
hello all.
am new to RoR so am not sure of the conventions of how to ask a question
so forgive me.
we had a site built using rails 3 http://www.threadme.co.uk/
we have been trying to learn rails to take over management of the site
ourselves.
we've recently got to the stage where we have a copy
For various reasons we need to use the CONVERT_TZ() function in mysql to
convert times during queries. The timezone to be used in the conversion
is based on the timezone the user selected when setting up their profile
(from a select box populated with ActiveSupport::TimeZone.us_zone).
The
On 18 Mar 2011, at 18:10, sal streets li...@ruby-forum.com wrote:
hello all.
am new to RoR so am not sure of the conventions of how to ask a question
so forgive me.
we had a site built using rails 3 http://www.threadme.co.uk/
we have been trying to learn rails to take over management
Frederick Cheung wrote in post #988195:
On 18 Mar 2011, at 18:10, sal streets li...@ruby-forum.com wrote:
we've recently got to the stage where we have a copy of the site on our
come up on the home page on localhost:3000
what do we have to do to make these changes register?
If the app is
It is very important that you locate the deploy.rb file it should be in the
config directory, is not directly related to your question but it is
important that you know how the app was deployed
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk
Hi Fred,
do you have any advice for what to do if the site is in development mode
and not production mode?
We have touch app_root/tmp/restart.txt and changes have not implemented
s
sal streets wrote in post #988200:
Frederick Cheung wrote in post #988195:
On 18 Mar 2011, at 18:10, sal
Hey all,
layout_helper.rb:
def table(collection, header_names, fields, class_name)
return false unless collection.any?
table_str =
table_str += table id=\ + class_name + \ class=\ + class_name
+ \\n
table_str += \tthead\n
table_str += \t\ttr\n
header_names.each
Radhames Brito wrote in post #988201:
It is very important that you locate the deploy.rb file it should be in
the
config directory, is not directly related to your question but it is
important that you know how the app was deployed
Hi Radhmes,
there is no deploy.rd in config but we do have
On Mar 18, 6:59 pm, sal streets li...@ruby-forum.com wrote:
Hi Fred,
do you have any advice for what to do if the site is in development mode
and not production mode?
well if it was in development mode the app should reload itself on
each request
We have touch app_root/tmp/restart.txt
Frederick Cheung wrote in post #988214:
On Mar 18, 7:06pm, John Merlino li...@ruby-forum.com wrote:
table_str += \t\ttr\n
fields.each do |name|
What the above does is render a big string of what I am wanting to
display as html markup. If I add puts(table_str) to the helper method,
On Mar 18, 7:58 pm, John Merlino li...@ruby-forum.com wrote:
Frederick Cheung wrote in post #988214:
On Mar 18, 7:06pm, John Merlino li...@ruby-forum.com wrote:
table_str += \t\ttr\n
fields.each do |name|
What the above does is render a big string of what I am wanting to
You're seeing the html because rails automatically escape
html for you these days. You can call html_safe on a string to mark it
as not needing escaping (although that shifts the responsibility of
checking that things are indeed safe to you )
Fred
Thanks it worked!
--
Posted via
Radhames Brito wrote in post #988052:
try this , go to the console and type rails c, then type this
r = ActionController::Routing::Routes
then
r.generate :controller = :invitations, :action = create , :
invitation_token = 123
see if it generates what you want , then use
Frederick Cheung wrote in post #987930:
So what's not working? The models you posted should be ok as long as
the forms are ok too (there's also a railscast or 2 on this subject)
Fred
Yes Fred and examining my code some more (with the advice I got from
here) that's my conclusion as well.
I am
On Fri, Mar 18, 2011 at 5:01 PM, Cluter Vipic li...@ruby-forum.com wrote:
Radhames Brito wrote in post #988052:
try this , go to the console and type rails c, then type this
r = ActionController::Routing::Routes
then
r.generate :controller = :invitations, :action = create , :
I am trying to get Ruby/Rails running on my mac but having some issues.
I created a new rails project blog_test trying to get something
working.
When I follow this guide
http://guides.rubyonrails.org/getting_started.html it says to do a
db:create. This is where I get this error...
Could not
On Fri, Mar 18, 2011 at 3:09 PM, sal streets li...@ruby-forum.com wrote:
Radhames Brito wrote in post #988201:
It is very important that you locate the deploy.rb file it should be in
the
config directory, is not directly related to your question but it is
important that you know how the
sorry there are many typos, this one is important
1) the app that is somewhere directly in the deploy_to path and not the one
inside the current directory
is somewhere not sometime, sorry
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk
I dont know guys how you fixed this problem. I have one rails app that
runs as expected at port 80 using webrick. And another rails app running
at port 3001, that doesnt start. I get the same error as you:
ruby script/server -p 3001 -e production
[2] 29028
type bundle install at the app root directory
if it does not works post you gemfile
--
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@googlegroups.com.
To unsubscribe from this group,
On Fri, Mar 18, 2011 at 6:38 PM, Pablo Tomas B. li...@ruby-forum.comwrote:
I dont know guys how you fixed this problem. I have one rails app that
runs as expected at port 80 using webrick. And another rails app running
at port 3001, that doesnt start. I get the same error as you:
ruby
Carl Jenkins wrote in post #988231:
I am trying to get Ruby/Rails running on my mac but having some issues.
I created a new rails project blog_test trying to get something
working.
When I follow this guide
http://guides.rubyonrails.org/getting_started.html it says to do a
db:create. This
Did you run the cucumber install script?
--
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@googlegroups.com.
To unsubscribe from this group, send email to
Kedar Mhaswade wrote in post #988237:
Carl Jenkins wrote in post #988231:
I am trying to get Ruby/Rails running on my mac but having some issues.
I created a new rails project blog_test trying to get something
working.
When I follow this guide
Kedar Mhaswade wrote in post #988237:
Carl Jenkins wrote in post #988231:
I am trying to get Ruby/Rails running on my mac but having some issues.
I created a new rails project blog_test trying to get something
working.
When I follow this guide
For the restful way first you have to properly add the non restful action to
the routes
member do
POST channel_invites_approve
end
and then pass the value since this will create a helper like this
channel_invites_approve_path()
and you can pass the value like this
I'm studing a forum and when I create a Topic I have a _form.html.erb
relative a file inside follow directory
#app/views
new.html.erb
_form.html.erb
the snippet controller to create a new topic is the follow
#app/controllers/topics_controller.rb
def create
@topic =
Radhames Brito wrote in post #988228:
On Fri, Mar 18, 2011 at 5:01 PM, Cluter Vipic li...@ruby-forum.com
rails c
at the app directory, then try mixing
r.generate :controller = :invitations, :action = create ,
:invitation_token = 123
until you get what you want.
I tried same error
No need create only 2 simple line in the follow file
#app/controllers/topics_controllers
def new
@topic = Topic.new
@post = Post.new
end
def create
def create
@topic = Topic.new(params[:topic])
if @topic.save
@topic = Topic.new(:name = params[:topic][:name], :forum_id =
Yes it is. but i thought you may have mistakenly used irb instead of rails c
--
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@googlegroups.com.
To unsubscribe from this group, send email
Szymon Nowak wrote in post #988178:
You are re-raising the exception in rescue block. Try to modify the
rescue
block like this:
rescue Exception = e
flash.now[:error]=error: #{e.message}
end
thank you,szimek,chaitanyv.it seems we just need to rescue the
exception,and no need to
69 matches
Mail list logo