You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to spree...@googlegroups.com
Hi Peter.
Thanks for your time. I was going through the documentations earlier.. Unfortunately I can find what I'm looking for or I just over read it.. I was wondering if you could help me. I want to add a new controller/model to spree and make as it was part of the api. Is that possible?
Please correct me if I said something wrong.
Thanks.
Peter Berkenbosch
unread,
Jan 28, 2014, 5:54:54 AM1/28/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to spree...@googlegroups.com
Yes, that’s possible. You just need write the ruby code for that in your application or extension.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to spree...@googlegroups.com
Oh. Do I need to extend the controllers to a specific spree class?
Gagan Babber
unread,
Aug 25, 2014, 3:43:02 AM8/25/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to spree...@googlegroups.com
Hey I want to add an admin controller to spree but i could not find any documentation on how to do it . Can u tell me whats the best way to do it. Kinda new to spree and im using latets version of spree
Peter Berkenbosch
unread,
Aug 25, 2014, 4:26:44 AM8/25/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to spree...@googlegroups.com
You can just generate a controller and decorate the route file for the backend gem.
You just override whichever ResourceController methods you want to within the controller if needed.
Bryan Stone
unread,
Jan 13, 2015, 4:12:26 PM1/13/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to spree...@googlegroups.com
Thank you - I did have success building a new controller using that template. If anyone else needs to see a real-world example of an extension adding a custom controller - you can view the extension I just released: https://github.com/aegixx/spree_alternate_prices. In particular, the price_categories_controller. The controller is slim, so you'll want to see the views for how I access the resources using @collection & @object.
--
--Bryan
Bryan Stone
unread,
Jan 30, 2015, 2:30:44 PM1/30/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message