Local Machine vs Server

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 could try running yours locally in production mode to try and
recreate it, or try and ‘copy’ the environment from the server to your
local machine (and make sure you’re using the same version of all the
gems).

leirasacil wrote:

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

Hi Roger!

Thanks! I try this but still doesn’t work? I install all the gems
needed. Just wondering How come it still doesn’t work?

On Mar 25, 2:43 pm, Roger P. [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs