Comments (13)
use rake refinery:override
from refinerycms-calendar.
I've tried that.
rake refinery:override controller=events
rake refinery:override controller=refinery/events
rake refinery:override controller=refinery/calendar/events
rake refinery:override controller=calendar/events
And it hasn't worked. What path should I be passing in?
I have been playing with making a 'decorator controller,' but it seems it'd be easier and less redundant just to override the controller itself.
Thanks!
Steve
On Nov 8, 2012, at 11:17 PM, Philip Arndt [email protected] wrote:
use rake refinery:override
—
Reply to this email directly or view it on GitHub.
from refinerycms-calendar.
It should be
rake refinery:override controller=refinery/calendar/events
Puzzled that it's not working. Which version are you using?
from refinerycms-calendar.
Thanks, that did work. I think I must have misspelled something. Ugh.
Thanks again and sorry to bother.
Steve
p.s. I have this in my Gemfile:
gem 'refinerycms-calendar', '~>2.0.0'
On Nov 8, 2012, at 11:31 PM, Philip Arndt [email protected] wrote:
It should be
rake refinery:override controller=refinery/calendar/events
Puzzled that it's not working. Which version are you using?—
Reply to this email directly or view it on GitHub.
from refinerycms-calendar.
Awesome - glad it works :-)
from refinerycms-calendar.
Yup.
Thanks.
How hard is it to add columns to the model provided? e.g., I'd like to add a boolean to the event to mark school as closed, which would then trigger some css in the grid making it obvious that the school is shut on that particular day.
Thanks,
Steve
ps -> very first crack with some demo data and custom view attached.
On Nov 8, 2012, at 11:39 PM, Philip Arndt [email protected] wrote:
Awesome - glad it works :-)
—
Reply to this email directly or view it on GitHub.
from refinerycms-calendar.
You can do it just like rails:
rails g migration add_open_to_refinery_events open:boolean
You then have to handle that in the views like in Rails, meaning you may have to override the frontend views.
from refinerycms-calendar.
Ah, ok. Thanks. I will go for that. Have a good day.
Steve
On Nov 9, 2012, at 12:06 AM, Philip Arndt [email protected] wrote:
You can do it just like rails:
rails g migration add_open_to_refinery_events open:boolean
You then have to handle that in the views like in Rails, meaning you may have to override the frontend views.—
Reply to this email directly or view it on GitHub.
from refinerycms-calendar.
You too :-)
from refinerycms-calendar.
Cool. How do I edit the admin view? Is it possible to override admin views? Adding a text field called event_category and will use a simple select for three event categories.
Thanks heaps,
Steve
On Nov 9, 2012, at 12:06 AM, Philip Arndt [email protected] wrote:
rails g migration add_open_to_refinery_events open:boolean
from refinerycms-calendar.
Yep just use the rake refinery:override task
from refinerycms-calendar.
Thanks.
I've tried lots of variants of
rake refinery:override view=refinery/admin/calendar/events/_form
with no luck. What should the override args look like?
Thanks,
Steve
On Nov 13, 2012, at 12:42 PM, Philip Arndt [email protected] wrote:
Yep just use the rake refinery:override task
—
Reply to this email directly or view it on GitHub.
from refinerycms-calendar.
Got it. Finally browsed through the source code to pull out the path:
refinery/calendar/admin/events/_form
thanks. Sorry to bother.
Steve
On Nov 13, 2012, at 12:51 PM, Steve Fox [email protected] wrote:
Thanks.
I've tried lots of variants of
rake refinery:override view=refinery/admin/calendar/events/_form
with no luck. What should the override args look like?
Thanks,
Steve
On Nov 13, 2012, at 12:42 PM, Philip Arndt [email protected] wrote:
Yep just use the rake refinery:override task
—
Reply to this email directly or view it on GitHub.
from refinerycms-calendar.
Related Issues (20)
- NoMethodError in Refinery/calendar/venues#index HOT 4
- 2.0 not stable? HOT 12
- Datetime fields on event edit page are text only HOT 6
- Odd ordering on events page HOT 1
- ActiveRecord::StatementInvalid in Refinery/calendar/admin/events#index HOT 3
- after installation steps "/calendar/venues" - page not found HOT 4
- adding .prev_month and .next_month links to calendar grid HOT 3
- Bump calendar version in refinerycms.com/engines ? HOT 1
- sqlite .from HOT 1
- Actual Calendar HOT 3
- ActiveRecord::StatementInvalid in Refinery/calendar/events#index HOT 3
- Support for Refinery 2.1.0 HOT 7
- Custom iCal field values
- could not find gem HOT 4
- Support for Refinery 3 HOT 3
- gem -v 3.0.0 doesn't work HOT 3
- License?
- seeds.rb not creating page parts correctly HOT 3
- Dependabot can't resolve your Ruby dependency files
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 refinerycms-calendar.