balvig / chili Goto Github PK
View Code? Open in Web Editor NEWThe spicy feature toggle framework for Rails
Home Page: http://balvig.github.io/chili/
License: MIT License
The spicy feature toggle framework for Rails
Home Page: http://balvig.github.io/chili/
License: MIT License
In tutorial the changes and modify, extending the code and create some files (migrate) with options false, at this point is ok!
With the code passed in test and have ok to push in env production, how add or merge this new feature to the main code and commit in master branch and submit!
rails g chili:extension photo
/.rvm/gems/ruby-1.9.3-p194/gems/chili-0.3.2/lib/chili/engine.rb:4:in block in <class:Engine>': undefined method
namespaced=' for #Deface::Environment:0x007ff4ca6cace8 (NoMethodError)
deface 0.9.1 thats added with chili does not have the namespaced changes in yet on my install at least
Was originally fixed by 14ff0b9 but something seems to have changed in later Rails versions that prevents it from being reloaded (meaning you have to restart the server whenever you changed the active_if block)
Is there any easy way to move a "test" feature to the main application code or we need to manually add it?
I'm afraid deface will slow our app as we keep adding new features
How do you feel about it? do you have any benchmarks?
On some apps get the above message when running rake tasks.
Removing Bundler stuff from tasks.rb seems to solve the problem...
Hey man
Can u help me ?
Im creating rails g chili:feature bureau
And
Add one view juridical/proposal/show.html.erb in folder lib/chili/bureau_feature/app/views/juridical/proposals/show.html.erb
My class engine i set tu false
module BureauFeature
extend Chili::Base
active_if { false } # edit this to activate/deactivate feature at runtime
end
More keep displaying
I, [2018-05-11T14:03:23.556379 #8206] INFO -- : Rendered lib/chili/bureau_feature/app/views/juridical/proposals/show.html.erb within layouts/juridical/application (230.6ms)
Hi, Sorry for using Issues for this but could not find an email of wiki and I do not use any social networks.
I am not sure if I fully understand how chili works but I have a requirement that may be applicable to using chili, perhaps you could confirm ?
rails 3.2.11 - I am using basic authentication with deface and cancan. cancan looks after access to resources OK but leaves the view layer with links to potentially forbidden resources.
I have tried;
<% if RESOURCE_ACCESS_LEVEL > users_access_level %>
<!-- remove 'code[erb-loud]:contains("link_to")' -->
<% end %>
in a .deface file but it fails as does a .erb.html.deface.erb file (worth a shot).
So could I use chili to make deface files conditional on user_access_level ?
Any suggestions or examples would be warmly welcomed !
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.