STEPS
-
Click on Help menu
-
Select Enter License
-
Then paste given KEY given at bottom
-
Finally click on Use License
STEPS
Click on Help menu
Select Enter License
Then paste given KEY given at bottom
Finally click on Use License
| #!/usr/bin/env ruby | |
| require 'test/unit' | |
| class TestSums < Test::Unit::TestCase | |
| def setup | |
| @a = [2, 5, 18, 27] | |
| @sum = 0 | |
| end |
| $(function () { | |
| "use strict"; | |
| // for better performance - to avoid searching in DOM | |
| var content = $('#content'); | |
| var input = $('#input'); | |
| var status = $('#status'); | |
| // my color assigned by the server | |
| var myColor = false; |
| if your vim pluggin `command-t` does not work with message: | |
| ``` | |
| command-t.vim could not load the C extension | |
| ``` | |
| or with `difference version ruby` | |
| you can try: | |
| ``` | |
| cd ~/.vim/plugged/command-t/ruby/command-t/ext/command-t |
This should help you get Sendmail installed with basic configuration on Ubuntu.
sudo apt-get install sendmail/etc/hosts file: nano /etc/hosts127.0.0.1 localhost yourhostnamesudo sendmailconfigsudo service apache2 restart| --------------------------- | |
| Pengganti .find or .find_by | |
| --------------------------- | |
| categories = outlet.categories | |
| categories.select{|c| c[:id] == item[:category_id]}.first | |
| --------------------------- | |
| Penganti check value hash | |
| --------------------------- |
| sudo apt-get install checkinstall build-essential automake autoconf libtool pkg-config libcurl4-openssl-dev intltool libxml2-dev libgtk2.0-dev libnotify-dev libglib2.0-dev libevent-dev | |
| sudo apt-get install libmagickwand-dev | |
| sudo apt-get install ruby-dev | |
| sudo apt-get install imagemagick |
| [user] | |
| name = Yuda Cogati | |
| email = yuda.pc@gmail.com | |
| [alias] | |
| # checkout a branch | |
| co = "checkout" | |
| # checkout a new branch | |
| cob = "checkout -b" | |
| # adds all changed files |
| location: `config/initializers/doorkeeper.rb`: | |
| ``` | |
| resource_owner_authenticator do | |
| current_user || begin | |
| session[:user_return_to] = request.fullpath | |
| redirect_to new_user_session_url | |
| end | |
| end | |
| ``` |
| #Model | |
| @user.should have(1).error_on(:username) # Checks whether there is an error in username | |
| @user.errors[:username].should include("can't be blank") # check for the error message | |
| #Rendering | |
| response.should render_template(:index) | |
| #Redirecting | |
| response.should redirect_to(movies_path) |