Displaying 20 results from an estimated 653 matches for "pragmatically".
Did you mean:
dramatically
2006 Apr 20
2
Broomstick - Making Sweeping a Little Bit easer
Page sweeping just got a whole lot easier! Rails only offers methods to
expire 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'',
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/pragmatic This will not
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
2014 Apr 18
3
[LLVMdev] RFC: Binary format for instrumentation based profiling data
On Fri, Apr 18, 2014 at 12:22 PM, Evan Cheng <evan.cheng at apple.com> wrote:
> I agree the top priority should always be "getting it right”. But I can’t
> agree with this thinking completely. 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,
2006 Mar 20
3
can''t get my rss to validate with feedtools
I know that I''m doing something wrong, but I can''t figure out what.
I''ve looked at every wiki and tutorial I can find on feedtools 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 =
2006 Apr 08
4
rails won''t cache my action
I''ve decided to dive into page caching for my rails app. I''m doing my
testing with webbrick and it refuses to display the cached page for a
particular action. I''ve modified my paginator helper to put the page
parameter in the url so that the paginated page can be used with
caching. This works perfectly when the page parameter is in the url (ie
browse/2006/2 or
2006 Apr 10
3
can I expire a cached page using a regex?
I''m trying to expire all pages under my view action. These could
be /controller/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 =>
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 :action => :index
else
@cart = find_cart
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 project
2006 Apr 13
1
[ADV] Pragmatic Studio: Advanced Rails
Hi Folks,
We''re excited to announce that Dave Thomas and I will be teaching an
Advanced Rails Studio: a hands-on, master-level workshop where you''ll
learn the cutting-edge techniques used by the experts to build killer
Rails apps with confidence and efficiency.
We?re still finalizing exactly when and where we?ll hold this Studio.
But if you?re seriously interested in
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
Hi Folks -
Just a quick reminder before the end of the year...
We have a new Ruby Studio coming up on February 27-29th, taught by
Dave Thomas and Chad Fowler. They''ll help you get up to speed on
object-oriented programming with 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
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)
2007 Dec 14
5
How do I mock params?
Here is the code within the controller:
Line 69: @photo = @member.build_photo(params[:photo]) unless
params[:photo][:uploaded_data].blank?
I got a little ahead of myself and wrote the code, and now have a bunch
of errors telling me that:
-------
6)
NoMethodError in ''Spec::Rails::Example::ControllerExampleGroup
MembersController handling PUT /members/1 should find the member
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
On Wed, Apr 16, 2014 at 2:15 PM, Bob Wilson <bob.wilson at apple.com> wrote:
> On Apr 16, 2014, at 2:01 PM, Chandler Carruth <chandlerc at google.com>
> wrote:
>
>
> On Wed, Apr 16, 2014 at 10:48 AM, Bob Wilson <bob.wilson at apple.com> wrote:
>
>> We need to settle of a file format ASAP for our internal work, but from
>> the perspective of the LLVM
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
can fi...
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:
<%= sortable_element ''task-list'' ,
:url => {