view.html.erb

<%=button_to( "start recovery process", new_editor_path, :method => :get )%>
--------------------------------------------------------------------------------------------------------------------------------
class WelcomeController < ApplicationController
def index
  @recovery=Recovery.new()
end  
end
-----------------------------------------------------------------------------------------------------------------------------------

class Recovery < ActiveRecord::Base
attr_accessible :code, :name

 @active_members=Member.where(status: 'active') 
 @active_members.each do |f|
@active_members=Receipt.find(f.id)
if @active_members.blank? == false
puts"---write your business logic---"
end
 end

end
---------------------------------------------------------------------------------------------------------------------------

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/65a6d016-b37b-48c7-adfc-e700b820086d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to