Displaying 20 results from an estimated 653 matches for "pragmatic".
2006 Apr 20
2
Broomstick - Making Sweeping a Little Bit easer
...ire a single page but no methods to expire an entire action or
controller. This plugin does just that.
This initial release of the plugin only adds one method
(expire_each_page() ) to your disposal. Here?s a quick example and
exactly how it works.
expire_each_page(:controller => ''pragmatic'', :action => ''view'')
The above method will call url_for on the controller/action combo and
expire all pages that are under public/pragmatic/view/ and
public/pragmatic/view.html
expire_each_page(:controller => ''pragmatic'')
The above method w...
2006 May 17
1
rails will page cache all actions but one....why?
I have page caching turned on for all actions in my controller
(pragmatic is it''s name). Rails will cache each actions except for
one.
I''ll list the three ways this action can be called. It is only cached
one of the ways. Can somebody help?
http://www.recentrambles.com/pragmatic/index - This will not cache
httphttp://www.recentrambles.com/pragmati...
2006 Apr 17
1
problem with reverse mapping (url_for problem)
I modified my routes to that you can reach my index action by just
typing in the site name (ie www.mysite.com). I did this by:
map.connect '''', :controller => "pragmatic"
I need to be able to do a url_for(:controller => ''pragmatic'') or
url_for(:controller => ''pragmatic'', :action => ''index'') and have them
map to www.mysite.com/pragmatic or www.mysite.com/pragmatic/index is
this possible?
2014 Apr 18
3
[LLVMdev] RFC: Binary format for instrumentation based profiling data
.... This has to be balanced with
> pragmatism. If we completely disregard the practical concerns of commercial
> use, it makes LLVM hostile towards an important group of users.
Clearly, I can't argue with that. =] We benefit from it as well. And I
don't think I'm arguing against a pragmatic approach in this case, although
I'm sorry if it comes off that way.
Just so we're on the same page, the only real question in my mind is: can
we make breaking changes as we iterate on the design.
What I would like to do is figure out the right design first,
incrementally, trying one forma...
2006 Mar 20
3
can''t get my rss to validate with feedtools
...ols but I
still can''t get my rss feed working. Here''s my code.
feed = FeedTools::Feed.new
feed.entries << FeedTools::FeedItem.new
feed.entries[0].author.name = "Charlie Bowman"
feed.entries[0].title = @post.title
feed.entries[0].link = "http://server:3000/pragmatic/"
feed.entries[0].content = @post.post
# Assumes this is inside a .rxml file
feed.entries[0].build_xml("rss", 2.0,xml)
Here''s what the validator tells me. Thanks for any input!
This feed does not validate.
*
line 1, column 0: Undefined root element: item [hel...
2006 Apr 08
4
rails won''t cache my action
...is created in public/browse/2006.html. The file is
getting created with each request instead of serving the cached version.
What can I do to fix this problem. I''m running rails 1.1 Here is my
routes.rb. I think it might have something to do with the problem.
map.connect ''pragmatic/browse/:id/:page'',
:controller => ''pragmatic'',
:action => ''browse_date'',
:requirements => { :page => /\d+/},
:page => nil,
:id => /\d\d\d\d/
--
Posted via http://www.ruby-forum.com/.
2006 Apr 10
3
can I expire a cached page using a regex?
...roller/view/1 or /controller/view/1/2
how can I expire all pages under /controller/view/? There must be a
way, but I''m stumped. Here''s my broken attempt. Thanks in advance for
any help,suggestions, or directions to a how to page.
expire_action(:controller => ''/pragmatic'',
:action => ''view'',
:id => %r{\d*},
:page => %r{\d*})
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/at...
2006 Aug 13
3
Why isn''t log working (Pragmatic Programming book)
I''m working my way through the Pragmatic Programmer book on RoR.
Following their examples, I have the following code in a controller:
begin
@product = Product.find(params[:id])
rescue
flash[:notice] = "Invalid product"
logger.error("Attempt to access invalid product #{params[:id]}")
redirect_to :ac...
2006 Mar 04
2
unittest, not loading yml data
Here is my products.yml
version_control_book:
id: 1
title: Pragmatic Version Control
description: How to use version control
image_url: /images/sk_svn_small.jpg
price: 29.95
date_available: 2005-01-26 00:00:00
automation_book:
id: 2
title: Pragmatic Project Automation
description: How to automate your pro...
2006 Apr 13
1
[ADV] Pragmatic Studio: Advanced Rails
...nfidence and efficiency.
We?re still finalizing exactly when and where we?ll hold this Studio.
But if you?re seriously interested in attending, please let us know
and we?ll get back to you when the details are confirmed. You can
find out more about this and other Rails Studios at
http://pragmaticstudio.com/
Thanks!
Mike
2005 Mar 02
2
Rails book has a page at Pragmatic Programmers
I noticed a pointer to this in some RSS feed today.
"Agile Web Development with Rails", release date July 4, 2005.
http://www.pragmaticprogrammer.com/titles/rails/index.html
Once you''ve got an ISBN and a title, you''re halfway there. :-) How soon
can we pre-order?
2007 Dec 12
0
[ADV] New Ruby Pragmatic Studio
...Ruby. It''s an ideal course if you''re
new to the language, need a comprehensive refresher, or plan to start
a Rails project. Speaking of which, we also have a Rails Studio
scheduled on March 10-12th, not long after the Ruby Studio.
Details and registration info are at:
http://pragmaticstudio.com
Save $200 by signing up by January 11th.
We hope you''ll join us for some Ruby/Rails fun, and perhaps enjoy
skiing in the Rocky Mountains while you''re at it!
Mike
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed...
2006 Apr 08
2
trouble expiring cached pages
I''m having a bear of a time getting my cached pages to expire. Maybe
one of you guys can help me out. I''ll show my sweeper and then my log
to show that it "should" be working.
class PragmaticSweeper < ActionController::Caching::Sweeper
observe Comment
def after_save(comment)
expire_page(comment.post_id)
end
private
def expire_page(post_id)
logger.error("I made it to the caching method in the SWEEPER!!!!!!")
expire_action(:controller => ''prag...
2007 Dec 14
5
How do I mock params?
.../Users/chris/Documents/Projects/Rails/CommunityCMS/trunk/vendor/rails/actionpack/lib/action_controller/base.rb:1168:in
`send''
-------
I have read how to set the flash and session vars, but I haven''t found
anything on the params.
Thanks for the help
BTW. Has anyone heard if the pragmatic rspec book is still planned to
be released this month?
--
Posted via http://www.ruby-forum.com/.
2006 Jan 23
6
Ruby at O''Reilly Rough Cuts
Not sure if this is old news or not, but it would appear that both the
Ruby Cookbook and a Rails book are now available for purchase at
O''Reilly Rough Cuts (something akin to PragProg''s beta book program):
http://rubyurl.com/nHz
http://my.safaribooksonline.com/?mode=roughcuts&srchtext=ROUGHCUTS
I haven''t tried them yet, but it definitely seems worth checking out.
2014 Apr 16
2
[LLVMdev] RFC: Binary format for instrumentation based profiling data
...mmunity IMO, but you may not agree.
>
I think maintaining support for a legacy format that has never even been
part of an open source LLVM release is a really lame burden to place on the
community. It'll add complexity to Clang and the profile data tools. But
there are many things that make pragmatic sense even though they are lame.
However, I think even worrying about this is getting in the way of
developing an actual *good* file format. I think that the design
discussion, iteration, and evaluation should proceed regardless of what you
happen to do at Apple. Later on, when if you end up needi...
2008 Mar 25
3
[LLVMdev] Apple's GCC and .s/.S files in llvm-test (fwd)
...e wrote:
>
> On Mar 24, 2008, at 5:40 PM, Dale Johannesen wrote:
> [...]
>> I don't see a good way to do
>> full-line comments that works both if you run the preprocessor and if
>> you don't.
>
>
> Could you use "##" instead of "#"?
Pragmatically, that works (as I'm sure you know). Digging into the
legalities of C99 I'm not sure that it's guaranteed to work, though.
Unknown directives actually match the "non-directive" case in the
grammar in 6.10; while nothing is said anywhere about semantics that I
ca...
2006 Jul 14
6
Don''t understand :: in ActionController::Base
Maybe this should apply to Ruby forums directly, but I''ll try here.
I understand the concept of classes and subclasses thanks to the
excellent "Programming Ruby - The Pragmatic Programmer''s Guide".
However, I don''t understand what :: signify in terms of inheritance,
parent and child in e.g.
ActionController::Base
--
Posted via http://www.ruby-forum.com/.
2007 Feb 16
5
rake db:migrate - error 'tSYMBEG'
I''m going through the ''Depot'' project in "Agile Web Development with
Rails". I just made the 003_add_test_data.rb file and when I do a "rake
db:migrate", I get this error and I can''t figure out what is wrong:
rake aborted!
./db/migrate//003_add_test_data.rb:5: parse error, unexpected tSYMBEG
5. :description =>
(and the
2006 Mar 23
3
drag and drop sorting recipe
The new pragmatic Rails Cookbook has a drag and drop sorting recipe. Does
anyone know if this works with 1.0?
I''ve followed the recipe (i think), and I can drag but when I drop
everything goes back the way it was. It seems that the sort logic doesn''t
get invoked.
I put this code in my view:...