Doing a fresh install using the namespace branch creates a
products_promotion_rules table that doesn't have the spree_ prefix. I
assume this is an oversight.
Chris
> --
> You received this message because you are subscribed to the Google Groups
> "Spree" group.
> To post to this group, send email to spree...@googlegroups.com.
> To unsubscribe from this group, send email to
> spree-user+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/spree-user?hl=en.
>
[2011-11-06 17:14:17] INFO WEBrick 1.3.1
[2011-11-06 17:14:17] INFO ruby 1.9.2 (2011-07-09) [x86_64-darwin11.0.0]
[2011-11-06 17:14:17] INFO WEBrick::HTTPServer#start: pid=69540 port=3000
Started GET "/" for 127.0.0.1 at 2011-11-06 17:16:14 +0900
ActionController::RoutingError (No route matches [GET] "/"):
The steps that I followed to create the app (using the namespace
branch, including the commit 29bc416203b08ef0e9293cb49169fefb0e0187c6)
1) rails new junk
2) add (gem 'spree', :path => '/path/to/namespaced/spree/clone') to the Gemfile
3) bundle install
4) rails g spree:site
5) bundle exec rake db:migrate
6) bundle exec rake db:seed
7) open web browser and go to http://localhost:3000
So what am I missing?
Thanks,
Chris
Rendered core/app/views/spree/shared/_nav_bar.html.erb (2423.7ms)
Completed 500 Internal Server Error in 3162ms
ActionView::Template::Error (undefined local variable or method
`spree_auth' for #<#<Class:0x007ff8f72232b8>:0x007ff8f721d1d8>):
4: <li><%= link_to t(:my_account), spree_auth.account_path %></li>
5: <li><%= link_to t(:logout),
spree_auth.destroy_user_session_path %></li>
6: <% else %>
7: <li><%= link_to t(:log_in), spree_auth.login_path %></li>
8: <% end %>
9: <% if store_menu? %>
10: <%= render :partial => 'spree/shared/store_menu' %>
I'm thinking I should wait a while longer before messing with it. I
was hoping to start modifying my personal extensions to work with it,
but it looks like I may want to wait a while.
Chris
Chris
I'm using Ruby 1.9.2 if that makes a difference. Although that's what
I've been using ever since it was released without any known issues.
Chris
Junk::Application.routes.draw do
mount Spree::Core::Engine, :at => "/"
end
I assume that is correct.
Chris
That works for now. I'll let you know if I run into anything else.
Thanks,
Chris
ActionController::RoutingError (No route matches [GET] "/"):
The routing-filter gem works great for me with Spree 0.70.x.
NOTE: It fails just by adding the routing-filter gem to the Gemfile,
no configuration changes are needed to cause it to fail.
I wish I could be more help tracking this stuff down for you, but I
still don't fully understand how all the mountable apps stuff works.
Chris
If fails on the namespaced branch even before adding my extension to
the mix. Pure namespaced branch and the routing-filter gem causes
Spree's routing to stop working. I REALLY need a solution to this
though because losing the routing-filter gem is not an option for my
project.
Chris
> --
> You received this message because you are subscribed to the Google Groups
> "Spree" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/spree-user/-/zu_RXBDmWi4J.
Rails.application.routes.draw do
# Add your extension routes here
filter :locale
end
Although that line of code is happening in an extension that I haven't
even included yet. At this point just placing the routing-filter gem
in the Gemfile causes Spree to break.
This doesn't happen on the master branch, just the namespace branch.
I assume it has something to do with the isolation for mountable apps.
I'm also doing some more complicated route changes with my own custom
filter, but again, I haven't even put that extension in the gemfile
yet.
The documentation for routing-filter isn't great, but it can be found here:
https://github.com/svenfuchs/routing-filter
Basically it will prepend the locale to the urls that are created, and
then strip them off before the app sees them. So it allows me to have
unique urls for the different languages and as far as Spree knows the
change never happened. So the Spree code continues to use the normal
rails url generation methods without needing to be tweaked to pass in
the locale parameter.
My custom filters are more complicated, but the idea is the same.
Thanks again,
Chris
Ryan, you should also have direct commit access to the guides (FYI).
On Tuesday, 8 November 2011 at 2:55 AM, Sean Schofield wrote:
I'll open an issue to update the Getting Started guide.
Ryan, you should also have direct commit access to the guides (FYI).