Using the scaffolding will help you observe
> rails g scaffold -h # get help
> rails g scaffold Product name:string url:string
Refer to the book “agile web development with rails”

On Tuesday, September 25, 2012 12:27:46 AM UTC-7, keerthi priya wrote:
>
> any sample code plz
>
> On Tue, Sep 25, 2012 at 11:15 AM, KUL KING <kulki...@gmail.com<javascript:>
> > wrote:
>
>> You can use the resources keyword.
>>
>>
>> On Tue, Sep 25, 2012 at 10:35 AM, keerthi priya 
>> <emailtoke...@gmail.com<javascript:>
>> > wrote:
>>
>>> Hi all am learning rails 3.2.8 and i found that in routes if i have a 
>>> controller called User and i have 5 def a, def b,def c and def d. do i need 
>>> to mention routes to each def because in 2.3.8 you no need to mention 
>>> routes for each def but when i come to 3.2.8 i have to mention routes for 
>>> each def in a controller like
>>>  match 'user/new' => 'user#new'
>>>   match 'user/create' => 'user#create'
>>> such way for each def in a controller. is there any other way to write a 
>>> routes so that you no need to mention routes for each def.
>>>
>>>
>>>
>>> Cheers,
>>> Kp
>>>
>>> -- 
>>> 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 
>>> rubyonra...@googlegroups.com<javascript:>
>>> .
>>> To unsubscribe from this group, send email to 
>>> rubyonrails-ta...@googlegroups.com <javascript:>.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msg/rubyonrails-talk/-/Tf06HxXUXVgJ.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>  
>>>  
>>>
>>
>>  -- 
>> 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 
>> rubyonra...@googlegroups.com<javascript:>
>> .
>> To unsubscribe from this group, send email to 
>> rubyonrails-ta...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

-- 
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@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/SnZlzJ8s_mgJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to