On 16 May 2014 11:23, Fab Forestier <[email protected]> wrote:
> Colin Law wrote in post #1146255:
>> On 16 May 2014 09:48, Fab Fab <[email protected]> wrote:
>>> after this if i use resources:currentoperations in routes.rb that will
>>> create the routes for new, index _form views but i don't want them.
>>
>> Have a look at the Rails Guide on Routing, that will show you how to
>> create just the routes you want.  Also have a look at all the other
>> guides as well.  In addition it would be a good idea to work right
>> through a good tutorial such as railstutorial.org, which is free to
>> use online.  That will show you the basics of Rails.  Do that first
>> and you will know the answers to your questions.
>>
>> Colin
>
> Thanks for your answer Colin but I have already watched most of rails'
> guide and tutorials but I don't find what I want to do. I haven't find
> an exemple of a view without model because the major part of exemples
> are made with scaffolds.

If you worked through railstutorial then you cannot have been paying
much attention, as the demo app starts with exactly what you are
asking for [1].  As I said, I suggest you work right through that
tutorial (not just skim through it) that will help you to understand
the basics of rails.

>
> My app is for an internal production of an industry and I need a view
> for the operatives where they can fill fields from different tables!!

Once you have it working with static pages then you just need to fetch
the data from the database to put on the pages.

[1] http://www.railstutorial.org/book/static_pages

Colin

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLsoX0KDZYeWn1rGd-DBHKhZ3qWXT5F%2BSiUXbPox2o7syA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to