Frederick Cheung wrote in post #977813:
Have you got the rails js loaded that detects those attributes and
actually does something with them?
@Fred: As I alluded to in the OP, I'm suspicious that I may have messed
up the default Rails JS when I included JQuery. My
Hello,
i try to get a shared login for my two Rails applications. I read much
about this topic, but dont know how to do this. I need a tutorial or a
good understandable which explain this.
At the time i have two Rails applications on one Server and they use the
same DB (this means also the same
Beautiful, than-you
Just so people can see solution:
class Company ActiveRecord::Base
has_many :memberships, :dependent = :destroy
has_many :notes, :dependent = :destroy
has_many :contacts, :through = :memberships
has_many :products, :dependent = :destroy
has_many :allocations,
On 27 Jan 2011, at 08:06, Fearless Fool li...@ruby-forum.com wrote:
Frederick Cheung wrote in post #977813:
Have you got the rails js loaded that detects those attributes and
actually does something with them?
@Fred: As I alluded to in the OP, I'm suspicious that I may have messed
up the
On 27 January 2011 04:48, Priya D. li...@ruby-forum.com wrote:
Hi All,
I want to create a console application using ruby. Can you please
provide me the details/idea?
That is nothing to do with RoR of course, but just write a file.rb run it by
ruby file.rb
You can use puts etc to access the
I want to create a new console using ruby code. From the new console,
i'll execute my commands.
--
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
On 27 January 2011 09:20, Priya D. li...@ruby-forum.com wrote:
I want to create a new console using ruby code. From the new console,
i'll execute my commands.
What do you mean by create a new console? Please describe in more
detail what you are trying to do.
Colin
--
You received this
I'm creating a new object for a class using irb. At that time, if the
object is created successfully, a new console should be open. The newly
opened console should act as the created object.
so that i can execute all the instance methods through the newly opened
console, without prefixing
On 27 January 2011 09:31, Priya D. li...@ruby-forum.com wrote:
I'm creating a new object for a class using irb. At that time, if the
object is created successfully, a new console should be open. The newly
opened console should act as the created object.
so that i can execute all the instance
Chris Mear wrote in post #977826:
The default rails.js that ships with Rails 3 is designed to work with
Prototype; you should replace it with one written to work on jQuery, if
you haven't already:
https://github.com/rails/jquery-ujs
Chris
Give that man a cigar!
Evidently I'd installed the
No Colin, i don't want to execute system commands.
For eg,
1) I'm requiring a gem in console.(require somegem)
2) I'll create object of the gem. (@obj = Module::Class.new)
3) Using the created object, i'll access the methods in the gem.
(@obj.get_details())
In the above mentioned steps, while
I'm using this successfully (in a Rails 2.3.5 app):
link_to(Delete Post, post_path(@post), :confirm = 'Are you
sure?', :method = :delete)
To my knowledge there is no such thing as a delete_XYZ_path.
Check your logs to see if DELETE is really received on the top level.
For debugging purposed try
On 27 January 2011 09:47, Priya D. li...@ruby-forum.com wrote:
No Colin, i don't want to execute system commands.
For eg,
1) I'm requiring a gem in console.(require somegem)
2) I'll create object of the gem. (@obj = Module::Class.new)
3) Using the created object, i'll access the methods in
Am using Ubuntu 10.04. Just using irb.
--
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 from this group, send
Solrac Caritas wrote in post #945648:
% f.fields_for :author do |author_form|%
with
%= f.fields_for :author do |author_form|%
Thanks you very much
It help me too!
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups Ruby
Hi,
I'm facing the exact same error right now.
Is there a solution to this issue?
I'd really like to use to-csv+fastercsv.
Let me know.
THX alot,
Thomas
Commander Johnson wrote:
I was using the to-csv and fastercsv gem. When I commented them out of
my environment.rb, the error
Hi there
Would like to know if anything exists, specifically designed and built
to work with Rails, for UI development? Something akin to Google Web
Toolkit (GWT)?
Thanks
Steve
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google
On 27 January 2011 11:04, Priya D. li...@ruby-forum.com wrote:
Am using Ubuntu 10.04. Just using irb.
Please don't top post, it makes it difficult to follow the thread,
insert your reply into the previous post, thanks.
So to open a console you open a terminal window and then run irb. If
you
Hi All,
Anyone used the Bantik-Seer gem to create Ruby graphs/charts? If so, i
have some questions about usage.
Thanks in advance.
--
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
Colin Law wrote in post #977860:
On 27 January 2011 11:04, Priya D. li...@ruby-forum.com wrote:
Am using Ubuntu 10.04. Just using irb.
Please don't top post, it makes it difficult to follow the thread,
insert your reply into the previous post, thanks.
So to open a console you open a
So my goal is to loop through and list several groups of shipping
options for various products. First I loop through the number of items
which need to be shipped alone, then I loop through the shipping
rates. What I want is each group to be able to have 1 selection and
pass along the params for
It would be very easy to use, but I have problem with changing default
zoom map type... Can anyone tell me where I should change it?
--
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
Frederick Cheung wrote in post #977813:
On Jan 26, 10:50pm, Fearless Fool li...@ruby-forum.com wrote:
a href=/premises/2
data-confirm=Positive?
data-method=delete
rel=nofollow
title=Delete 123 Chestnut Streetdelete/a
That looks basically right to me, so I'm still stumped.
Hi,
I have a reeally big problem with understanding how to use
ActiveMerchant, Perhaps someone would point me to a different solution
to my problem.
I need to build a little web shop which will be based in the UK, and
my customer wants to use PayPal Express Checkout, because there's no
monthly
Please quote when replying.
Dahlby wrote in post #977793:
Thanks for all the replies.
It looks like things changed after shutting down and starting back up
the
next day. My rails went back to version 2.3.5 for some reason. That
would
explain the different folder set I get when doing a new
On 2011-01-26, at 8:11 PM, Ismail Haqq wrote:
This is a pain in the arss.
You can say that again ;)
I ran the command ls -l /usr/lib/sqlite3 and
it spit out
total 4960
-rwxrwxrwx 1 root wheel 2534656 Mar 6 2009 libtclsqlite3.dylib
-rwxrwxrwx 1 root wheel 89 Dec 9 2007
Marnen Laibow-Koser wrote in post #977875:
I rarely use delete links...
That's interesting!
My instinct is to suggest defining a GET destroy action. OTOH, that's
not idempotent. Aaugh!
Browsers only generate GETs and POSTs, so any DELETE action needs to be
simulated somehow. And as you
Great
http://netbeans.org/community/news/show/1507.html
...so now to find another editor/environment that integrates debugging :-(
(although no huge rush, as Netbeans6.9 isn't going to *stop* working ...)
--
You received this message because you are subscribed to the Google Groups Ruby
Messed up on their part.
On Thu, Jan 27, 2011 at 10:23 AM, Michael Pavling pavl...@gmail.com wrote:
Great
http://netbeans.org/community/news/show/1507.html
...so now to find another editor/environment that integrates debugging :-(
(although no huge rush, as Netbeans6.9 isn't going to
On 27 January 2011 16:25, Fred Ballard fredb...@gmail.com wrote:
On Thu, Jan 27, 2011 at 10:23 AM, Michael Pavling pavl...@gmail.com wrote:
http://netbeans.org/community/news/show/1507.html
Messed up on their part.
I can see their point - there's a lot of competition for a small
market, and
On 27 January 2011 16:29, Michael Pavling pavl...@gmail.com wrote:
On 27 January 2011 16:25, Fred Ballard fredb...@gmail.com wrote:
On Thu, Jan 27, 2011 at 10:23 AM, Michael Pavling pavl...@gmail.com
wrote:
http://netbeans.org/community/news/show/1507.html
Messed up on their part.
I
You don't have to :)
Just use Rails.vim!
On Fri, Jan 28, 2011 at 12:29 AM, Michael Pavling pavl...@gmail.com wrote:
On 27 January 2011 16:25, Fred Ballard fredb...@gmail.com wrote:
On Thu, Jan 27, 2011 at 10:23 AM, Michael Pavling pavl...@gmail.com
wrote:
Sorry for not being explicit:
Mac OS 10.6 (snow leopard)
rails -v = 2.3.5
I think I had installed Rails 3, but it bumped me back to 2.3.5. At least I
was going through the book's steps successfully.
I got RVM working in terminal now. I hadn't done source .bash_profile to
load it in. That did
Has anyone used Scraped Resource https://github.com/hasclass/
scraped_resource and know how to set up a scrape with it?
Any help would be appreciated :-)
--
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
after looking deeper in ActiveModel i found that all dynamically
generated attribute methods are included in a dynamic anonymous
module. it can be accessed from an active record class
via .generated_attribute_methods (User.generated_attribute_methods)
i was eventually able to alias all generated
after looking deeper in ActiveModel i found that all dynamically
generated attribute methods are included in a dynamic anonymous
module. it can be accessed from an active record class
via .generated_attribute_methods (User.generated_attribute_methods)
i was eventually able to alias all generated
Fearless Fool wrote in post #977888:
Marnen Laibow-Koser wrote in post #977875:
I rarely use delete links...
That's interesting!
My instinct is to suggest defining a GET destroy action. OTOH, that's
not idempotent. Aaugh!
Browsers only generate GETs and POSTs, so any DELETE action needs
Michael Pavling wrote in post #977908:
Great
http://netbeans.org/community/news/show/1507.html
...so now to find another editor/environment that integrates debugging
:-(
(although no huge rush, as Netbeans6.9 isn't going to *stop* working
...)
You have no idea how happy I am to hear
I got sidetracked while benchmarking ruby factorial code:
http://rosettacode.org/wiki/Factorial#Ruby
I put all that code into test_fact.rb and ran with:
ruby test_fact.rb
rails runner test_fact.rb #from a fresh rails app
rails runner test_fact.rb #from a mature rails app
here are the
On 27 January 2011 16:39, David Chua zhc...@gmail.com wrote:
You don't have to :)
Just use Rails.vim!
Does it have (or can it be configured with) debugging breakpoint
debugging? 'Fraid that's a show-stopping requirement for me (to avoid
going greyer sooner)
Looking at the options, I think I
On 27 January 2011 18:31, Michael Pavling pavl...@gmail.com wrote:
Does it have (or can it be configured with) debugging breakpoint
debugging?
... it's so important, I said it twice! :-/
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
I think you can use Irb to jump into another object :
http://www.ruby-forum.com/topic/182335
http://errtheblog.com/posts/24-irb-mix-tape (3rd paragraph)
Here is something that I created for myself to have capybara console:
It creates and object, extends it with the capybara api and jumps into
it.
For some reason The symbols in my new timesheet form aren't being recognized
after I nested the routes.
I go to: http://localhost:3000/users/1/timesheets/new
and receive the error:
NoMethodError in Timesheets#new
Showing */Rails/timecard/app/views/timesheets/new.html.erb* where line *#8*
Perhaps I just have never seen your kind of defining form_for. But I
had expected something like:
%= form_for(@timesheet, :url =
user_timesheets_path(@timesheet.user)) do |f| %
div class=field
%= f.label :user_id %br /
%= f.text_field :user_id %
/div
div class=field
%=
Sorry, have found your problem:
%= form_for( [@timesheet.user, @timesheet] ) do |f| %
It has to be an Array...
On 27/01/11 19:58, Smashing wrote:
For some reason The symbols in my new timesheet form aren't being
recognized after I nested the routes.
I go to:
Are you reading the params[:howcoolisit] value and assigning it to @post
in the controller?
No I am not. How would I go about doing that? I don't understand what
you mean by reading the params[:howcoolisit] value.
--
You received this message because you are subscribed to the Google Groups
Michael Pavling wrote in post #977932:
On 27 January 2011 16:39, David Chua zhc...@gmail.com wrote:
You don't have to :)
Just use Rails.vim!
Does it have (or can it be configured with) debugging breakpoint
debugging? 'Fraid that's a show-stopping requirement for me (to avoid
going greyer
Michael Pavling wrote in post #977932:
On 27 January 2011 16:39, David Chua zhc...@gmail.com wrote:
You don't have to :)
Just use Rails.vim!
Does it have (or can it be configured with) debugging breakpoint
debugging? 'Fraid that's a show-stopping requirement for me (to avoid
going greyer
%= form_for( [@timesheet.user, @timesheet] ) do |f| %
Thank you, you've been a HUGE help, just missed where it said it needed to
be an array. I'll be more thorough next time I'm reading the api docs :)
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails:
For me, I had to download and move the
sqlite3.exe
sqlite3.dll
into a folder in my path, like C:/Windows or for me c:/Ruby 1.9.2/bin/
Hope that helps
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk
On 27 January 2011 19:37, Marnen Laibow-Koser li...@ruby-forum.com wrote:
Looking at the options, I think I may try RubyMine, and weigh-up the
cost/benefit over using a syntax-highlighting text editor.
Save your money. Try KomodoEdit with the Ruby and Haml plugins.
Save money?
Michael Pavling wrote in post #977960:
On 27 January 2011 19:37, Marnen Laibow-Koser li...@ruby-forum.com
wrote:
Looking at the options, I think I may try RubyMine, and weigh-up the
cost/benefit over using a syntax-highlighting text editor.
Save your money. Try KomodoEdit with the Ruby and
On Thursday, January 27, 2011 at 8:37 PM, Marnen Laibow-Koser wrote:
Mostly. I like choices, and I like IDEs, but I wish people would stop
trying to use conventional IDEs for Rails. There's really no benefit,
and there are lots of disadvantages.
Why? Let people use whatever they like.
Xavier Noria wrote in post #977968:
On Thursday, January 27, 2011 at 8:37 PM, Marnen Laibow-Koser wrote:
Mostly. I like choices, and I like IDEs, but I wish people would stop
trying to use conventional IDEs for Rails. There's really no benefit,
and there are lots of disadvantages.
Why? Let
That was my IDE, too. I saw that coming when there was no move to make
Rails 3/Ruby 1.9 work well, so I moved to RubyMine. I like it and it
is easy to adjust since a lot of stuff is similar. It's too bad about
NetBeans, when it worked it did a decent job.
Whenever there gets to be a discussion
Please quote when replying.
Paul wrote in post #977971:
That was my IDE, too. I saw that coming when there was no move to make
Rails 3/Ruby 1.9 work well, so I moved to RubyMine. I like it and it
is easy to adjust since a lot of stuff is similar. It's too bad about
NetBeans, when it worked it
Hi, I'm trying to figure out why I can't dump and load a ActiveRecord
object with YAML.
Please see the gist below for how to replicate, and the exact error
I'm getting.
https://gist.github.com/84f44da695b218ae9474
Basically I create a new project, new database, and new model.
Create an
I am reading through some code in active_record/relation/query_methods - def
build_where (about line 230); and there are a couple of calls to send.
Here's the first one
[@klass.send(:sanitize_sql, other.empty? ? opts : ([opts] + other))]
and here's the second one
attributes =
William Fisk wrote in post #977984:
I am reading through some code in active_record/relation/query_methods -
def
build_where (about line 230); and there are a couple of calls to send.
Here's the first one
[@klass.send(:sanitize_sql, other.empty? ? opts : ([opts] + other))]
and here's the
bob wrote in post #977980:
Hi, I'm trying to figure out why I can't dump and load a ActiveRecord
object with YAML.
[...]
Er, why? You already have a serialized representation of it in the
database...or are you trying to do some sort of backup and restore (in
which case you might want to look
Ah, thanks, yes that will probably be the reason.
--
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
In a previous project using rails 2 I had to hack into
ActionController::process in order to run some code AFTER the response
had been sent. We have a custom logger that logs to scribe, and we
need to send the http response code in the log message.
What the correct way with rails 3 to run
On Jan 27, 2011, at 1:16 PM, bob wrote:
Hi, I'm trying to figure out why I can't dump and load a ActiveRecord
object with YAML.
Not sure about your error, but you could do...
tom = Dummy.new(:name = 'Tom')
yml = toml.attributes.to_yaml
new_tom = Dummy.new(YAML.load(yml))
or something
On Thu, Jan 27, 2011 at 4:01 PM, William Fisk william.f...@gmail.comwrote:
Ah, thanks, yes that will probably be the reason.
Right... send comes in real handy in testing private methods, use it all the
time
--
You received this message because you are subscribed to the Google Groups
Ruby
redcar is awesome
use to install
$ gem install redcar
$ redcar install
$ redcar
2011/1/27 David Chua zhc...@gmail.com
You don't have to :)
Just use Rails.vim!
On Fri, Jan 28, 2011 at 12:29 AM, Michael Pavling pavl...@gmail.comwrote:
On 27 January 2011 16:25, Fred Ballard
Noes...
Rails.vim it is.
--
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
rubyonrails-talk+unsubscr...@googlegroups.com.
Before Netbeans I used Aptana (Red Rails) at that time, Aptana wasn't
better than Netbeans, but I think now Is a good time for give it a try
On Jan 27, 12:41 pm, Michael Pavling pavl...@gmail.com wrote:
On 27 January 2011 18:31, Michael Pavling pavl...@gmail.com wrote:
Does it have (or can it
On Thu, Jan 27, 2011 at 2:31 AM, Priya D. li...@ruby-forum.com wrote:
I'm creating a new object for a class using irb. At that time, if the
object is created successfully, a new console should be open. The newly
opened console should act as the created object.
so that i can execute all the
eveevans wrote in post #978015:
Before Netbeans I used Aptana (Red Rails) at that time, Aptana wasn't
better than Netbeans, but I think now Is a good time for give it a try
No point. I used to use Aptana also. It's no better for Rails than
NetBeans, and it's buit on Eclipse, which is a lot
Bruno Santos wrote in post #978012:
redcar is awesome
use to install
$ gem install redcar
$ redcar install
$ redcar
Thanks for the reminder. I'll check it out. As I've said elsewhere,
I'll happily use a *good* IDE for Raila if I find one.
Best,
--
Marnen Laibow-Koser
On Jan 27, 9:16 pm, bob larr...@gmail.com wrote:
This general idea, of reconstituting a model from it's YAML
representation works in some of my projects, but not in any new
ones.
I have no idea why this would be the case.
At a guess it looks like during the yaml loading process it calls
I had problems setting up rails ActionMailer on a slicehost site and
contracted with rackspace for email. I would now like to use the
rackspace email server to handle my ActionMailer transactions. My
configuration is set up as follows:
ActionMailer::Base.delivery_method = :smtp
Frederick Cheung wrote in post #978021:
[...]
I seem to recall that
historically, although method_missing etc was overriden to add dynamic
methods, respond_to wasn't, which didn't make AR a very good citizen,
which may be why this works with projects using old versions of rails
How is that
Hello, I'm trying to create a function to send mail with an attached
file. After an hour reading rails documentation and a few intents I
can't figure out this error:
undefined local variable or method 'attachments' for Emailer:Class
Here comes the code of the mail creation function:
class
I had tried that already. My _form.html.erb actually starts with
%= form_for(@user_comment) do |user_comment| %
% if @user_comment.errors.any? %
div id=errorExplanation
h2%= pluralize(@user_comment.errors.count, error) %
prohibited this user comment from being saved:/h2
and I
David G. wrote in post #977740:
I am new to Ruby on Rails and have a very simple foreign key example
that is driving me nuts. I am using Rails 3 under Windows Vista and have
two tables: users and user_comments. user_comments.user_id should
point to the user a comment is about.
In my show
I have attached it - thanks! I am calling this from from a link in the
show of the User class so have enclosed that view as well. Thanks!
Attachments:
http://www.ruby-forum.com/attachment/5807/_form.html.erb
http://www.ruby-forum.com/attachment/5808/show.html.erb
--
Posted via
Please quote when replying.
David G. wrote in post #978047:
I have attached it - thanks! I am calling this from from a link in the
show of the User class so have enclosed that view as well. Thanks!
I'm not sure if this is the direct cause, but it looks like the variable
f isn't defined
David Kahn wrote in post #978011:
On Thu, Jan 27, 2011 at 4:01 PM, William Fisk
william.f...@gmail.comwrote:
Ah, thanks, yes that will probably be the reason.
Right... send comes in real handy in testing private methods, use it all
the
time
Then you've got bigger problems. You shouldn't
Thanks. Same results. So I am also attaching the
user_comments\new.html.erb file. Show of User should let you create a
new comment.
ActionView::Template::Error (undefined method `model_name' for
NilClass:Class):
1: %= form_for(@user_comment) do |user_comment| %
2: % if
I am having the same issue...
--
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
On Thu, Jan 27, 2011 at 9:18 PM, Marnen Laibow-Koser
li...@ruby-forum.com wrote:
Oh, absolutely, but I try to discourage bad choices. Using an IDE for
Rails is IMHO a bad choice.
You're wrong Mamen, not a bad choice at all. You may prefer a plain
editor, that's fine, but that does not make
It seems to me like you ought to be able to call .to_yaml on a
activerecord object and then use YAML.load to reconstitute it.
I'm trying to figure out if something is wrong with my ruby / rails
installation or if this is something that everyone experiences.
Can anyone else verify that after
Xavier Noria wrote in post #978074:
On Thu, Jan 27, 2011 at 9:18 PM, Marnen Laibow-Koser
li...@ruby-forum.com wrote:
Oh, absolutely, but I try to discourage bad choices. Using an IDE for
Rails is IMHO a bad choice.
You're wrong Mamen, not a bad choice at all. You may prefer a plain
editor,
hi, is anyone have used cartographer in rails 3 for google maps.
actually the map is shown to me but the problem is that is want to set
default location and also pointer or marker is not visible on map, to point
the location.
thanks
Regards
Kirti :-)
--
You received this message because you are
hi, is anyone have used cartographer in rails 3 for google map.
actually the map is shown to me but the problem is that I want to set
default location in map
and also pointer or marker is not visible on map, to point the
location,or change the location.
thanks
Regards
Kirti :-)
--
You received
On 27 January 2011 20:08, Marnen Laibow-Koser li...@ruby-forum.com wrote:
Michael Pavling wrote in post #977960:
I *can* code without a debugger integrated (or indeed, at all) - but I
don't want to.
If you were my client, and you responded because I want it when I
asked why a feature was of
On Jan 28, 2:11 am, Marnen Laibow-Koser li...@ruby-forum.com wrote:
Frederick Cheung wrote in post #978021:
[...]
I seem to recall that
historically, although method_missing etc was overriden to add dynamic
methods, respond_to wasn't, which didn't make AR a very good citizen,
which
Why would, in an upgrade from 3.0.1 to 3.0.3, a rake db:migrate run
this:
SELECT schema_migrations.version FROM schema_migrations
vs this ?
SELECT `schema_migrations`.`version` FROM `schema_migrations`
__ rake db:migrate output __
rake aborted!
Mysql::Error: You have an error in your SQL
89 matches
Mail list logo