27.02.2013 Views

Rails%203%20In%20Action

Rails%203%20In%20Action

Rails%203%20In%20Action

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

toggle_watching_button method, 330<br />

to_i method, 240, 323<br />

to_json method, 349, 353, 355, 382<br />

token method, 353<br />

token_authenticatable module, 120, 352<br />

to_param method, 546–547<br />

topics<br />

adding authorship to, 505–506<br />

adding posts to, 493–497<br />

authenticating, 501–505<br />

controller, 485<br />

topics_path method, 485<br />

to_s method, 156, 260–261, 423–424, 500<br />

touch option, 458<br />

to_xml method, 349<br />

to_yaml method, 519<br />

trackable module, 120<br />

tracking<br />

changes, for attributes, 548–549<br />

state, 243–285<br />

changing for ticket, 252–263<br />

leaving comment, 244–252<br />

locking down, 278–285<br />

managing, 269–277<br />

tracking changes, 263–269<br />

try method, 146, 196<br />

turn gem, 51<br />

Twitter, 348–349, 413<br />

twitter action, 421, 428<br />

twitter argument, 420<br />

Twitter authentication, 415–425<br />

OmniAuth gem, setting up, 415–418<br />

registering application with, 416–417<br />

testing sign-in, 419–425<br />

type option, 351–352<br />

U<br />

-u option, git push 49<br />

Ubuntu, 52, 385–389, 391<br />

UCS Transformation Format–8-bit. See UTF-8<br />

Uniform Resource Locators. See URLs<br />

unsubscribing, from ticket notifications, 328–333<br />

up command, 387<br />

up method, 8<br />

update access, 190–193<br />

update action, 90–91, 114–115, 159–161<br />

update option, 234<br />

update_all method, 380<br />

update_attribute method, 137<br />

update_attributes method, 19, 90, 371<br />

updates, subscribing to, 325–333<br />

automatically adding user to watchlist, 327–328<br />

testing comment subscription, 325–327<br />

unsubscribing from ticket notifications, 328–333<br />

INDEX<br />

updating, 16–20<br />

uploading files. See files, uploading<br />

url method, 219<br />

url option, 300<br />

URLs (Uniform Resource Locators), 546–548<br />

User class, 429<br />

user method, 184<br />

User models, fake, 500–501<br />

user_omniauth_authorize_path method, 420<br />

useradd command, 391<br />

user_class method, 499<br />

user_hash key, 426<br />

usermod<br />

-a option, 390<br />

-d option, 388, 391<br />

-G option, 388, 390<br />

-s option, 388, 391<br />

User::Omniauth- Callbacks module, 430, 433<br />

users<br />

admin, 155–157<br />

allowing tags for certain, 296–297<br />

for app, 391–394<br />

automatically adding to watchlist, 327–328<br />

confirmation link sign-in, 122–126<br />

confirming, 123–126<br />

testing email, 122–123<br />

and database, 394–395<br />

deleting, 161–163<br />

editing, 157–163<br />

edit and update actions, 159–161<br />

show action, 158<br />

form sign-in, 126–128<br />

linking tickets to, 128–135<br />

attributing tickets to users, 129–131<br />

failed tests, 131–132<br />

fixing features, 132–135<br />

signup feature, 121–122<br />

table, adding admin field to, 138<br />

user_signed_in? method, 125<br />

UTC (coordinated universal time), 65<br />

UTF-8 (UCS Transformation Format–8-bit), 54<br />

V<br />

Vagrant, 386–387, 392<br />

vagrant halt command, 387<br />

vagrant ssh command, 387<br />

validatable module, 120<br />

validates method, 78<br />

validates_numericality_of method, 13<br />

validates_presence_of method, 13, 78<br />

validates_uniqueness_of method, 78<br />

validations, 13–14<br />

app/controllers/projects_controller.rb, 80<br />

app/models/project.rb, 78<br />

565

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!