[Rails] Re: rendering simple html from view/controller

2010-03-24 Thread adedip
I guess is something dealing with this: attr_accessor :name isn't it? On 15 Mar, 14:16, adedip ade...@gmail.com wrote: Hi guys..I did try almost everything..but still cant' get any result.. Starting from a simple scaffold creating a class called reference I have updated the controller with

[Rails] Re: rendering simple html from view/controller

2010-03-24 Thread Punit Rathore
then I've updated the routes.rb file with this line (do I have to replace the already in map.resources :references or do i add this second new line?): -- map.resources :references, :collection = {load = get} -- You have to replace the line. -- Posted via http://www.ruby-forum.com/. -- You

[Rails] Re: rendering simple html from view/controller

2010-03-15 Thread adedip
Hi guys..I did try almost everything..but still cant' get any result.. Starting from a simple scaffold creating a class called reference I have updated the controller with this 2 methods: -- def load end def upload require 'fastercsv' filename = params[:file_tag]

[Rails] Re: rendering simple html from view/controller

2010-03-12 Thread Punit Rathore
Andrea, how can I access this view? can I without creating a method? I guess I don't because when I type http://localhost:3000/references/new2 i get that error: Couldn't find Reference with ID=new2 (but it render the page with the form if I had any kind of id after, i.e.

[Rails] Re: rendering simple html from view/controller

2010-03-12 Thread adedip
right! thx for reply.. I'm going to read a basic restful/routes guide I guess it's something dealing with GET or POST method thx :) On 12 Mar, 09:02, Punit Rathore li...@ruby-forum.com wrote: Andrea, how can I access this view? can I without creating a method? I guess I don't because when I

[Rails] Re: rendering simple html from view/controller

2010-03-12 Thread adedip
I meant GET or POST request ;) On 12 Mar, 09:02, Punit Rathore li...@ruby-forum.com wrote: Andrea, how can I access this view? can I without creating a method? I guess I don't because when I typehttp://localhost:3000/references/new2i get that error: Couldn't find Reference with ID=new2

Re: [Rails] Re: rendering simple html from view/controller

2010-03-12 Thread Colin Law
On 12 March 2010 13:40, adedip ade...@gmail.com wrote: right! thx for reply.. I'm going to read a basic restful/routes guide In case you have not seem there there are excellent guides at http://guides.rubyonrails.org/ including one on routing. I would suggest starting with Getting Started

[Rails] Re: rendering simple html from view/controller

2010-03-12 Thread RavionRails
just add map.resources :referenced , :collection = { 'new2' = 'get' } On Mar 12, 6:44 pm, Colin Law clan...@googlemail.com wrote: On 12 March 2010 13:40, adedip ade...@gmail.com wrote: right! thx for reply.. I'm going to read a basic restful/routes guide In case you have not seem there

[Rails] Re: rendering simple html from view/controller

2010-03-11 Thread Punit Rathore
Andrea, You need to provide us with more information. From the info you have given I cannot figure out what is going on. Couldn't find Product with ID=new2 You say that you have an empty method, but it is trying to find a Product with ID=new2. I think that it cannot find the correct route

[Rails] Re: rendering simple html from view/controller

2010-03-11 Thread adedip
Ok..so that's what I mean: I need to create a new view where I want to insert for istance (and in this exact case) a form that I use to upload a file and then process the file. So in first place I create a view new2.html.erb in my view folder associated to a controller let's say references with a