create a form where you can input the information to be stored. This means you'll be needing a form with two fields, one for the title and one for the text. You'll derive the slug from our title in the model.
create function for check whether the form was submitted and whether the submitted data passed the validation rules
adding class for yeah you know just litte adding :))
get redirect to the news/index
active record class to insert the information and use input library to get the posted data