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
ianwhite-pickle-0.1.10 rails_generators/pickle/templates/paths.rb
ianwhite-pickle-0.1.11 rails_generators/pickle/templates/paths.rb
ianwhite-pickle-0.1.12 rails_generators/pickle/templates/paths.rb
ianwhite-pickle-0.1.13 rails_generators/pickle/templates/paths.rb
ianwhite-pickle-0.1.14 rails_generators/pickle/templates/paths.rb
ianwhite-pickle-0.1.15 rails_generators/pickle/templates/paths.rb
mrflip-pickle-0.1.13 rails_generators/pickle/templates/paths.rb
pickle-0.2.11 rails_generators/pickle/templates/paths.rb
pickle-0.2.10 rails_generators/pickle/templates/paths.rb
pickle-0.2.9 rails_generators/pickle/templates/paths.rb
pickle-0.2.8 rails_generators/pickle/templates/paths.rb
pickle-0.2.7 rails_generators/pickle/templates/paths.rb
pickle-0.2.6 rails_generators/pickle/templates/paths.rb
pickle-0.2.5 rails_generators/pickle/templates/paths.rb
pickle-0.2.4 rails_generators/pickle/templates/paths.rb
pickle-0.2.3 rails_generators/pickle/templates/paths.rb
pickle-0.2.2 rails_generators/pickle/templates/paths.rb
kbaum-pickle-0.2.1.4 rails_generators/pickle/templates/paths.rb
kbaum-pickle-0.2.1.3 rails_generators/pickle/templates/paths.rb
kbaum-pickle-0.2.1.2 rails_generators/pickle/templates/paths.rb