Comments (5)
The same problem, and searching for the result.
from routing-filter.
I have this same problem, anyone have a solution?
Running on Rails 2.3.8 and routing-filter 0.3.0
from routing-filter.
Any more information on your environment? What's the spree version? Any chance of a small app demoing this bug? Looking at spree I can't really find any similarities between the shared/_taxonomies.html.erb supplied in core and the example given in the gist:
<div id="taxonomies" class="sidebar-item">
<% get_taxonomies.each do |taxonomy| %>
<ul class="navigation-list">
<li<%= ' class="current"' if @taxon && @taxon == taxonomy.root %>><%= link_to t("shop_by_taxonomy", :taxonomy => taxonomy.name.singularize), seo_url(taxonomy.root), :class => 'root' %></li>
<% taxonomy.root.children.each do |taxon| %>
<li<%= ' class="current"' if @taxon and ([@taxon] + @taxon.ancestors).include?(taxon) %>><%= link_to taxon.name, seo_url(taxon) %></li>
<% end %>
</ul>
<% end %>
</div>
from routing-filter.
It looks like I posted my comment on the wrong issue, since I'm not using spree, just plain rails.
Sorry about that.
But anyway, I fixed my problem.
It seems like the default example in the docs does not handle all use cases well.
When I define my around_generate
method, it has to be like this:
def around_generate(*args, &block)
params = args.extract_options!
my_param = params.delete(:my_param)
yield.tap do |result|
#do stuff
end
end
I think that my problem was caused by the filter being called by url helpers trying to generate a url without my required parameter.
from routing-filter.
Closing this one since none of the original posters responded and the latest report is resolved
from routing-filter.
Related Issues (20)
- 0.4.0.pre Does Not Do Proper Routing HOT 5
- Didn't work on rails 4 HOT 2
- Is this gem support alive? HOT 2
- Devise "Not found. Authentication passthru."
- rails4 undefined local variable or method map HOT 5
- Set :include_default_locale to true ignored HOT 5
- Support for case insensitive locales HOT 9
- Is there a plan to support Rails 5 ?
- New release ? HOT 8
- How to use filter in a block?
- I'm not able to make a custom filter work
- Routing Error instead of fallback to en
- Avoiding duplicate content SEO penalty HOT 2
- Why default locale is not fallen back to? HOT 1
- Update routing-filter to allow rails 5.2
- Won't work with Rails 6.1 HOT 5
- Please release new gem version HOT 4
- Filter locale breaks default_url_options in tests (setting the Locale from URL Params)
- README and repo description (on github) reference artweb-design HOT 1
- routing-filter doesn't seem to work with rails 7.1 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from routing-filter.