Hi all,
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
def create
sleep 3
@node = Node.new(params[:node])
@node_type = NodeType.find(params[:node_type_id])
@node.node_type_id = @node_type
current_user.nodes << @node
if @node.save
flash[:notice] = ''Node was successfully created.''
redirect_to node_path(@node)
#redirect_to :controller => ''nodes''
#redirect_to node_path(@node)
else
#flash[:notice] = ''Add New.''
render :controller => ''nodes'',:action =>
''new''
end
end
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/?
node_type_id=3-press.
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.
Ariel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---