search for: jimlab

Displaying 20 results from an estimated 50 matches for "jimlab".

Did you mean: simlab
2011 Mar 10
10
JS data to rails view helper
I have a view helper like ryan bates complex forms task helper, rails 2.2.2. Anyway is there a way to send the value selected in a select menu to the helper? I am trying to do stuff without going back to the server. <%= select_tag :discout_code, options_for_select(@discount_codes)%><%= add_exclusion_date_link(''Add Existing'', JS ) %> -- You received this
2012 Dec 13
7
Thin server giving Stack level too deep error
Hi, I am using thin web server in my rails project. But it gives stack level too deep error. Couldn''t find any appropriate solution to this. I have tried updating the ruby but didn''t help. Regards, Sumit -- 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
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 Dec 13
23
make rails connect with database
i''m newbie in rails. i have problem with how to connect rails with database. before i can connect it with command "rake db:create" to create database. and "rake db:migrate" to migrate schema to database. but, i want to connect rails with database that i have before, not create it via rails. can you help me? -- Posted via http://www.ruby-forum.com/. -- You received
2012 Sep 12
8
Round off method in 1.8.7
Hi all i am trying to use round method if have a value 2.08 i want it as 2.1 and it worked in 1.9.2 but not in 1.8.7 is there any other way of doing it. USING 1.9.2 1.9.2p320 :001 > 2.08.round(1) => 2.1 1.9.2p320 :002 > 2.04.round(1) => 2.0 USING 1.8.7 irb(main):001:0> 2.08.round => 2 irb(main):002:0> 2.08.round(1) ArgumentError: wrong number of arguments (1 for
2011 Aug 31
9
undefined method `model_name' for NilClass:Class in rails 3.0.0
Hi, i got search which shows following error ActionView::Template::Error (undefined method `model_name'' for NilClass:Class): 1: <%= form_for(@employee) do |e| %> 2: EMP ID<%= e.text_field :id %><br> 3: <%= e.submit ''search'', :controller => ''employees'', :action => ''search1'' %>
2011 Jun 01
4
missing these required gems: will_paginate
Hi EveryBody, I hope some one help me. I am new on ROR so might be problem is silly or Obvious. i had developed a project and i had use "WILL_PAGINATE" plugin in my app. It''s working well at localhost. But when deploying on HEROKU, ALL step is going well but when running $heroku rake db:migrate ERROR IS Missing these required gems: will_paginate You''re
2011 Feb 07
9
Best way to populate development database
What would be the best way to populate a development database for a Rails 3 app? I have looked at faker, but it seems that development has stopped, any other options? -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To
2012 Sep 13
10
access key error
I am getting following error while run my rails app in my server ActionView::Template::Error (You did not provide both required access keys. Please provide the access_key_id and the secret_access_key.): -- 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
2011 Jun 29
3
Rails double submit -> double post -> duplicate data
Hi, We are encountering occasions where users post twice or more a form, basically we have detected two situations: a) The user push twice enter b) The user push double click on button "save" or "submit" We consider that this becomes a problem when creating (because we duplicate data) and we think that in some context it could become a security issue
2012 Sep 20
7
jQueryUI autocomplete (Rails 3.1): can't get source as url to work
Hey, I''m able to duplicate everything in Ryan Bates'' screencast on jQueryUI autocomplete (#102<http://railscasts.com/episodes/102-auto-complete-association-revised>), except for the piece that calls the server for completion data. Here is my view html: <input data-autocomplete-source="/searches" id="search-markets"
2012 Sep 11
10
wickedpdf
Hi all i''m trying to generate pdf and i got this error Location of wkhtmltopdf unknown and i also get Bad wkhtmltopdf''s path gpa/vendor/plugins/wicked_pdf/lib/wicked_pdf.rb:26:in `initialize'' /EDWARD/_gpa/vendor/plugins/wicked_pdf/lib/pdf_helper.rb:53:in `new'' /EDWARD/gpa/vendor/plugins/wicked_pdf/lib/pdf_helper.rb:53:in `make_pdf''
2011 Nov 28
4
getting a subdomain name in model.
Hi all, I am facing problem in getting subdomain name inside the model. The following is my setup. I am using cancan for authorization.I wanted a specific condition in Ability.rb ( the file which is placed in models if we install cancan gem). Below is the condition I wanted: ========================================================= user ||= User.new # guest user (not logged in) if
2012 Nov 09
8
method conditional option pattern
When I have this pattern sign_me(@user, :event => :authentication, :subdomain => subdomain) how can I write it to avoid sending the :subdomain option if subdomain.nil? ( if possible ..) sign_me(@user, :event => :authentication #?, :subdomain => subdomain unless subdomain.nil? ) -- You received this message because you are subscribed to the Google Groups
2012 Oct 31
5
css background not showing
Hi all, for some reason adding the following is doing nothing... .post.hover { background: FAFAFA; I''ve got this in my posts.js coffee file $ -> $(''.post'').hover (event) -> $(this).toggleClass("hover") and my index is <% @posts.each do |post| %> <div class="post"> <strong><%= post.title %></strong>
2012 Nov 26
5
Missing template pages/layout only occasionally
I have my app email me errors when they occur. I get this about 2-3 times a week with thousands of hits a day to the site. pages/show is a .html.erb file that renders the partial _strategicrelationshipacademy.html.erb essentially. Or whatever partial it calls for. I get this on many different ''pages''. Obviously the partial exists if it renders it fine most of the time. What
2012 Oct 09
10
Auto refresh the drop-down
I have an option in dropdown like "Add new option" written using grouped_collection_select. And when user clicks on the "Add new option". A pop up dialog appears to add a new value. And when I click create it hits the database and adds the value to the db. But It never updates the dropdown list. Suggest me a way to auto refresh only the current dropdown with the new
2011 Feb 17
1
Adding images for pagination links in will_paginate
Hi, I am using will_paginate for pagination. I have to show only Previous and Next links, that I have achieved by ":page_links=>false" parameter. Now I want to show the images instead of "Previous" and "Next" labels. Can anyone tell how to achieve this in will_paginate? Thanks, Tushar -- Posted via http://www.ruby-forum.com/. -- You received this message
2011 May 03
1
syntax error, unexpected $end, expecting rASSOC
I added this to my db/seeds.rb: user = User.create :email => ''another-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org'', "password => ''guessit'' Category.create [{:name => ''Programming''}, {:name => ''Event''}, {:name => ''Travel''}, {:name => ''Music''},
2011 Sep 15
1
bypass defualt scope.
class Shop < ActiveRecord::Base has_many :documents, :dependent => :restrict end class Document < ActiveRecord::Base belongs_to :shop default_scope :order => ''updated_at DESC'' end in the Shop show view I have: - for document in @shop.documents %li(id="shop_documents")= link_to document.subject, shop_document_url(@shop, document) I want list