Hello Jeena, Thank you very much ... This is exactly what I was looking
for. But I think I have to rename "def index" to "def new" in the
controller.

On Thu, Apr 23, 2015 at 4:28 PM, JEENA JACOB <jeenajaco...@gmail.com> wrote:

> 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
> <https://groups.google.com/d/msgid/rubyonrails-talk/65a6d016-b37b-48c7-adfc-e700b820086d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAC_h78LsMXMkLwdyvpZh4DBsWR%3Dd3MCmbwh%2BiN%2Bnjz02yn62yw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to