Hi,
I have a rails app where I have clusters and users in a belongs_to has_many relationship.
In the cluster_controller create method I write:
@cluster = @current_user.clusters.build(params[:cluster])
now I want to run some commandline script:
output = `echo cluster#{@cluster.id} > /tmp/out`
...rest of function here
I also tried
output = `echo cluster#{@cluster.id.to_s} > /tmp/out`
When I do this the file has just cluster in it and not cluster#. Why is this and how do I fix it?