I am new to ruby on rails. I checked online and on many tutorials but
I can’t find an answer to my problem
As an exercise I am creating a weblog
I am using a simple form to add a new “page” to my weblog
<%= error_messages_for ‘page’ %>
<%= text_field 'page', 'title' %>
<%= datetime_select 'page', 'created_at' %>
<%= text_area 'page', 'content' %>
and in the controller I use
@page = Page.new(params[:page])
It works but I need to modify the parameters I am sending to Page.new()
I know I can’t modify :page as it is a Symbol.
But how can I access the values contained inside :page?
I have tried b = eval(:a.id2name) to get the variable’s contents but
id does not work.