WOWWWWWW, I spend all the morning looking for something like this!, don't get me wrong!, but I think I'm starting to loving YOU!!!!!(LOL!) THANKS A LOT!!!!!!!!!!!
I'm trying to test a rails helper using CanCan but keep getting an undefined method error:
"undefined method `can?' for #<Spec::Rails::Example::HelperExampleGroup::HelperObject:0x10359ab38>"
Rspec view tests that call the same helper method run, but not the helper test. For now, I've mocked the 'can?' method, but I'd rather have CanCan called. Can this be done?
Got a problem with the show view,
Only get the attributs stored in the model search
that's the partial:
[CODE]
<p>
<strong>Keywords:</strong>
<%=h @search.keywords %>
Great and easy to implement but I'm running into a problem. How would add sorting to a table that contains data from a linked table?
Example: I have a Product model that has an assigned Product Type. Currently I get an error when trying to add sorting on the Product.ProductType.Name column.
I was surprised at the chart engine choice for this podcast.
From my experience, FusionCharts Free is a much better product and unlkie Highcharts you can freely use it for Corporate projects (external and internal). They also have a full sample Rails app you can download to see how things work with a Rails app.
http://www.fusioncharts.com/free/
Keep up the good work - I really appreciate these podcasts. I've learned a lot.
Great episode (as always, actually). I would be highly interested in more episodes like this. I find it really interesting how the internals of Rails work but going through the code on your own can be quite overwhelming sometimes.
Yet another decent episode, thanks Ryan! Would be awesome if you are able to do an episode on CoffeeScript sometime soon, there are loads of benefits over writing your code in Javascript and the syntax is not far off from Ruby :)
Great episode! I personally am definitely for having more episodes like this, because when anyone reaches a high level of expertise, one of the only ways to evolve remains to read the source. Your help with this will be greatly appreciated IMHO. But there should be some stuff for beginners too.
+1 For interested in this type of railscast. I'd love to hear more about the internals of routes. Also, internals of other ruby projects like bundler and arel would be interesting.
no such file to load -- populator
I'm running on Mac OSX
Great episode, I'm sure I will watch it many time!!
I would like to watch more episodes about internals of Rails :)
Great episode, Ryan. More of those please! :)
thanks a lot!!
Bug with SQLite 3 ?
http://github.com/ryanb/populator/issuesearch?state=open&q=undefined#issue/8
Works for me !
nice
with Rails3 out, and MongoID becoming more and more popular, it would be great to do a RailsCast about MongoID
WOWWWWWW, I spend all the morning looking for something like this!, don't get me wrong!, but I think I'm starting to loving YOU!!!!!(LOL!) THANKS A LOT!!!!!!!!!!!
Great episode, it is very good to show how to study rails code :-]
Not work with cyrillic's symbols. Help me.
Another great episode! Much appreciated! I would also love to see more episodes like this.
I would love to see more episodes like this! Thanks Ryan.
Thanks for your videos, Ryan.
I'm particularly interested on more screencasts peeking inside Rails source code!
Regards.
Great job, Ryan. Thank you so much!
Great screencast as always. I would love to see an episode (or a series of episodes) on ActiveRecord internals.
Pronounce it roots and rooting - please! :)
I'm trying to test a rails helper using CanCan but keep getting an undefined method error:
"undefined method `can?' for #<Spec::Rails::Example::HelperExampleGroup::HelperObject:0x10359ab38>"
Rspec view tests that call the same helper method run, but not the helper test. For now, I've mocked the 'can?' method, but I'd rather have CanCan called. Can this be done?
Got a problem with the show view,
Only get the attributs stored in the model search
that's the partial:
[CODE]
<p>
<strong>Keywords:</strong>
<%=h @search.keywords %>
</p>
<p>
<strong>Rezepthauptgruppen:</strong>
<%=h @search.rezepthauptgruppe_id %>
</p>
<p>
<strong>Rezeptuntergruppen:</strong>
<%=h @search.rezeptuntergruppe_id %>
</p>
<p>
<strong>Preis Pro Portion:</strong>
<%=h @search.preis_pro_portion %>
</p>
<p>
<strong>Kj:</strong>
<%=h @search.kj %>
</p>
[/CODE]
Thats the model
[CODE]
def rezept
@rezepte ||= find_rezepte
end
private
def find_rezepte
Rezept.find(:all, :conditions => conditions)
end
def keyword_conditions
["rezepte.rezept LIKE ?", "%#{keywords}%"] unless keywords.blank?
end
def preis_pro_person_conditions
["rezepte.preis_pro_portion <= ?", preis_pro_portion] unless preis_pro_portion.blank?
end
def kj_conditions
["rezepte.kj <= ?", kj] unless kj.blank?
end
def hauptgruppen_conditions
["rezepte.rezepthauptgruppe_id = ?", rezepthauptgruppe_id] unless rezepthauptgruppe_id.blank?
end
def untergruppen_conditions
["rezepte.rezeptuntergruppe_id = ?", rezeptuntergruppe_id] unless rezeptuntergruppe_id.blank?
end
def conditions
[conditions_clauses.join(' AND '), *conditions_options]
end
def conditions_clauses
conditions_parts.map { |condition| condition.first }
end
def conditions_options
conditions_parts.map { |condition| condition[1..-1] }.flatten
end
def conditions_parts
private_methods(false).grep(/_conditions$/).map { |m| send(m) }.compact
end
[/CODE]
thats the log:
Processing SearchesController#show (for 127.0.0.1 at 2010-09-15 18:38:20) [GET]
Parameters: {"id"=>"30"}
?[4;36;1mSearch Columns (0.0ms)?[0m ?[0;1mSHOW FIELDS FROM `searches`?[0m
?[4;35;1mSearch Load (0.0ms)?[0m ?[0mSELECT * FROM `searches` WHERE (`searches`.`id` = 30) ?[0m
Rendering template within layouts/application
Rendering searches/show
?[4;36;1mRezept Load (0.0ms)?[0m ?[0;1mSELECT * FROM `rezepte` WHERE (rezepte.preis_pro_portion <= 5 AND rezepte.rezepthauptgruppe_id = 4 AND rezepte.kj <=800) ?[0m
Rendered rezepte/_rezept (0.0ms)
Rendered rezepte/_rezept (0.0ms)
what did I wrong?
Thanks
TimE
Great show. I liked looking at the Rails internals. More shows like this every now and again would be great!
My following code not working, please guide, thanks.
@params['body'].each do |contact|
@c = Contact.find(:all, :conditions=> ["contact_id = ?", contact["contact_id"]])
if @c.count > 0
# update record
else
# insert record
end
end
Thank you Ryan for great episode. it is a really cool idea to make screencasts about internals of rails! Thank you!
Really nice!
Looking forward for other episode like this one...
Maybe on active record ?
Thanks!
Loved it.
Great and easy to implement but I'm running into a problem. How would add sorting to a table that contains data from a linked table?
Example: I have a Product model that has an assigned Product Type. Currently I get an error when trying to add sorting on the Product.ProductType.Name column.
Any thoughts?
I was surprised at the chart engine choice for this podcast.
From my experience, FusionCharts Free is a much better product and unlkie Highcharts you can freely use it for Corporate projects (external and internal). They also have a full sample Rails app you can download to see how things work with a Rails app.
http://www.fusioncharts.com/free/
Keep up the good work - I really appreciate these podcasts. I've learned a lot.
Great as usual.
Walking through internal is something rails guru should encourage more often.
Thank you
Realy nice screencast as always.
That was one of the best screencast.
I would love to see more like that. Thx
A great episode, and would love to have more Rails internals episodes like this one. Thanks Ryan -- great work as always.
Thank you for the screencast, Ryan.
I also would like more episodes about the internals of Ruby on Rails 3.0.
i love this episode sooooo much.because it show me how to read rails's source code. thank you ryan!very great job.
Very nice episode.
I would really like to see more on the rails internals.
Very nice episode.
I would really like to see more on the rails internals.
Excellent episode, I look forward for more like this because is the best way to improve my skills on Ruby and Rails itself. Thank you, Ryan.
Loved the episode, I hope to see more like this. The internals of rails has always scared me and I never know where to start, so thanks for this.
Great episode (as always, actually). I would be highly interested in more episodes like this. I find it really interesting how the internals of Rails work but going through the code on your own can be quite overwhelming sometimes.
Yet another decent episode, thanks Ryan! Would be awesome if you are able to do an episode on CoffeeScript sometime soon, there are loads of benefits over writing your code in Javascript and the syntax is not far off from Ruby :)
Awesome episode! More episodes like this would be infinitely useful. Thanks Ryan!
Crystal clear, thanks
Great episode! I personally am definitely for having more episodes like this, because when anyone reaches a high level of expertise, one of the only ways to evolve remains to read the source. Your help with this will be greatly appreciated IMHO. But there should be some stuff for beginners too.
Great idea for an episode! I'd love to see more of this :-)
Hi Ryan! Thanks for this one! I would definitely like to see more on rails internals :)
I'm looking forward for more advanced rails code walkthroughs :)
Hello! Great screencast. Hope to see more about Rails internals!
Thank you, Rayan!
Great episode! thanks for working through rails internals.
This cast about Rails routes design is particularly interesting and very educational, thank you! Impressive work.
Ryan! This was amazing!
I don't think everybody understood it but it is very nice to have a more complex episode.
For people who are new to rails there are a lot of "old" screencasts. But this is something totally different :)
I hope this will encourage people to look in the source code.
once again thanxs! very nice
birlik otomasyon sistemleri
As usual, thanks for your awesome screencasts!
+1 For interested in this type of railscast. I'd love to hear more about the internals of routes. Also, internals of other ruby projects like bundler and arel would be interesting.
Definitely enjoyed the look at Rails internals - I'd really hope you look at doing some more!