SlideShare a Scribd company logo
1 of 20
Download to read offline
Where did my HTML and CSS go?
Brigitte Jellinek
Railsgirls Munich Nov 30th 2013!
You thought
you knew about HTML and CSS
But now that you are using Rails:
where did the HTML and CSS go?
Changes in HTML
The Layout
(for all pages)

Cut up
HTML
One View
(per page)
Cut up and reassemble

I'm embedded
ruby and will
produce html

 /
 /app/views
 index.html
  pages/info.html.erb
 ideas.html
  ideas/index.html.erb
 layout/
application.html.erb
Write all Links with link_to
<h1>My Static Webpage</h1>!
<p>it's full off important Tags!</p>!
<p>also, it has a !
<a href="ideas.html">link to my ideas</a></p>!

<h1>My Rails App</h1>!
<p>It's running on rails now.</p>!
<p>it still has a !
<%= link_to "link to my ideas", ideas_path %></p>!
Links

 link_to "text", "url"
 link_to "all ideas", ideas_path
 create all internal URLs with *_path
rake routes
$ rake routes!
Prefix Verb
root GET
ideas GET
new_idea GET
edit_idea GET
idea GET

URI Pattern
Controller#Action!
/
pages#info!
/ideas(.:format)
ideas#index!
/ideas/new(.:format)
ideas#new!
/ideas/:id/edit(.:format) ideas#edit!
/ideas/:id(.:format)
ideas#show!

 see all the URLs and names of routes
 just add _path or _url to the prefix:
 root_path, ideas_path, new_idea_path, ...
 let Rails take care of URLs for you!
Changes in CSS!
Link to CSS with
stylesheet_link_tag
<link rel="stylesheet" href="css/bootstrap.css">!
<link rel="stylesheet" href="css/style.css">!

<%= stylesheet_link_tag "application", media: "all" %>!

*= require_self!
*= require_tree .!
All my CSS files are magically
exceedingly
assembled into one file!
clever way
to enable
caching
The Asset Pipeline: Bigger Picture
Use SASS
.button_to, .button_to div, .button_to .btn { !
display: inline;!
}!

.button_to { !
&, div, .btn { !
display: inline;!
}!
}!
Use SCSS
.button_to, .button_to div, .button_to.and_this_class{ !
display: inline;!
}!

.button_to!
&, div, &.and_this_class!
display: inline!
Summary
 split up your html-files
  one layout in app/views/layouts/
  many views in app/views/
  using ERB – embedded ruby inside <% %>

 Convert all links
  use link_to
  never write URLs, use path-helpers instead

 Move you CSS
  to the asset pipline app/assets/stylesheets

 Convert you CSS
  to SASS, SCSS or LESS 


 Use all your knowledge of HTML Tags, CSS, ...
  with tiny adjustments
Learn more! Come to Salzburg

  Summer University "
for Women in IT: Aug25-Sep9 2014
  Call for Lectures out soon!
  Weekend-Courses in March + May
  http://ditact.ac.at

  Barcamp on Web Development
March 14+15 2014
  Every Oct and March
  http://lanyrd.com/series/
barcamp-salzburg/
Learn More! Come to Salzburg

  Web Dev User group in
Salzburg

  BSc. Web Development

  once a month

  Austrian Public University "
of Applied Science (FH)

  Join us on http://meetup.com

  MSc. Web Development

  http://multimediatechnology.at
Brigitte Jellinek

http://brigitte-jellinek.at
@bjelline
brigitte.jellinek@fh-salzburg.ac.at

More Related Content

What's hot

Cool Shit You Can Do With WordPress (BrightonSEO 2014)
Cool Shit You Can Do With WordPress (BrightonSEO 2014)Cool Shit You Can Do With WordPress (BrightonSEO 2014)
Cool Shit You Can Do With WordPress (BrightonSEO 2014)Patrick Hathaway
 
Using the Google Analytics API to make most popular pages widgets for your we...
Using the Google Analytics API to make most popular pages widgets for your we...Using the Google Analytics API to make most popular pages widgets for your we...
Using the Google Analytics API to make most popular pages widgets for your we...Dean Peters
 
Hooked on WordPress: WordCamp Columbus
Hooked on WordPress: WordCamp ColumbusHooked on WordPress: WordCamp Columbus
Hooked on WordPress: WordCamp ColumbusShawn Hooper
 
Css Preprocessors
Css PreprocessorsCss Preprocessors
Css PreprocessorsEd Moore
 
Diving into the deep end: SVG, Angular and Accessibility
Diving into the deep end: SVG, Angular and AccessibilityDiving into the deep end: SVG, Angular and Accessibility
Diving into the deep end: SVG, Angular and AccessibilityDerek Featherstone
 
HTML Emails in Rails 3
HTML Emails in Rails 3HTML Emails in Rails 3
HTML Emails in Rails 3John Barton
 
SilverStripe Modules for a Better Life
SilverStripe Modules for a Better LifeSilverStripe Modules for a Better Life
SilverStripe Modules for a Better LifeColin Richardson
 
JavaScript : A trending scripting language
JavaScript : A trending scripting languageJavaScript : A trending scripting language
JavaScript : A trending scripting languageAbhayDhupar
 
Magic Buttons - George Courtsunis
Magic Buttons - George CourtsunisMagic Buttons - George Courtsunis
Magic Buttons - George CourtsunisQuickBase, Inc.
 
poornamatha : poornamitham poornath-poorna-muthatchyathe |
poornamatha :  poornamitham poornath-poorna-muthatchyathe |poornamatha :  poornamitham poornath-poorna-muthatchyathe |
poornamatha : poornamitham poornath-poorna-muthatchyathe |ashokha
 

What's hot (12)

Cool Shit You Can Do With WordPress (BrightonSEO 2014)
Cool Shit You Can Do With WordPress (BrightonSEO 2014)Cool Shit You Can Do With WordPress (BrightonSEO 2014)
Cool Shit You Can Do With WordPress (BrightonSEO 2014)
 
Using the Google Analytics API to make most popular pages widgets for your we...
Using the Google Analytics API to make most popular pages widgets for your we...Using the Google Analytics API to make most popular pages widgets for your we...
Using the Google Analytics API to make most popular pages widgets for your we...
 
Hooked on WordPress: WordCamp Columbus
Hooked on WordPress: WordCamp ColumbusHooked on WordPress: WordCamp Columbus
Hooked on WordPress: WordCamp Columbus
 
jQuery Intro
jQuery IntrojQuery Intro
jQuery Intro
 
Web dev syllabus
Web dev syllabusWeb dev syllabus
Web dev syllabus
 
Css Preprocessors
Css PreprocessorsCss Preprocessors
Css Preprocessors
 
Diving into the deep end: SVG, Angular and Accessibility
Diving into the deep end: SVG, Angular and AccessibilityDiving into the deep end: SVG, Angular and Accessibility
Diving into the deep end: SVG, Angular and Accessibility
 
HTML Emails in Rails 3
HTML Emails in Rails 3HTML Emails in Rails 3
HTML Emails in Rails 3
 
SilverStripe Modules for a Better Life
SilverStripe Modules for a Better LifeSilverStripe Modules for a Better Life
SilverStripe Modules for a Better Life
 
JavaScript : A trending scripting language
JavaScript : A trending scripting languageJavaScript : A trending scripting language
JavaScript : A trending scripting language
 
Magic Buttons - George Courtsunis
Magic Buttons - George CourtsunisMagic Buttons - George Courtsunis
Magic Buttons - George Courtsunis
 
poornamatha : poornamitham poornath-poorna-muthatchyathe |
poornamatha :  poornamitham poornath-poorna-muthatchyathe |poornamatha :  poornamitham poornath-poorna-muthatchyathe |
poornamatha : poornamitham poornath-poorna-muthatchyathe |
 

Viewers also liked

Japan Market Overview and Asia
Japan Market Overview and AsiaJapan Market Overview and Asia
Japan Market Overview and Asia01Booster
 
SMi Group's 16th annual Global MilSatCom 2014
SMi Group's 16th annual Global MilSatCom 2014SMi Group's 16th annual Global MilSatCom 2014
SMi Group's 16th annual Global MilSatCom 2014Dale Butler
 
New Revenue For News Organizations.Ppt
New Revenue For News Organizations.PptNew Revenue For News Organizations.Ppt
New Revenue For News Organizations.PptPaul Gillin
 
La Oportunidad De Cambio.Uneteya
La Oportunidad De Cambio.UneteyaLa Oportunidad De Cambio.Uneteya
La Oportunidad De Cambio.UneteyaVictor Peña
 
日本で広がるボトムアップ型オープンデータとその展望
日本で広がるボトムアップ型オープンデータとその展望日本で広がるボトムアップ型オープンデータとその展望
日本で広がるボトムアップ型オープンデータとその展望Sayoko Shimoyama
 
Chodientu Presentation In Brief
Chodientu Presentation In BriefChodientu Presentation In Brief
Chodientu Presentation In BriefPhi Jack
 
2. ACE + T2DN+ EASTERN INDIA +2013
2. ACE + T2DN+ EASTERN INDIA +20132. ACE + T2DN+ EASTERN INDIA +2013
2. ACE + T2DN+ EASTERN INDIA +2013Pulakes Purkait
 
NewsHQ, from BusinessWire
NewsHQ, from BusinessWireNewsHQ, from BusinessWire
NewsHQ, from BusinessWireBusiness Wire
 
情報リテラシー論04スマートフォンの普及と課題・長岡造形大学
情報リテラシー論04スマートフォンの普及と課題・長岡造形大学情報リテラシー論04スマートフォンの普及と課題・長岡造形大学
情報リテラシー論04スマートフォンの普及と課題・長岡造形大学新潟コンサルタント横田秀珠
 
A framework of Web Science
A framework of Web Science A framework of Web Science
A framework of Web Science vafopoulos
 
2010 xx-xx-xx运营推广规划v1.01
2010 xx-xx-xx运营推广规划v1.012010 xx-xx-xx运营推广规划v1.01
2010 xx-xx-xx运营推广规划v1.01julystory
 
Cotocoto ac43 slide20140922
Cotocoto ac43 slide20140922Cotocoto ac43 slide20140922
Cotocoto ac43 slide20140922Hatsune Miyamoto
 
鯖江市オープンデータの取り組みをさらに推進するために~あるべき姿へ向けた推奨施策
鯖江市オープンデータの取り組みをさらに推進するために~あるべき姿へ向けた推奨施策鯖江市オープンデータの取り組みをさらに推進するために~あるべき姿へ向けた推奨施策
鯖江市オープンデータの取り組みをさらに推進するために~あるべき姿へ向けた推奨施策Code for Japan
 
Tinh bao 20
Tinh bao 20Tinh bao 20
Tinh bao 20Nguyen
 
Top 5 PPC Strategies
Top 5 PPC StrategiesTop 5 PPC Strategies
Top 5 PPC StrategiesDemandWave
 

Viewers also liked (20)

Japan Market Overview and Asia
Japan Market Overview and AsiaJapan Market Overview and Asia
Japan Market Overview and Asia
 
SMi Group's 16th annual Global MilSatCom 2014
SMi Group's 16th annual Global MilSatCom 2014SMi Group's 16th annual Global MilSatCom 2014
SMi Group's 16th annual Global MilSatCom 2014
 
New Revenue For News Organizations.Ppt
New Revenue For News Organizations.PptNew Revenue For News Organizations.Ppt
New Revenue For News Organizations.Ppt
 
La Oportunidad De Cambio.Uneteya
La Oportunidad De Cambio.UneteyaLa Oportunidad De Cambio.Uneteya
La Oportunidad De Cambio.Uneteya
 
Bp04 gurmat-bibek
Bp04 gurmat-bibekBp04 gurmat-bibek
Bp04 gurmat-bibek
 
日本で広がるボトムアップ型オープンデータとその展望
日本で広がるボトムアップ型オープンデータとその展望日本で広がるボトムアップ型オープンデータとその展望
日本で広がるボトムアップ型オープンデータとその展望
 
Chodientu Presentation In Brief
Chodientu Presentation In BriefChodientu Presentation In Brief
Chodientu Presentation In Brief
 
2. ACE + T2DN+ EASTERN INDIA +2013
2. ACE + T2DN+ EASTERN INDIA +20132. ACE + T2DN+ EASTERN INDIA +2013
2. ACE + T2DN+ EASTERN INDIA +2013
 
NewsHQ, from BusinessWire
NewsHQ, from BusinessWireNewsHQ, from BusinessWire
NewsHQ, from BusinessWire
 
Prueba 1 marzo
Prueba 1 marzoPrueba 1 marzo
Prueba 1 marzo
 
Otd startup guide
Otd startup guideOtd startup guide
Otd startup guide
 
情報リテラシー論04スマートフォンの普及と課題・長岡造形大学
情報リテラシー論04スマートフォンの普及と課題・長岡造形大学情報リテラシー論04スマートフォンの普及と課題・長岡造形大学
情報リテラシー論04スマートフォンの普及と課題・長岡造形大学
 
Katoava elektroniikka
Katoava elektroniikkaKatoava elektroniikka
Katoava elektroniikka
 
A framework of Web Science
A framework of Web Science A framework of Web Science
A framework of Web Science
 
2010 xx-xx-xx运营推广规划v1.01
2010 xx-xx-xx运营推广规划v1.012010 xx-xx-xx运营推广规划v1.01
2010 xx-xx-xx运营推广规划v1.01
 
Aids and hiv
Aids and hivAids and hiv
Aids and hiv
 
Cotocoto ac43 slide20140922
Cotocoto ac43 slide20140922Cotocoto ac43 slide20140922
Cotocoto ac43 slide20140922
 
鯖江市オープンデータの取り組みをさらに推進するために~あるべき姿へ向けた推奨施策
鯖江市オープンデータの取り組みをさらに推進するために~あるべき姿へ向けた推奨施策鯖江市オープンデータの取り組みをさらに推進するために~あるべき姿へ向けた推奨施策
鯖江市オープンデータの取り組みをさらに推進するために~あるべき姿へ向けた推奨施策
 
Tinh bao 20
Tinh bao 20Tinh bao 20
Tinh bao 20
 
Top 5 PPC Strategies
Top 5 PPC StrategiesTop 5 PPC Strategies
Top 5 PPC Strategies
 

Similar to Railsgirls: Where did my HTML and CSS go

Slow kinda sucks
Slow kinda sucksSlow kinda sucks
Slow kinda sucksTim Wright
 
GDI Seattle Intermediate HTML and CSS Class 1
GDI Seattle Intermediate HTML and CSS Class 1GDI Seattle Intermediate HTML and CSS Class 1
GDI Seattle Intermediate HTML and CSS Class 1Heather Rock
 
Structuring your CSS for maintainability: rules and guile lines to write CSS
Structuring your CSS for maintainability: rules and guile lines to write CSSStructuring your CSS for maintainability: rules and guile lines to write CSS
Structuring your CSS for maintainability: rules and guile lines to write CSSSanjoy Kr. Paul
 
Stop your share point css become a di-sass-ter today - SPS Munich
Stop your share point css become a di-sass-ter today - SPS MunichStop your share point css become a di-sass-ter today - SPS Munich
Stop your share point css become a di-sass-ter today - SPS MunichStefan Bauer
 
HTML5 apps for iOS (and probably beyond)
HTML5 apps for iOS (and probably beyond)HTML5 apps for iOS (and probably beyond)
HTML5 apps for iOS (and probably beyond)Andi Farr
 
HTML 5 Drupalcamp Ireland Dublin 2010
HTML 5 Drupalcamp Ireland Dublin 2010HTML 5 Drupalcamp Ireland Dublin 2010
HTML 5 Drupalcamp Ireland Dublin 2010alanburke
 
CSS Workflow. Pre & Post
CSS Workflow. Pre & PostCSS Workflow. Pre & Post
CSS Workflow. Pre & PostAnton Dosov
 
Introduction to Ruby on Rails
Introduction to Ruby on RailsIntroduction to Ruby on Rails
Introduction to Ruby on RailsAlessandro DS
 
Intermediate Web Design
Intermediate Web DesignIntermediate Web Design
Intermediate Web Designmlincol2
 
“Good design is obvious. Great design is transparent.” — How we use Bootstrap...
“Good design is obvious. Great design is transparent.” — How we use Bootstrap...“Good design is obvious. Great design is transparent.” — How we use Bootstrap...
“Good design is obvious. Great design is transparent.” — How we use Bootstrap...Roni Banerjee
 
7 web design
7 web design7 web design
7 web designpranitag1
 
So, You Wanna Dev? Join the Team! - WordCamp Raleigh 2017
So, You Wanna Dev? Join the Team! - WordCamp Raleigh 2017 So, You Wanna Dev? Join the Team! - WordCamp Raleigh 2017
So, You Wanna Dev? Join the Team! - WordCamp Raleigh 2017 Evan Mullins
 
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4Erin M. Kidwell
 
Organize Your Website With Advanced CSS Tricks
Organize Your Website With Advanced CSS TricksOrganize Your Website With Advanced CSS Tricks
Organize Your Website With Advanced CSS TricksAndolasoft Inc
 
Future proofing design work with Web components
Future proofing design work with Web componentsFuture proofing design work with Web components
Future proofing design work with Web componentsbtopro
 
Presentation about html5 css3
Presentation about html5 css3Presentation about html5 css3
Presentation about html5 css3Gopi A
 

Similar to Railsgirls: Where did my HTML and CSS go (20)

Slow kinda sucks
Slow kinda sucksSlow kinda sucks
Slow kinda sucks
 
GDI Seattle Intermediate HTML and CSS Class 1
GDI Seattle Intermediate HTML and CSS Class 1GDI Seattle Intermediate HTML and CSS Class 1
GDI Seattle Intermediate HTML and CSS Class 1
 
Structuring your CSS for maintainability: rules and guile lines to write CSS
Structuring your CSS for maintainability: rules and guile lines to write CSSStructuring your CSS for maintainability: rules and guile lines to write CSS
Structuring your CSS for maintainability: rules and guile lines to write CSS
 
Stop your share point css become a di-sass-ter today - SPS Munich
Stop your share point css become a di-sass-ter today - SPS MunichStop your share point css become a di-sass-ter today - SPS Munich
Stop your share point css become a di-sass-ter today - SPS Munich
 
HTML5 apps for iOS (and probably beyond)
HTML5 apps for iOS (and probably beyond)HTML5 apps for iOS (and probably beyond)
HTML5 apps for iOS (and probably beyond)
 
HTML 5 Drupalcamp Ireland Dublin 2010
HTML 5 Drupalcamp Ireland Dublin 2010HTML 5 Drupalcamp Ireland Dublin 2010
HTML 5 Drupalcamp Ireland Dublin 2010
 
Presentation 1 [autosaved]
Presentation 1 [autosaved]Presentation 1 [autosaved]
Presentation 1 [autosaved]
 
CSS Workflow. Pre & Post
CSS Workflow. Pre & PostCSS Workflow. Pre & Post
CSS Workflow. Pre & Post
 
Introduction to Ruby on Rails
Introduction to Ruby on RailsIntroduction to Ruby on Rails
Introduction to Ruby on Rails
 
Intermediate Web Design
Intermediate Web DesignIntermediate Web Design
Intermediate Web Design
 
HTML5 - An introduction
HTML5 - An introductionHTML5 - An introduction
HTML5 - An introduction
 
“Good design is obvious. Great design is transparent.” — How we use Bootstrap...
“Good design is obvious. Great design is transparent.” — How we use Bootstrap...“Good design is obvious. Great design is transparent.” — How we use Bootstrap...
“Good design is obvious. Great design is transparent.” — How we use Bootstrap...
 
ashish ppt webd.pptx
ashish ppt webd.pptxashish ppt webd.pptx
ashish ppt webd.pptx
 
7 web design
7 web design7 web design
7 web design
 
So, You Wanna Dev? Join the Team! - WordCamp Raleigh 2017
So, You Wanna Dev? Join the Team! - WordCamp Raleigh 2017 So, You Wanna Dev? Join the Team! - WordCamp Raleigh 2017
So, You Wanna Dev? Join the Team! - WordCamp Raleigh 2017
 
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
 
Organize Your Website With Advanced CSS Tricks
Organize Your Website With Advanced CSS TricksOrganize Your Website With Advanced CSS Tricks
Organize Your Website With Advanced CSS Tricks
 
Future proofing design work with Web components
Future proofing design work with Web componentsFuture proofing design work with Web components
Future proofing design work with Web components
 
Presentation about html5 css3
Presentation about html5 css3Presentation about html5 css3
Presentation about html5 css3
 
Sacramento web design
Sacramento web designSacramento web design
Sacramento web design
 

More from Brigitte Jellinek

Betriebsysteme: zwei wichtige Konzepte aus der Praxis
Betriebsysteme: zwei wichtige Konzepte aus der PraxisBetriebsysteme: zwei wichtige Konzepte aus der Praxis
Betriebsysteme: zwei wichtige Konzepte aus der PraxisBrigitte Jellinek
 
PHP at University - is it even possible?
PHP at University - is it even possible?PHP at University - is it even possible?
PHP at University - is it even possible?Brigitte Jellinek
 
Regular Expressions - eine Einführung
Regular Expressions - eine EinführungRegular Expressions - eine Einführung
Regular Expressions - eine EinführungBrigitte Jellinek
 
ditact it summer school 2010 kurzvorstellung
ditact it summer school 2010 kurzvorstellungditact it summer school 2010 kurzvorstellung
ditact it summer school 2010 kurzvorstellungBrigitte Jellinek
 
Master Studiengang Multimediaart an der Fachhochschule Salzburg
Master Studiengang Multimediaart an der Fachhochschule SalzburgMaster Studiengang Multimediaart an der Fachhochschule Salzburg
Master Studiengang Multimediaart an der Fachhochschule SalzburgBrigitte Jellinek
 
Bachelor Multimediaart an der Fachhochschule Salzburg
Bachelor Multimediaart an der Fachhochschule SalzburgBachelor Multimediaart an der Fachhochschule Salzburg
Bachelor Multimediaart an der Fachhochschule SalzburgBrigitte Jellinek
 
Perl - die Taschenkettensäge unter den Programmiersprachen - Vortrag 2003
Perl - die Taschenkettensäge unter den Programmiersprachen - Vortrag 2003Perl - die Taschenkettensäge unter den Programmiersprachen - Vortrag 2003
Perl - die Taschenkettensäge unter den Programmiersprachen - Vortrag 2003Brigitte Jellinek
 

More from Brigitte Jellinek (9)

Betriebsysteme: zwei wichtige Konzepte aus der Praxis
Betriebsysteme: zwei wichtige Konzepte aus der PraxisBetriebsysteme: zwei wichtige Konzepte aus der Praxis
Betriebsysteme: zwei wichtige Konzepte aus der Praxis
 
PHP at University - is it even possible?
PHP at University - is it even possible?PHP at University - is it even possible?
PHP at University - is it even possible?
 
Regular Expressions - eine Einführung
Regular Expressions - eine EinführungRegular Expressions - eine Einführung
Regular Expressions - eine Einführung
 
ditact it summer school 2010 kurzvorstellung
ditact it summer school 2010 kurzvorstellungditact it summer school 2010 kurzvorstellung
ditact it summer school 2010 kurzvorstellung
 
Master Studiengang Multimediaart an der Fachhochschule Salzburg
Master Studiengang Multimediaart an der Fachhochschule SalzburgMaster Studiengang Multimediaart an der Fachhochschule Salzburg
Master Studiengang Multimediaart an der Fachhochschule Salzburg
 
Bachelor Multimediaart an der Fachhochschule Salzburg
Bachelor Multimediaart an der Fachhochschule SalzburgBachelor Multimediaart an der Fachhochschule Salzburg
Bachelor Multimediaart an der Fachhochschule Salzburg
 
jQuery Kurz-Intro
jQuery Kurz-IntrojQuery Kurz-Intro
jQuery Kurz-Intro
 
Perl - die Taschenkettensäge unter den Programmiersprachen - Vortrag 2003
Perl - die Taschenkettensäge unter den Programmiersprachen - Vortrag 2003Perl - die Taschenkettensäge unter den Programmiersprachen - Vortrag 2003
Perl - die Taschenkettensäge unter den Programmiersprachen - Vortrag 2003
 
Why use Perl?
Why use Perl?Why use Perl?
Why use Perl?
 

Recently uploaded

Top 10 Modern Web Design Trends for 2025
Top 10 Modern Web Design Trends for 2025Top 10 Modern Web Design Trends for 2025
Top 10 Modern Web Design Trends for 2025Rndexperts
 
怎么办理英国Newcastle毕业证纽卡斯尔大学学位证书一手渠道
怎么办理英国Newcastle毕业证纽卡斯尔大学学位证书一手渠道怎么办理英国Newcastle毕业证纽卡斯尔大学学位证书一手渠道
怎么办理英国Newcastle毕业证纽卡斯尔大学学位证书一手渠道yrolcks
 
DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...
DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...
DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...Rishabh Aryan
 
Niintendo Wii Presentation Template.pptx
Niintendo Wii Presentation Template.pptxNiintendo Wii Presentation Template.pptx
Niintendo Wii Presentation Template.pptxKevinYaelJimnezSanti
 
FW25-26 Knit Cut & Sew Trend Book Peclers Paris
FW25-26 Knit Cut & Sew Trend Book Peclers ParisFW25-26 Knit Cut & Sew Trend Book Peclers Paris
FW25-26 Knit Cut & Sew Trend Book Peclers ParisPeclers Paris
 
Unit1_Syllbwbnwnwneneneneneneentation_Sem2.pptx
Unit1_Syllbwbnwnwneneneneneneentation_Sem2.pptxUnit1_Syllbwbnwnwneneneneneneentation_Sem2.pptx
Unit1_Syllbwbnwnwneneneneneneentation_Sem2.pptxNitish292041
 
Giulio Michelon, Founder di @Belka – “Oltre le Stime: Sviluppare una Mentalit...
Giulio Michelon, Founder di @Belka – “Oltre le Stime: Sviluppare una Mentalit...Giulio Michelon, Founder di @Belka – “Oltre le Stime: Sviluppare una Mentalit...
Giulio Michelon, Founder di @Belka – “Oltre le Stime: Sviluppare una Mentalit...Associazione Digital Days
 
General Simple Guide About AI in Design By: A.L. Samar Hossam ElDin
General Simple Guide About AI in Design By: A.L. Samar Hossam ElDinGeneral Simple Guide About AI in Design By: A.L. Samar Hossam ElDin
General Simple Guide About AI in Design By: A.L. Samar Hossam ElDinSamar Hossam ElDin Ahmed
 
simpson-lee_house_dt20ajshsjsjsjsjj15.pdf
simpson-lee_house_dt20ajshsjsjsjsjj15.pdfsimpson-lee_house_dt20ajshsjsjsjsjj15.pdf
simpson-lee_house_dt20ajshsjsjsjsjj15.pdfLucyBonelli
 
guest bathroom white and blue ssssssssss
guest bathroom white and blue ssssssssssguest bathroom white and blue ssssssssss
guest bathroom white and blue ssssssssssNadaMohammed714321
 
world health day 2024.pptxgbbvggvbhjjjbbbb
world health day 2024.pptxgbbvggvbhjjjbbbbworld health day 2024.pptxgbbvggvbhjjjbbbb
world health day 2024.pptxgbbvggvbhjjjbbbbpreetirao780
 
AI and Design Vol. 2: Navigating the New Frontier - Morgenbooster
AI and Design Vol. 2: Navigating the New Frontier - MorgenboosterAI and Design Vol. 2: Navigating the New Frontier - Morgenbooster
AI and Design Vol. 2: Navigating the New Frontier - Morgenbooster1508 A/S
 
10 must-have Chrome extensions for designers
10 must-have Chrome extensions for designers10 must-have Chrome extensions for designers
10 must-have Chrome extensions for designersPixeldarts
 
guest bathroom white and bluesssssssssss
guest bathroom white and bluesssssssssssguest bathroom white and bluesssssssssss
guest bathroom white and bluesssssssssssNadaMohammed714321
 
Piece by Piece Magazine
Piece by Piece Magazine                      Piece by Piece Magazine
Piece by Piece Magazine CharlottePulte
 
Interior Design for Office a cura di RMG Project Studio
Interior Design for Office a cura di RMG Project StudioInterior Design for Office a cura di RMG Project Studio
Interior Design for Office a cura di RMG Project StudioRMG Project Studio
 
The spirit of digital place - game worlds and architectural phenomenology
The spirit of digital place - game worlds and architectural phenomenologyThe spirit of digital place - game worlds and architectural phenomenology
The spirit of digital place - game worlds and architectural phenomenologyChristopher Totten
 
Sharif's 9-BOX Monitoring Model for Adaptive Programme Management
Sharif's 9-BOX Monitoring Model for Adaptive Programme ManagementSharif's 9-BOX Monitoring Model for Adaptive Programme Management
Sharif's 9-BOX Monitoring Model for Adaptive Programme ManagementMd. Shariful Hoque
 
10 Best WordPress Plugins to make the website effective in 2024
10 Best WordPress Plugins to make the website effective in 202410 Best WordPress Plugins to make the website effective in 2024
10 Best WordPress Plugins to make the website effective in 2024digital learning point
 
Map of St. Louis Parks
Map of St. Louis Parks                              Map of St. Louis Parks
Map of St. Louis Parks CharlottePulte
 

Recently uploaded (20)

Top 10 Modern Web Design Trends for 2025
Top 10 Modern Web Design Trends for 2025Top 10 Modern Web Design Trends for 2025
Top 10 Modern Web Design Trends for 2025
 
怎么办理英国Newcastle毕业证纽卡斯尔大学学位证书一手渠道
怎么办理英国Newcastle毕业证纽卡斯尔大学学位证书一手渠道怎么办理英国Newcastle毕业证纽卡斯尔大学学位证书一手渠道
怎么办理英国Newcastle毕业证纽卡斯尔大学学位证书一手渠道
 
DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...
DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...
DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...
 
Niintendo Wii Presentation Template.pptx
Niintendo Wii Presentation Template.pptxNiintendo Wii Presentation Template.pptx
Niintendo Wii Presentation Template.pptx
 
FW25-26 Knit Cut & Sew Trend Book Peclers Paris
FW25-26 Knit Cut & Sew Trend Book Peclers ParisFW25-26 Knit Cut & Sew Trend Book Peclers Paris
FW25-26 Knit Cut & Sew Trend Book Peclers Paris
 
Unit1_Syllbwbnwnwneneneneneneentation_Sem2.pptx
Unit1_Syllbwbnwnwneneneneneneentation_Sem2.pptxUnit1_Syllbwbnwnwneneneneneneentation_Sem2.pptx
Unit1_Syllbwbnwnwneneneneneneentation_Sem2.pptx
 
Giulio Michelon, Founder di @Belka – “Oltre le Stime: Sviluppare una Mentalit...
Giulio Michelon, Founder di @Belka – “Oltre le Stime: Sviluppare una Mentalit...Giulio Michelon, Founder di @Belka – “Oltre le Stime: Sviluppare una Mentalit...
Giulio Michelon, Founder di @Belka – “Oltre le Stime: Sviluppare una Mentalit...
 
General Simple Guide About AI in Design By: A.L. Samar Hossam ElDin
General Simple Guide About AI in Design By: A.L. Samar Hossam ElDinGeneral Simple Guide About AI in Design By: A.L. Samar Hossam ElDin
General Simple Guide About AI in Design By: A.L. Samar Hossam ElDin
 
simpson-lee_house_dt20ajshsjsjsjsjj15.pdf
simpson-lee_house_dt20ajshsjsjsjsjj15.pdfsimpson-lee_house_dt20ajshsjsjsjsjj15.pdf
simpson-lee_house_dt20ajshsjsjsjsjj15.pdf
 
guest bathroom white and blue ssssssssss
guest bathroom white and blue ssssssssssguest bathroom white and blue ssssssssss
guest bathroom white and blue ssssssssss
 
world health day 2024.pptxgbbvggvbhjjjbbbb
world health day 2024.pptxgbbvggvbhjjjbbbbworld health day 2024.pptxgbbvggvbhjjjbbbb
world health day 2024.pptxgbbvggvbhjjjbbbb
 
AI and Design Vol. 2: Navigating the New Frontier - Morgenbooster
AI and Design Vol. 2: Navigating the New Frontier - MorgenboosterAI and Design Vol. 2: Navigating the New Frontier - Morgenbooster
AI and Design Vol. 2: Navigating the New Frontier - Morgenbooster
 
10 must-have Chrome extensions for designers
10 must-have Chrome extensions for designers10 must-have Chrome extensions for designers
10 must-have Chrome extensions for designers
 
guest bathroom white and bluesssssssssss
guest bathroom white and bluesssssssssssguest bathroom white and bluesssssssssss
guest bathroom white and bluesssssssssss
 
Piece by Piece Magazine
Piece by Piece Magazine                      Piece by Piece Magazine
Piece by Piece Magazine
 
Interior Design for Office a cura di RMG Project Studio
Interior Design for Office a cura di RMG Project StudioInterior Design for Office a cura di RMG Project Studio
Interior Design for Office a cura di RMG Project Studio
 
The spirit of digital place - game worlds and architectural phenomenology
The spirit of digital place - game worlds and architectural phenomenologyThe spirit of digital place - game worlds and architectural phenomenology
The spirit of digital place - game worlds and architectural phenomenology
 
Sharif's 9-BOX Monitoring Model for Adaptive Programme Management
Sharif's 9-BOX Monitoring Model for Adaptive Programme ManagementSharif's 9-BOX Monitoring Model for Adaptive Programme Management
Sharif's 9-BOX Monitoring Model for Adaptive Programme Management
 
10 Best WordPress Plugins to make the website effective in 2024
10 Best WordPress Plugins to make the website effective in 202410 Best WordPress Plugins to make the website effective in 2024
10 Best WordPress Plugins to make the website effective in 2024
 
Map of St. Louis Parks
Map of St. Louis Parks                              Map of St. Louis Parks
Map of St. Louis Parks
 

Railsgirls: Where did my HTML and CSS go

  • 1. Where did my HTML and CSS go? Brigitte Jellinek Railsgirls Munich Nov 30th 2013!
  • 2. You thought you knew about HTML and CSS
  • 3. But now that you are using Rails: where did the HTML and CSS go?
  • 5.
  • 6. The Layout (for all pages) Cut up HTML One View (per page)
  • 7. Cut up and reassemble I'm embedded ruby and will produce html  /  /app/views  index.html  pages/info.html.erb  ideas.html  ideas/index.html.erb  layout/ application.html.erb
  • 8. Write all Links with link_to <h1>My Static Webpage</h1>! <p>it's full off important Tags!</p>! <p>also, it has a ! <a href="ideas.html">link to my ideas</a></p>! <h1>My Rails App</h1>! <p>It's running on rails now.</p>! <p>it still has a ! <%= link_to "link to my ideas", ideas_path %></p>!
  • 9. Links  link_to "text", "url"  link_to "all ideas", ideas_path  create all internal URLs with *_path
  • 10. rake routes $ rake routes! Prefix Verb root GET ideas GET new_idea GET edit_idea GET idea GET URI Pattern Controller#Action! / pages#info! /ideas(.:format) ideas#index! /ideas/new(.:format) ideas#new! /ideas/:id/edit(.:format) ideas#edit! /ideas/:id(.:format) ideas#show!  see all the URLs and names of routes  just add _path or _url to the prefix:  root_path, ideas_path, new_idea_path, ...  let Rails take care of URLs for you!
  • 12. Link to CSS with stylesheet_link_tag <link rel="stylesheet" href="css/bootstrap.css">! <link rel="stylesheet" href="css/style.css">! <%= stylesheet_link_tag "application", media: "all" %>! *= require_self! *= require_tree .!
  • 13. All my CSS files are magically exceedingly assembled into one file! clever way to enable caching
  • 14. The Asset Pipeline: Bigger Picture
  • 15. Use SASS .button_to, .button_to div, .button_to .btn { ! display: inline;! }! .button_to { ! &, div, .btn { ! display: inline;! }! }!
  • 16. Use SCSS .button_to, .button_to div, .button_to.and_this_class{ ! display: inline;! }! .button_to! &, div, &.and_this_class! display: inline!
  • 17. Summary  split up your html-files   one layout in app/views/layouts/   many views in app/views/   using ERB – embedded ruby inside <% %>  Convert all links   use link_to   never write URLs, use path-helpers instead  Move you CSS   to the asset pipline app/assets/stylesheets  Convert you CSS   to SASS, SCSS or LESS  Use all your knowledge of HTML Tags, CSS, ...   with tiny adjustments
  • 18. Learn more! Come to Salzburg   Summer University " for Women in IT: Aug25-Sep9 2014   Call for Lectures out soon!   Weekend-Courses in March + May   http://ditact.ac.at   Barcamp on Web Development March 14+15 2014   Every Oct and March   http://lanyrd.com/series/ barcamp-salzburg/
  • 19. Learn More! Come to Salzburg   Web Dev User group in Salzburg   BSc. Web Development   once a month   Austrian Public University " of Applied Science (FH)   Join us on http://meetup.com   MSc. Web Development   http://multimediatechnology.at