Multiple answers by your mulitple questions,
I have a heard time finding good searchable documentation about ruby. So
ill ask some stuff here.
- Can i use multiple layouts in the same controller, and somehow switch
between them? If so how?
Yes. You can specify which layout to use. Also if there is a default
layout being used in your controller you can control if you want to use
it or not when a certain action is invoked within that controller.
For example you can do:
render :action => “clap_yourhands”, :layout => “circles_and_triangles”
- Can i import a view into another view? If so how?
Yes. Look at render :partial and / or render :component
- Can i check if a value is in a field using an if-statement, for
instance checking if there is a ‘1’ in a field containing ‘12345’?
thx a bunch
Hope that helps,