I am fairly new to rails and I am struggling getting the id param out of this url:
http://localhost:3000/subscriberjobs/new?job_id=13
Currently I am using this line of code to get it:
@job = Job.find(params[:id])
This line directs to that:
redirect_to "/subscriberjobs/new?job_id=#{@job.id}"
Any help on how to achieve what I am trying to do is much appreciated!