daily pastebin goal
63%
SHARE
TWEET

Untitled

a guest Jun 24th, 2018 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top