Sha256: 58fa283f27aa0b65de62a19a8cea42f4711fe40eb05183efb6ca0f132e802c27
Contents?: true
Size: 818 Bytes
Versions: 1
Compression:
Stored size: 818 Bytes
Contents
# CRUD Example (Create, Read, Update, Delete) Tests whether you can create, read, update and delete posts from MTA ## Running the example Start the rails server: $ cd rails $ rails s Start the MTA Server and type the following commands: $ aclrequest crud allow all $ start crud After that, the following commands are available within MTA (console, in-game) * **/posts** - lists all posts ## How this was built - in rails Creating the project: $ rails new CrudTest **Manually** adding "gem 'mta_json'" to the Gemfile. Running Bundler: $ bundle install Generating a model Post along with a matching Controller: $ rails g scaffold post title:string text:text Migrates the database to include the new posts table: $ rake db:migrate
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mta_json-0.0.1 | examples/crud/README.md |