Displaying 4 results from an estimated 4 matches for "webagentur".
Did you mean:
webagent
2013 Jan 24
12
group by + sum
Hi.. I need some support...
table:
week_id, user_id, project_id, hours
ex. =>
33, 2, 1, 10
34, 2,1,15
33, 2, 2, 20
35, 3, 1,20
etc.
Want to display a sum of hours per week_id per user_id
I have:
@hours = HourUser.includes(:user).group_by { |h| h.week_id }
@hours.keys.sort.each do |hour|
@hours[hour].collect(&:stunden).sum
Hours are summed up, but not sorted by user_id..
How to get
2012 Jun 19
0
passing data
Hello.
I need some help with this:
I have a link to open a modal window:
<%= link_to instruct.instruction.name, "#myModal", :data => {:toggle =>
"modal", :id => instruct.id}, :class=> "openModal"%>
and a coffeescript
$(".modal-body #result").html $(this).data("id")
Shows me the result in the html: <span
2014 Apr 23
0
Select fields, Coffeescript and Cocoon
Hello,
I have select field which after a choice happened, feeds another select
field.
Using the gem Cocoon to duplicate this set of select fields.
My problem now is to find a solution that the coffee script supplies values
for each select field-set separately.
My code:
form
<%= render 'usergroup_fields', :f => usergroup %>
<%= link_to_add_association "Add
2014 May 06
0
js .closest
I have a script:
$ ->
$(document).on 'change', ('.ops_select'), ->
val = $(".ops_select option:selected").val()
$.ajax '/projects/update_oncalls/',
type: 'GET'
dataType: 'script'
data: {ops_group_id: val }
which triggers a "update_concalls.js.coffee" file to replace a the value in
a select-tag.