yes. thanks a lot..
The one more thing...
I try to complete that
respond_to do |format|
format.js{
@project = Project.find(params[:id])
@main_hours = main_hours_sum(@project.id)
@part_hours = part_hours_sum(@partprojects)
@all_hours = @main_hours + @part_hours
}
end
$('#main-hours span').text('<%= @main_hours %>');
$('#all-hours span').text('<%= @all_hours %>');
<div id="main-hours"><span><%= @main_hours %></span> h</div>
<div id="all-hours"><span><%= @all_hours %></span> h</div>
But then noting is working.. mhhh..
Am 20.11.2012 um 14:37 schrieb Jim Ruther Nill <[email protected]>:
>
>
>
> On Tue, Nov 20, 2012 at 9:31 PM, Werner Laude
> <[email protected]> wrote:
>
> Am 20.11.2012 um 14:19 schrieb Jim Ruther Nill <[email protected]>:
>
>> $('#main-hours span').text('<%= @main_hours %>');
>
> perfect.. thanks a lot..
> Now I get the idea..
>
>
> Cheers! At least we nail that one :)
>
>
>
> Werner Laude
> [email protected]
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
>
>
> --
> -------------------------------------------------------------
> visit my blog at http://jimlabs.heroku.com
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
Werner Laude
[email protected]
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.