Skip to content

Instantly share code, notes, and snippets.

@satyatechsavy
Created November 25, 2013 08:02
Show Gist options
  • Save satyatechsavy/7637946 to your computer and use it in GitHub Desktop.
Save satyatechsavy/7637946 to your computer and use it in GitHub Desktop.
def assign_variable
@Four_Season_Set_Channel = params[:channel]
respond_to do |format|
format.js {
render(:update) { |page| page.alert @Four_Season_Set_Channel }
}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment