Sha256: c1c02299fede1b60f024592e8343a546238034d09124126797ccb67687d7dfea

Contents?: true

Size: 923 Bytes

Versions: 31

Compression:

Stored size: 923 Bytes

Contents

<%= current_paths_header %>
    # added by script/generate pickle path

    when /^#{capture_model}(?:'s)? page$/                           # eg. the forum's page
      path_to_pickle $1

    when /^#{capture_model}(?:'s)? #{capture_model}(?:'s)? page$/   # eg. the forum's post's page
      path_to_pickle $1, $2

    when /^#{capture_model}(?:'s)? #{capture_model}'s (.+?) page$/  # eg. the forum's post's comments page
      path_to_pickle $1, $2, :extra => $3                           #  or the forum's post's edit page

    when /^#{capture_model}(?:'s)? (.+?) page$/                     # eg. the forum's posts page
      path_to_pickle $1, :extra => $2                               #  or the forum's edit page

    when /^the (.+?) page$/                                         # translate to named route
      send "#{$1.downcase.gsub(' ','_')}_path"
  
    # end added by pickle path
<%= current_paths_footer %>

Version data entries

31 entries across 31 versions & 4 rubygems

Version Path
kbaum-pickle-0.2.1.1 rails_generators/pickle/templates/paths.rb
pickle-0.2.1 rails_generators/pickle/templates/paths.rb
pickle-0.2.0 rails_generators/pickle/templates/paths.rb
pickle-0.1.23 rails_generators/pickle/templates/paths.rb
pickle-0.1.22 rails_generators/pickle/templates/paths.rb
pickle-0.1.21 rails_generators/pickle/templates/paths.rb
pickle-0.1.20 rails_generators/pickle/templates/paths.rb
pickle-0.1.19 rails_generators/pickle/templates/paths.rb
pickle-0.1.18 rails_generators/pickle/templates/paths.rb
pickle-0.1.17 rails_generators/pickle/templates/paths.rb
pickle-0.1.16 rails_generators/pickle/templates/paths.rb