Tip: This shouldn't be here to start with as per comment above but if you were to have such a code here, it's best to put it as follows:
```ruby
 def eventids
  @eventids ||= params[:attendee][:event_ids]
 end
```
This way it's fetched once and stored in an instance variable.