First thanks a lot for this series on paypal, it helps me a lot.
I have tried to pass variable like 'shipping' or 'handling' for global cost but it seems it's ignored. On last resort i have passed the shipping value as a product line. Do you know why it's not working ? (plus if you could make an update about the new paypal developer section, i'm kinda lost there)
One thing is noticed was that you did not spent a lot of time on the difference between split testing and multivariate testing.
What you presented was a multivariate test, but if the viewer is new to testing and the terminology, a few words about the types of tests might help clear up the field.
I'm having some problem with the validation i had before the cropping. See, I'm validating the "group_id" of the user in the model. So when I try to crop, the validation raises errors. I tried this: validates_presence_of [:name, :group_id], :unless => :cropping?
Hey there!
I just want to see the search method which is used in the tutorial video and how the search results are listed when its found.
Can anybody help me?
i am new ro ruby/gems. I just want to use deadweight to detect unused css in my web application.
I have the following installed
# ruby version : 1.8.5
# gem : 1.3.5
# rails : 2.3.5
I installed rake using the command, gem install --remote rake.
Following was the output.
WARNING: Installing to ~/.gem since /usr/lib/ruby/gems/1.8 and
/usr/bin aren't both writable.
WARNING: You don't have /home/test/.gem/ruby/1.8/bin in your PATH,
gem executables will not run.
Successfully installed rake-0.8.7
1 gem installed
/usr/lib/ruby/gems/1.8/gems/rdoc-2.5.8/lib/rdoc/ruby_lex.rb:67: warning: parenthesize argument(s) for future version
Installing ri documentation for rake-0.8.7...
Installing RDoc documentation for rake-0.8.7...
Now when i try rake command, i get the following error. Not able to find the solution through google.
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
/home/test/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2377:in `raw_load_rakefile'
(See full trace by running task with --trace)
Can you pls help me.
As a curious aside, the trick I like best here doesn't seem to be working for me in a new Rails 3 app:
yield(:title) || 'some default'
no longer works because content_for returns a blank string when there's nothing for it to do for the particular symbol. From the debugger:
(rdb:1) eval content_for(:title)
""
I'm not quite sure how to code up a better hack. The following came to mind:
%title= yield_or_default(:title, 'some default')
but then you end up trying to call yield in your helper method on a symbol and not a block and it just freaks out, because that's not your layout's yield!
def yield_or_default(symbol, default)
output = yield(symbol) # blarf!
output = default if output.blank?
output
end
Use the 1st one for the general setup and then use the 2nd link to see how your zone file should be setup. I had to have my zone file spaced/tabbed just perfectly to get BIND working on Snow Leopard properly.
One note, when you grab that .zone file config from the 2nd link don't use your mac's local IP address, use 127.0.0.1 like it says to do in the first article.
I'm a bit of a newbie to all this and after a few hours of experimenting today, I couldn't for the life of me work out how to the Feedzirra in Cron with Whenever. Any ideas?
Great episode, it will help me a lot since my website which I plan to rewrite to Rails (from PHP) is dealing with exact event calendar you showed. Thanks!
I'm becoming addicted to your Railscasts. I've just about decided to convert the two websites I act as webmaster for to Rails, and your Railscasts are making Rails more and more tempting.
Do you know of any calendar plugin/helper that handles "weekly" events such as a class that's held on Tuesdays from May 4th through June 29th?
It seem that this works with has_many:through, at least from Rails 2.3.5. I am using this method successfully with a has_many :through :polymorphic association.
First thanks a lot for this series on paypal, it helps me a lot.
I have tried to pass variable like 'shipping' or 'handling' for global cost but it seems it's ignored. On last resort i have passed the shipping value as a product line. Do you know why it's not working ? (plus if you could make an update about the new paypal developer section, i'm kinda lost there)
I am getting the following error ... Not sure how to fix it ...Looks like the .js is called but is unable to render ....
Processing ClientsController#index to js (for 127.0.0.1 at 2010-05-23 05:59:27) [GET]
Parameters: {"search"=>"A"}
[4;36;1mClient Load (1.0ms)[0m [0;1mSELECT * FROM `clients` [0m
Completed in 19ms (View: 3, DB: 2) | 406 Not Acceptable [http://localhost/clients.js?search=A]
arch=A]
Thanks... I was missing deliver_ in front of method calls.
Teuf: I think it should be: UserMailer.registration_confirmation(@user).delay.deliver
Ive not tried this yet but if you are caching you products page for example. Would the ab testing still work or would you need a workaround
Thanks for the post Ryan, great as usual.
Thank you Ryan for another great episode.
One thing is noticed was that you did not spent a lot of time on the difference between split testing and multivariate testing.
What you presented was a multivariate test, but if the viewer is new to testing and the terminology, a few words about the types of tests might help clear up the field.
Otherwise great simple introduction.
Nevermind, i figured it out
I'm having some problem with the validation i had before the cropping. See, I'm validating the "group_id" of the user in the model. So when I try to crop, the validation raises errors. I tried this: validates_presence_of [:name, :group_id], :unless => :cropping?
but it doesnt work.
Anyone could help me out?
http://railscasts.com/episodes/196-nested-model-form-part-1 (and part 2)
talks about use of accepts_nested_attributes_for
just incase you read all the way down here are are wondering....
Hey there!
I just want to see the search method which is used in the tutorial video and how the search results are listed when its found.
Can anybody help me?
A/Bingo is not a bad solutions, seems to be similar to vanity.
Anyways I'll stick with vanity thanks for the awesome screencast.
can i ask?
how about if u want to do something like this....
id_files = 123,245,567
find(:all, :conditions => ["id in (?)", [id_files]])
Will Rails 3 have this functionality out of the box? For example, when I do script/generate scaffolding, will it create AJAX scaffolding too?
Why don't you make a plugin? Maybe acts_as_tabless? :)
Awesome screencast as usual. Haven't needed to do any A/B testing so far, but this seems like the perfect excuse to start.
For Rails 3.0.0.beta3, in config/application.rb, use this syntax --
config.secret_token = '[secret copied from cookie_verification_secret.rb]'
Hi,
I try to use this with delayed_jod.
UserMailer.delay.registration_confirmation(@user).deliver
undefined method `deliver' for #<Delayed::Backend::ActiveRecord::Job:0xb6277a48>
Any idea ?
i am new ro ruby/gems. I just want to use deadweight to detect unused css in my web application.
I have the following installed
# ruby version : 1.8.5
# gem : 1.3.5
# rails : 2.3.5
I installed rake using the command, gem install --remote rake.
Following was the output.
WARNING: Installing to ~/.gem since /usr/lib/ruby/gems/1.8 and
/usr/bin aren't both writable.
WARNING: You don't have /home/test/.gem/ruby/1.8/bin in your PATH,
gem executables will not run.
Successfully installed rake-0.8.7
1 gem installed
/usr/lib/ruby/gems/1.8/gems/rdoc-2.5.8/lib/rdoc/ruby_lex.rb:67: warning: parenthesize argument(s) for future version
Installing ri documentation for rake-0.8.7...
Installing RDoc documentation for rake-0.8.7...
Now when i try rake command, i get the following error. Not able to find the solution through google.
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
/home/test/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2377:in `raw_load_rakefile'
(See full trace by running task with --trace)
Can you pls help me.
Thanks,
Dev
Not a huge deal but the code in the git repo is different than what was shown in the Railscast.
I think the git repo had some type of todo list, while the code in the cast was a signup form.
tester
Come up with a decent work-around, here's a blog post explaining it:
http://www.zetetic.net/blog/2010/05/18/pretty-page-title-in-rails-3
And here's a straight gist:
http://gist.github.com/405129
Thanks again for all the Railscasts, Ryan!
Billy
Man this is awesome! I love your screencasts :)
Another excellent screencast!
I'm wondering if the code in the third code box should read:
<%= title signup_title %>
instead of:
<% title "Free Sign up" %>
As a curious aside, the trick I like best here doesn't seem to be working for me in a new Rails 3 app:
yield(:title) || 'some default'
no longer works because content_for returns a blank string when there's nothing for it to do for the particular symbol. From the debugger:
(rdb:1) eval content_for(:title)
""
I'm not quite sure how to code up a better hack. The following came to mind:
%title= yield_or_default(:title, 'some default')
but then you end up trying to call yield in your helper method on a symbol and not a block and it just freaks out, because that's not your layout's yield!
def yield_or_default(symbol, default)
output = yield(symbol) # blarf!
output = default if output.blank?
output
end
Useful my by fork of table_builder is more useful :)
If you want to use a local DNS server I'd recommend these 2 posts:
http://woss.name/blog/2006/11/13/setting-up-a-local-name-server-on-mac-os-x.html
http://geoffhankerson.com/node/108
Use the 1st one for the general setup and then use the 2nd link to see how your zone file should be setup. I had to have my zone file spaced/tabbed just perfectly to get BIND working on Snow Leopard properly.
One note, when you grab that .zone file config from the 2nd link don't use your mac's local IP address, use 127.0.0.1 like it says to do in the first article.
G'luck!
-Jon
You must've read my mind! I've been trying to implement A/Bingo lately and kept getting the 'frozen array' error, so thanks for the patch.
Информационная среда
this is What I needed When I needed it, Thanks Ryan!!!
Ryan,
Thank you so much for doing this episode!
I really appreciate all the hard work you put in each week.
To get this to work in Rails 3, I had to put [] around new_object in the link_to_add_fields method in application_helper.
This is because fields_for_with_nested_attributes only applies the child_index option when given an array, and not a single object.
http://gist.github.com/403687
@Philipp Kursawe
Cucumber deprecated table_at and element at so do this:
html_table = tableish("table#products tr", "td" ).to_a
You're basically telling cucumber it is a table with product id, tr has header and td for columns.
And also looks like you don't need to escape symbols anymore.
GL.
Thanks for this nice introduction to rails A/B testing, there was also a talk some time ago about this topic that can be reached here:
http://rubyconf2009.confreaks.com/19-nov-2009-17-15-how-tdd-missed-the-point-introducing-edd-nathaniel-talbott.html
I'm a bit of a newbie to all this and after a few hours of experimenting today, I couldn't for the life of me work out how to the Feedzirra in Cron with Whenever. Any ideas?
Данные о сайтах Интернета
Каталог автомобильных компаний
This may be of some use if you need to use multiple datepickers on the same form.
http://mentalreset.blogspot.com/2010/02/jqueryui-datepicker-on-multiple.html
The trick was that the datepicker plugin seems to require an id on the designated field when multiple datepickers exist on the same form.
Date.parse on my system said a date in the form YYYY-MM was an invalid date. YYYY/MM is what it was looking for.
Mac OS X 10.6.3
ruby 1.8.7 (2009-06-08 patchlevel 173) [universal-darwin10.0]
Rails 2.3.5
Is is possible to save to two models when signing up? For example I want to save User and Address model during registration.
Old thread but it was helpful for me. thanx
Beware, the url for jQuery UI css is old. They're at 1.8.1 now. Just replace the version in the url and you'll be fine.
Great episode !
Lars > I have the same problem. The plugin doesn't work with rails3.
Is anybody has an idea ? I tryed to add some html_safe into the plugin, but it's not working !
Great episode, it will help me a lot since my website which I plan to rewrite to Rails (from PHP) is dealing with exact event calendar you showed. Thanks!
I have a security question which isn't rails specific but very relevant to this episode..
Why do I have to encrypt the data if I send it to a paypal secure https ? isn't the https take care of encrypting the data before sending the form?
Ryan I couldn't get to where I am today without your excellent work!
Thanks!
I was very impressed * with tutorials that you serve, feel very fortunate to be able to visit your site
Dear Ryan,
Thank you so much. One question I had about this screencast is, how on earth do you test something like this?
Ryan,
I'm becoming addicted to your Railscasts. I've just about decided to convert the two websites I act as webmaster for to Rails, and your Railscasts are making Rails more and more tempting.
Do you know of any calendar plugin/helper that handles "weekly" events such as a class that's held on Tuesdays from May 4th through June 29th?
It seem that this works with has_many:through, at least from Rails 2.3.5. I am using this method successfully with a has_many :through :polymorphic association.
Cool blog. I look forward to returning. Luck!
Great screencast!
wish it had been around 3 months ago when I made a rails app for the company I work for I ended up making a calendar myself