Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
switch statement syntax
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
JoeE  
View profile   Translate to Translated (View Original)
 More options 5 Nov, 13:37
From: JoeE <joeegan1...@googlemail.com>
Date: Thu, 5 Nov 2009 05:37:19 -0800 (PST)
Local: Thurs 5 Nov 2009 13:37
Subject: switch statement syntax
I'm sure this is down to my lack of ruby knowledge but can I replace
this with some sort of switch statement?

- if current_page.include? "introduction"
  =partial('config/intro.haml')
- if current_page.include? "test"
  =partial('config/testing.haml')
- if current_page.include? "beaver"
  =partial('config/beavering.haml')


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
JoeE  
View profile   Translate to Translated (View Original)
 More options 5 Nov, 14:27
From: JoeE <joeegan1...@googlemail.com>
Date: Thu, 5 Nov 2009 06:27:45 -0800 (PST)
Local: Thurs 5 Nov 2009 14:27
Subject: Re: switch statement syntax
So more importantly, I have discovered that partial sub-directories
are not supported, I'm having to dump them all in "partials" and label
them config.intro.haml - would this be something worth developing?

- if current_page.include? "introduction"
  =partial('config.intro')

On 5 Nov, 13:37, JoeE <joeegan1...@googlemail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google