# Local Machine vs Server

**URL:** <https://www.ruby-forum.com/t/local-machine-vs-server/132838>\
**Category:** Rails\
**Created:** [March 25, 2008, 7:22am UTC](https://www.ruby-forum.com/t/local-machine-vs-server/132838 "2008-03-25T07:22:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![leirasacil](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@leirasacil](https://www.ruby-forum.com/u/leirasacil)\
**Post date:** [March 25, 2008, 7:22am UTC](https://www.ruby-forum.com/t/local-machine-vs-server/132838/1 "2008-03-25T07:22:13Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![leirasacil](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@leirasacil](https://www.ruby-forum.com/u/leirasacil)\
**Post date:** [March 25, 2008, 7:43am UTC](https://www.ruby-forum.com/t/local-machine-vs-server/132838/2 "2008-03-25T07:43:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![leirasacil](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@leirasacil](https://www.ruby-forum.com/u/leirasacil)\
**Post date:** [March 25, 2008, 8:40am UTC](https://www.ruby-forum.com/t/local-machine-vs-server/132838/3 "2008-03-25T08:40:50Z")

</div>

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. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
