bscofield / bagpipes Goto Github PK
View Code? Open in Web Editor NEWA resourceful plugin for adding forums to an application
License: MIT License
A resourceful plugin for adding forums to an application
License: MIT License
Bagpipes ======== Bagpipes is a resourceful plugin, meaning that it provides a bundled set of resources (ala REST) for a Rails application. In particular, installing Bagpipes gives you access to the resources required for basic forum functions—topics, messages, and members. At present, member management is ... minimal. You'll have to add the first administrator from the console, like this: > u = User.find(1) > u.create_member :name => "Name", :administrator => true After that, you can log in and go to /members to add more. Only administrators can create topics, and only members can create messages. Anyone can view the forum, however. Like any resourceful plugin, this should be easily customizable for your specific needs. Example ======= rake bagpipes:install The installer will prompt you for the name of your user model. Integration =========== You'll need some sort of authentication scheme that provides the following hooks in the controller: logged_in? current_user The easiest way to take care of this is to install the restful authentication plugin. Finally, you'll need to update the user_email= method in the Member model so that it returns a valid user/account/whatever model when given an email address. Copyright (c) 2008 Ben Scofield of Viget Labs, released under the MIT license
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.