That the application can keep secure the data from many users of the application.
If you were an on-line store, like Amazon, you would want as many customers as possible using your application.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------------------------- | |
The code for the contact form | |
------------------------------- | |
<div id='contact-box' class="group"> | |
<div class="span6 clear"> | |
<form action="/" method="post" class="well"> | |
<label for="name">Your Name:</label> | |
<input type="text" name="name" class="span4" placeholder="John Smith..."> | |
<label for="email">Your email address:</label> |
IdeaBox is an app that allows User to create a title and description of their idea. They can also edit, delete, and/or like! an idea.
Now I want to add the ability for user to text in their Idea. So far, I have created an account on Twilio and I know that what I want to do is possible. I'm looking at puzzle pieces with no idea how to put them together (frustrating).
My idea is that I need to modify my Ruby code (idea.rb and idea_store.rb):
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blog_posts.csv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blog_posts.csv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Garden | |
attr_reader :layout, :row_0, :row_1 | |
def initialize(layout, two=nil) | |
@row_0, @row_1 = layout.split("\n") | |
@layout = layout.gsub("\n", "") | |
end | |
def alice |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
guard :minitest do | |
watch(/test\/.+_test\.rb/) | |
watch(/lib\/(.+)\.rb/) do |data| | |
"test/#{data[1]}_test.rb" | |
end | |
end |
NewerOlder