Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ModSearchesController < ApplicationController
- def new
- @mod_search = ModSearch.new
- @mod_search.updated_after = Mod.find(:first,:order=>"updated_at").updated_at
- @mod_search.title = @mod_search.updated_after.to_s
- end
- end
- - - -
- <% title "New Mod Search" %>
- <% form_for @mod_search do |f| %>
- <%= f.error_messages %>
- <p>
- <%= f.label :title %>
- <%= f.text_field :title %>
- </p>
- <p>
- <%= f.label :updated_after %>
- <%= f.date_select :updated_after %>
- </p>
- <p>
Add Comment
Please, Sign In to add comment