search for: secretcodes_path

Displaying 1 result from an estimated 1 matches for "secretcodes_path".

2012 Oct 17
1
generate 10 UUID records and save it it database in rails
...nd In my controller........... def create @secretcode= Secretcode.new(params[:secretcode]) @user= User.new(params[:user]) @secretcode.user_id=@user @secretcode.generate_unique_token=params[:secretcode][:secret] if @secretcode.valid? @secretcode.save redirect_to secretcodes_path else render ''new'' end end In my view page > <%=form_for(@secretcode) do |f|%> <%= f.select(:secret, > options_for_select([[''1'', 1], [''10'', 10], [''20'', > 20],[''50'',50],[...