Ruby on Rails
Monday, April 27, 2015
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 <jeenajacob07@gmail.com> wrote:
view.html.erb--<%=button_to( "start recovery process", new_editor_path, :method => :get )%>--------------------------------------------------------------------------------------------------------------------------------class WelcomeController < ApplicationControllerdef index@recovery=Recovery.new()endend-----------------------------------------------------------------------------------------------------------------------------------class Recovery < ActiveRecord::Baseattr_accessible :code, :name@active_members=Member.where(status: 'active')@active_members.each do |f|@active_members=Receipt.find(f.id)if @active_members.blank? == falseputs"---write your business logic---"endendend---------------------------------------------------------------------------------------------------------------------------
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+unsubscribe@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.
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+unsubscribe@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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment