search for: _layout

Displaying 5 results from an estimated 5 matches for "_layout".

Did you mean: layout
2008 Jan 13
2
How to set a controller''s layout?
...for all its views. Right now I''m calling `render :layout => ''foo''` in each method, but there must be a better way. I tried class Users < Application layout ''foo'' end And that definitely doesn''t work. Then, as a test, I tried setting _layout within a method, like this: def index _layout = ''foo'' render end And that changes _layout successfully, but Merb still picks the same layout (''application''). There''s a line in lib/merb/mixins/render.rb that seems to pick the layout to use: 133:...
2007 Sep 29
1
templates with same name before extension are cached
.../nms/app/views/testing/index.herb - finished find_template, template is: "/Users/dusty/nms/app/views/testing/index.herb" * this caught me by suprise, it searched for layouts too. - "starting find_template, options are :" {:layout=>"testing"} - match on elsif _layout path is : /Users/dusty/nms/app/views/layout/testing - no cache, created glob glob is : /Users/dusty/nms/app/views/layout/testing.{html.erb,jerb,herb,haml,mab,js.erb,xerb,rhtml,builder,rxml,erb} - failed Dir[glob].first and set @merb_unmatched: glob is : /Users/dusty/nms/app/views/layout/te...
2008 May 27
1
Camping Technique -- Multiple Layouts
Hey Campers, Here''s a little technique you can use to support multiple layouts within a Camping app. def layout @layout ||= ''default'' send("#{@layout}_layout") { yield } end The minimum you have to do after this is define a *default_layout*, but (as you can hopefully see) you may define any number of arbitrary layouts to wrap your content in. Just set *@layout* in your controllers, and when it comes time to render a view, be sure a layout w/ the...
2015 Dec 21
1
Fruit module configured to use matter still write ._* files
...is I also got some metadata on the file itself. kuon at matrix /d/projects ❯❯❯ ls -la drwxrwxrwx  20 kuon  users       24 Dec 22 00:38 . drwxr-xr-x   9 root  wheel        9 Dec 19 09:18 .. -rwxr--r--   1 kuon  users     8196 Dec 22 00:11 .DS_Store -rwxrwxr--   1 kuon  users      443 Dec 22 00:17 ._layout.ai -rwxrwxr--   1 kuon  users  1607888 Nov 18 11:39 layout.ai kuon at matrix /d/projects ❯❯❯ lsextattr user layout.ai layout.ai netatalk.Metadata kuon at matrix /d/projects ❯❯❯ getextattr user netatalk.Metadata layout.ai layout.ai      b z r�DEVv�INO~�SYN��SV~�PDF ART5��                            ...
2006 Jul 09
16
Running Turbo C
I must run Turbo C for the university. The install seemed to go alright, but when I try to run it I get: $ wine TC.EXE Warning: unprotecting memory to allow real-mode calls. NULL pointer accesses will no longer be caught. err:module:MZ_DoLoadImage insufficient DOS memory winevdm: can't exec 'C:\tc\BIN\TC.EXE': error=8 What should I do? I've 512 MB RAM- I can't imagine