Advertisement
Guest User

Untitled

a guest
Dec 2nd, 2015
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. def find_by_year_and_month(year, month) # find_by_year_and_month("2015", 3)
  2. if found_year = RTMYearName.find_by( year: year.to_s )
  3. find_by mm_year_plan_id: found_year.id, month_nr: month.to_i #Problem on this line
  4. end
  5. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement