27.02.2013 Views

Rails%203%20In%20Action

Rails%203%20In%20Action

Rails%203%20In%20Action

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

last_post method, 510<br />

last_ticket method, 365–367<br />

launchy gem, 245–246<br />

let method, 139, 227<br />

li tag, 269<br />

lib/forem/engine.rb file, 474–475<br />

lib/forem.rb file, 474<br />

LinkJumbler class, 539–540<br />

links<br />

adding to project, 86–87<br />

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

for deleting tags, 299–302<br />

hidden, scenario to test, 176–178<br />

hiding<br />

edit and delete links, 146–147<br />

New Project link, 144–146<br />

hiding based on permission, 194–198<br />

link_to method, 10, 18, 60, 113, 219, 241, 310<br />

confirm option, 92<br />

listing tickets, 110–111<br />

load method, 209<br />

locals option, 236, 489, 496<br />

lockable module, 120<br />

locking down, states, 278–285<br />

bestowing changing state permissions, 280–281<br />

hacking form, 282–283<br />

hiding select box, 278–280<br />

ignoring parameter, 283–285<br />

login action, 504<br />

ls -x command, 404<br />

-m option, 388, 391<br />

M<br />

mail gem, 334–335<br />

mail method, 319<br />

make_default action, 275<br />

make_default_admin_state_path method, 275<br />

Matsumuto, Yukihiro, 2, 542<br />

Matz is nice always, so we are nice. See<br />

MINASWAN<br />

Matz Ruby Interpreter. See MRI<br />

member method, 304<br />

merge! method, 129<br />

metaclass, 498<br />

method option, 92, 115<br />

method_missing method, 73<br />

methods option, 365, 383<br />

middleware, 533–540<br />

ActionDispatch::Static class, 536–538<br />

application route cycle, 477<br />

in Rails framework, 534–536<br />

routing cycle of engine, 478<br />

simple middleware stack, 476<br />

INDEX<br />

559<br />

migrations, 8–9<br />

MINASWAN (Matz is nice always, so we are nice),<br />

543<br />

Model-View-Controller paradigm. See MVC<br />

paradigm<br />

mount method, 522, 530<br />

--mountable option, 471<br />

MRI (Matz Ruby Interpreter), 389<br />

msysGit application, 47<br />

MVC (Model-View-Controller) paradigm, 3–4<br />

MySQL database server, 54<br />

N<br />

n+1 selects operation, 444–445<br />

name method, 260<br />

namespace-based CRUD, 151–155<br />

create action, 154–155<br />

index action, 152–153<br />

namespace root, 151–152<br />

new action, 153–154<br />

namespace method, 350<br />

namespace root, 151–152<br />

namespace routing, 148–151<br />

nested attributes, 224–226<br />

nested resources, tickets, 99–116<br />

controller, 101–102<br />

defining has_many association, 103<br />

deleting, 115–116<br />

editing, 112–115<br />

finding within scope of project, 105–106<br />

nested routing helpers, 100–101<br />

within project, 104–105<br />

validations, 106–108<br />

viewing, 108–112<br />

nested routing helpers, 100–101<br />

new action, 153–154, 236, 272, 488–489<br />

new command, 46<br />

new method, 62<br />

New Project link, 144–146<br />

new_file_path method, 235<br />

new_project_path method, 60<br />

new_topic_post_path method, 495<br />

nginx, 407–408<br />

nokogiri gem, 358<br />

Nokogiri::HTML method, 539<br />

notice method, 15<br />

notifications, ticket, 313–325<br />

Action Mailer classes, 318–320<br />

automatically watching ticket, 314–315<br />

defining watchers association, 316–318<br />

delivering HTML emails, 322–325<br />

observers, 315–316<br />

unsubscribing from, 328–333

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

Saved successfully!

Ooh no, something went wrong!