Temporary hardcoding before we had user registration and login working.


On Fri, Oct 18, 2013 at 4:09 AM, Zee <notifications@github.com> wrote:

> In app.rb:
>
> > @@ -23,6 +23,18 @@
> >
> >
> >
> > +get '/doodle/:doodle_key' do
> > +  @doodle = Doodle.find_by_doodle_key(params[:doodle_key])
> > +  erb :doodle_img_detail
> > +end
> > +
> > +
> > +post '/save' do
> > +  new_key = SecureRandom.urlsafe_base64(12)
> > +  @doodle = Doodle.create!({doodle_key: new_key, doodle_data: params[:doodle_data], user_id: 1})
>
> Why are we always saving them as user_1?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/gopher-snakes-2013/doodle-snakes/pull/10/files#r7058978>
> .
>