Just new here. Just got problem with rails, The application runs
smoothly in the local machine but when I try to upload all the
necessary files,gems in the server. I try to run it by adding records
but it does not do anything. Just got stock here…
Heres the code
@node = Node.new(params[:node])
@node_type = NodeType.find(params[:node_type_id])
@node.node_type_id = @node_type
current_user.nodes << @node
flash[:notice] = ‘Node was successfully created.’
#redirect_to :controller => ‘nodes’
#flash[:notice] = ‘Add New.’
render :controller => ‘nodes’,:action => ‘new’
this is the link when i add new records, nodes/new?node_type_id=3
and suppose to be it will return
nodes/nodes_id when posted but it return with this nodes/?
I didn’t put any entries but weird it doesn’t validate that don’t
accept blank entry.
Just wondering why doesn’t work in the server. Any help be
appreciated. Thanks in advance.