similar to: assert_select for <p><b>text</b>value</p>

Displaying 20 results from an estimated 10000 matches similar to: "assert_select for <p><b>text</b>value</p>"

2010 Aug 30
16
<b> tag in HTML 5 (was Re: Re: assert_select for <p><b>text</b>value</p>)
On 30 August 2010 15:47, Marnen Laibow-Koser <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: > Colin Law wrote: >> I have the following html >> <p><b>text</b>value</p> >> I can use >> assert_select "p>b", "text" >> to check the text portion, and >> assert_select "p", "value"
2009 Oct 01
9
Strange problem with "and" - "&&"
Hello I have a strange problem with this code: <%unless (@students.empty? and params[:commit].nil?) %> <%="test"%> <%= render :partial => ''results'' %> <% end %> Even though in some cases @students.empty? returns false and params [:commit].nil? returns true (or the opposite), it displays the test and the render area. I put before and
2012 Nov 26
8
why functional test does not get failure?
The test: test "should get new" do get :new, :room_id => @room.name assert_template(:ne) end the template new does not exists but the test does not get failure. Why? -- 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
2009 Nov 17
6
after changed the tag i got the same eror
SyntaxError in Upload#index Showing *app/views/upload/uploadfile.rhtml* where line *#10* raised: compile error app/views/upload/uploadfile.rhtml:10: syntax error Extracted source (around line *#10*): 7: <% end %> Trace of template inclusion: app/views/upload/uploadfile.rhtml RAILS_ROOT: /home/malathi/www/upload Application Trace <http://localhost:3000/upload#> | Framework
2010 Dec 09
15
Rails 3 Active Record query returns "undefined method `loaded?' for #<Array:0x126a4c>"
I am getting this error on an rspec test: undefined method `loaded?'' for #<Array:0x126a4c> When I call: Practice.includes("practice_members").all Practice has_many :practice_members PracticeMember belongs_to :practice Practice.all returns: [#<Practice id: 6, name: "Practice One", created_at: "2010-12-09 15:40:46", updated_at: "2010-12-09
2009 Aug 01
23
Hi doubt in unit testing
def test_check_for_validity post=County.new(:name=>"myname",:description=>"mydesc") assert post.save end above is the method and when i run unit test it is saying as 1) Failure: test_check_for_validity(CountyTest) [/test/unit/county_test.rb:10]: <false> is not true. what does it say i cannot under stand please help -- Karthik.k Mobile -
2013 Jan 07
9
Devise Admin View password
Hi Everyone i am using devise for authentication for my app. Is there any way, Admin user can view other users password as normal string. Without storing there password as string in database? Please advise. -- 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
2012 Oct 27
7
Photo Paperclip::CommandNotFoundError
Hi all, I am using paperclip plugin. when i am trying to upload photo i am getting this error " Photo Paperclip::CommandNotFoundError " and i am getting this error on my server production mode. if i run on development mode on my server i can able to upload the pic. why this is happening i have no idea. can any help me out. Cheers, Kp -- You received this message because
2013 Jan 25
4
Usage of ram for Sunspot Search engine
Hi all, I am using Sunspot Search Engine in my app. When I deployed my app in production It it bit slower side. My Server Details: ram 256 Ubuntu 11.10 How can I check why my app is slow in production can any one help me out to solve this issue. Cheers, Kp -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this
2009 Dec 13
20
Need help...NameError in InteractController#add_to_cart
Hi,I am developing a web app and am following the text-Agile web development.....Each time I click my "add to cart" button" i always get the  page below:I have double checked to see if i have errors in my code,there was none,please what do i need to do to proceed? NameError in InteractController#add_to_cartundefined local variable or method `find_cart'' for
2012 Aug 13
9
Using Jquery plugin "tokenInput" with rails
Hi, I made a contact manager app using rails. I added TokenInput plugin to introduce an instant contact search functionality in it. Tried following a railscast http://railscasts.com/episodes/258-token-fields but have been struggling with it for a while. Following is the code I use in my view <%= form_tag({:action => ''show'', :id => @contact_tokens}, :remote =>
2011 Mar 08
6
Windows /RailsInstaller- Webrick starts but welcome page doesn't load
I''m trying the RailsInstaller to get ROR installed on Windows.. everything was going great(rake db:create/migrate and console working as expected) until I started the server, webrick starts but the welcome page never loads, no errors are displayed at all it just sits there forever, I looked at the logs and there are no errors there either Here is my configuration Windows 7 Rails 3.0.4
2012 Feb 28
8
getting error:undefined method 'current'
hi all, i am getting an error ''undefined method ''current'' for 852:Fixnum'', the error coming for following line <%if @expert_pagination.current.previous%> <a href="#" class="darkgray1"
2011 Jun 14
5
Buttons's routing
Hey My app has some buttons and i have route all to different action in router.rb file but click on each button results in same action. why? Am i missing to specify anything...) Rails:3.0.7 Thanks in advance. -- 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
2009 Sep 29
10
rails 2.3.3 upgrade shows error
You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occurred while evaluating nil.<< any ideas ? Application works fine with rails 2.1.0 Sandip -- Ruby on Rails Developer http://funonrails.wordpress.com www.joshsoftware.com http://brandpotion.com (Latest project released) --~--~---------~--~----~------------~-------~--~----~
2010 Apr 14
35
Conditionally adding a link to a form -- how?
I''ve got two entities created by scaffolding: Expense & Vendor In Expense#new there''s a form with a Vendors-drop-down and a NewVendor- button. The latter button brings up Vendor#new. The Create button in Vendor#new brings up Vendor#show with Edit & Back links. I want to append a third link conditionally to Vendor#show: if the Expense#new form led to the Vendor#show
2010 Jul 02
17
Doesn't work erb engine
I''m new in RoR:) I have controller and view (/app/controllers/greeting_controller.rb and /app/views/greeting/index.rhtml /.erb/.html.erb - doesn''t match). greeting_controller.rb source: class GreetingController < ApplicationController def index @message = "Hello world!" end end index.rhtml source: <html>
2009 Aug 24
8
overriding .blank? method
Hi, Does anyone know a way to override .blank? method that rails provides. I want to add additional custom checks (specific to my application) to this method. Thanks, Pratik
2013 Feb 07
11
Rails change default time zone.
Hello everyone, I am using rails 3.2.8. I want to change time zone to New York time. I changed following, but didn''t work #config/application.rb config.time_zone = ''Eastern Time (US & Canada)'' config.active_record.default_timezone = ''Eastern Time (US & Canada)'' If am wrong please clarify. Thank You! -- You received this message
2011 Nov 05
13
Adding a site admin user while creating a site
Hi Gurus, I wanted to add siteadmin user(basically a user with a certain role) while creating the site itself. I hope that i have done all the necessary stuff by going through raynb''s railscasts ( http://railscasts.com/episodes/196-nested-model-form-part-1) But could not see user fields being displayed in the site creation form.. Below are the details. I Have two model users and