I have form
View
<%= simple_form_for User.new do |f| %>
<%= f.input :email %>
<%= text_field_tag "user[data[first_name]]" %>
<%= f.button :submit %>
<% end %>
Controller#create
@user = User.find_or_initialize_by_email(params[:user][:email])
if @user.update_attributes(params[:user])
...
How to reject update user hstore date
attribute if params(in that case first_name
) is empty or blank?