GrailsInAction / graina2

Source code for the 2nd edition of Grails in Action
90 stars 92 forks source link

Correction to: Listing 5.4 Adding the search logic to UserController #16

Open philfriesen opened 11 years ago

philfriesen commented 11 years ago

The search term is not displayed in the results page because the wrong property is passed back by the controller. I got the code to work by changing

from: term: params.loginId,
  to: term: params.query,
  or: term: query,
pledbrook commented 11 years ago

Thanks, you're right. In fact this may change because several people have commented that 'query' is a confusing label. We may change the controller argument to 'loginId' or 'searchLoginId' or something like that.