search for: profile_url

Displaying 2 results from an estimated 2 matches for "profile_url".

2007 Aug 27
2
issue with edge rails and urls
...c.rb:17 Here''s the relevant spec: describe ApplicationHelper, "home_link" do before(:each) do User.current = nil Profile.current = nil end it "should generate a valid home link when User.current and Profile.current is not set" do home_link.should =~ /#{new_profile_url}/ end it "should generate a valid home link when User.current is set" do User.current = mock_model(User) home_link.should =~ /#{dashboard_url}/ end it "should generate a valid home link when Profile.current is set" do Profile.current = mock_model(Profile) home_l...
2009 Dec 23
8
Where did this value in a form come from?
Newb here. I have a form and a value that is being displayed ... and I have no idea where the value came from. I have done a <%= debugger; '''' %> in the form and, indeed, the debugger stops at the statement. I have tried to trace through the code to see where the value came from ... and I gave up. So ... what in Rails initializes the fields of a form? -- Posted via