I am learning Ruby and Rails.
I have a Ruby on Rails project that tracks jobs a server is running. Right now, when I manually create a new job, it announces:
<
As nas commented, link_to
is not available from your controller unless you include the appropriate helper module, but url_for
is. Therefore I'd do pretty much what Emily said except use url_for
instead of hardcoding a URL.
e.g. if a job were defined as a resource in your routes:
link = "#{update.id}"
flash[:notice] = "Created job number #{link}"