Job Hunt: Week 6, Day 4
In the midst of discussing offers so there’s not much I can report on today. But until things finish up I will still keep applying, interviewing, and negotiating.
On the coding side of things I got user sign-up speced (sp?) and working now. Of course with Rails 4 comes the change in whitelisting/blacklisting attributes. Instead of
attr_accessible in the model now there’s logic set in the controller:
@user = User.new(user_params)
flash[:success] = "Welcome to the Sample App!"
params.require(:user).permit(:name, :email, :password, :password_confirmation)
form_for needs a
%= when used in ERB. A small tweak but worth mentioning.
Feel like I’m cementing my knowledge of concepts like YAML, SSL, and partials. Do YOU know how to share a partial across views for different models?
I may or may not post tomorrow. If I don’t, have a great weekend!