Guest User

Untitled

a guest
Jun 24th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. class ModSearchesController < ApplicationController
  2. def new
  3. @mod_search = ModSearch.new
  4.  
  5. @mod_search.updated_after = Mod.find(:first,:order=>"updated_at").updated_at
  6.  
  7. @mod_search.title = @mod_search.updated_after.to_s
  8.  
  9. end
  10.  
  11.  
  12. end
  13.  
  14.  
  15. - - -
  16.  
  17. <% title "New Mod Search" %>
  18.  
  19. <% form_for @mod_search do |f| %>
  20. <%= f.error_messages %>
  21. <p>
  22. <%= f.label :title %>
  23. <%= f.text_field :title %>
  24. </p>
  25.  
  26. <p>
  27. <%= f.label :updated_after %>
  28. <%= f.date_select :updated_after %>
  29. </p>
  30. <p>
Add Comment
Please, Sign In to add comment