see i defined one method called campaign in the model and through a
url i am tryong to pass two parameters like user_id and campaign_id
into a method called mail_open_count. how i can pass 2 that method.
def campaign(campaign) @campaign_id = "[#{campaign.email_campaign_content.campaign_id}] " @user_id = "[#{campaign.user_id}] "
setup_email(campaign)
mail_template = campaign.active_email_template
template = Liquid::Template.parse(mail_template.body)
body :body => template.render(“bgcolor1” =>
mail_template.colours[:colour1],“bgcolor2” =>
mail_template.colours[:colour2],“bgcolor3” =>
mail_template.colours[:colour3])<< @user_id << @campaign_id << “”
whre is user count is defined in routel like this
see i defined one method called campaign in the model and through a
url i am tryong to pass two parameters like user_id and campaign_id
into a method called mail_open_count. how i can pass 2 that method.
def campaign(campaign) @campaign_id = "[#{campaign.email_campaign_content.campaign_id}] " @user_id = "[#{campaign.user_id}] "
setup_email(campaign)
mail_template = campaign.active_email_template
template = Liquid::Template.parse(mail_template.body)
body :body => template.render(“bgcolor1” =>
mail_template.colours[:colour1],“bgcolor2” =>
mail_template.colours[:colour2],“bgcolor3” =>
mail_template.colours[:colour3])<< @user_id << @campaign_id << “”
whre is user count is defined in routel like this