[Rails] vim: What html plugin do you use to help you close tags?

2009-09-30 Thread Chris Olsen
I have tried to use the closetag.vim, but would always get numerous errors when pressing ctrl-_ that I would have to click the enter key for each of the errors before it would finally close the tag for me. I started using xml.vim which works great for normal xml/html files, but always creates a

[Rails] Re: vim: What html plugin do you use to help you close tags?

2009-09-30 Thread Chris Olsen
Chris Olsen wrote: I have tried to use the closetag.vim, but would always get numerous errors when pressing ctrl-_ that I would have to click the enter key for each of the errors before it would finally close the tag for me. I started using xml.vim which works great for normal xml/html

[Rails] Upgrading to 2.3 from 2.1

2009-08-23 Thread Chris Olsen
Can be done in a one step process or do I have to upgrade to 2.2 then 2.3? Thanks for the help. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group.

[Rails] Re: Upgrading to 2.3 from 2.1

2009-08-23 Thread Chris Olsen
bill walton wrote: Hi Chris, Just one step. Best regards, Bill Thanks for the help Bill. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group.

[Rails] Routing problems for different formats

2009-08-23 Thread Chris Olsen
I am having 2 similar problems with routing. 1. With Rails if I make a js request using jQuery I always have to append a .js extension to allow the request to be handled appropriately. If I don't append a js extension I get html formatted data back. Using Merb this never happened and worked

[Rails] Re: Routing problems for different formats

2009-08-23 Thread Chris Olsen
Maurício Linhares wrote: Without looking at your routes and code it's really had to find a reason. A big part of the issue is that the initial problems are using standard code, the hacks only come into play to make things work. First issue: $(#terms-of-use).click(function() { var url =

[Rails] Re: Routing problems for different formats

2009-08-23 Thread Chris Olsen
Thanks for clearing that up Maurício. -- Posted via http://www.ruby-forum.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

[Rails] OT: What is the best DNS for wildcard subdomains?

2009-03-08 Thread Chris Olsen
I am having issues with netfirms in that in the past and right now certain subdomains result in a failure to direct the request to my servers. I need to find somewhere that is reliable and that can handle wildcard subdomains. Any suggestions? -- Posted via http://www.ruby-forum.com/.

[Rails] Re: OT: What is the best DNS for wildcard subdomains?

2009-03-08 Thread Chris Olsen
Jodi Showers wrote: I've never run my own dns, or compiled bind - but I can say that easydns.com is a joy to use; wildcards et all. Jodi Thanks for the advice Jodi. I signed up and was able to get everything working. Hopefully I never see this problem again. BTW, when I signed up I

[Rails] Re: OT: What is the best DNS for wildcard subdomains?

2009-03-08 Thread Chris Olsen
Ranjeet Smith wrote: You should probably diagnose the actual problem so that you don't waste a lot of time migrating a broken configuration only to have it remain broken. The first time netfirms admitted to the problem being on their side so the root of the problem has been removed :) --

[Rails] Can't connect to local MySQL server through socket...

2009-03-04 Thread Chris Olsen
I just did an unwanted mysql upgrade and am now unable to start the mysql service. After doing some searching the common solution is to just create a symlink ln -s /var/run/mysqld/mysqld.sock /tmp/mysql.sock The issue for me is I don't have the file I am trying to symlink to

[Rails] Re: Can't connect to local MySQL server through socket...

2009-03-04 Thread Chris Olsen
After running the proper command /etc/init.d/mysql start it then informed me that a log expiry must be set for the current configuration. It is a little odd that the default configurations don't work, but it is working for me now so I am happy. -- Posted via http://www.ruby-forum.com/.

[Rails] Request type error thrown on delete request

2009-01-17 Thread Chris Olsen
For some odd reason when I make javascript delete requests the destroy is performed, but then I get an error message back saying that only get, delete and put requests are allowed. Here is some global js that binds all the delete links within tables function bind_table_destroys() {

[Rails] Re: Can anyone see why the pw validation is failing?

2009-01-13 Thread Chris Olsen
Frederick Cheung wrote: On Jan 13, 4:15�am, Chris Olsen rails-mailing-l...@andreas-s.net wrote: Here is the form. - form_tag /admin/users/password �do � %fieldset � � = form_field(Password, :tip = required) { password_field :password, nil, :size = 15 } � � = form_field(Password

[Rails] Can anyone see why the pw validation is failing?

2009-01-12 Thread Chris Olsen
I have a simple form to allow the user to update their password. It always throws the error saying that the password is too short (they are over the min of 6 chars). The passwords are making it in to the model just fine. If I raise an exception within the before_validation user method the

[Rails] Re: Can anyone see why the pw validation is failing?

2009-01-12 Thread Chris Olsen
Here is the form. - form_tag /admin/users/password do %fieldset = form_field(Password, :tip = required) { password_field :password, nil, :size = 15 } = form_field(Password Confirmation, :tip = required) { password_field :password_confirmation, nil, :size = 15 } .buttons =

[Rails] js request / rendering issues

2009-01-10 Thread Chris Olsen
Two issues: 1. Why does rails have a hard time detecting js calls? If I make a jquery ajax request to foo/bar it fails, but if I append a js extension it passes = foo/bar.js. It seems that ror ignores the request headers and only looks at the extension. Am I missing something? 2. I am adding

[Rails] Simple relations are failing

2009-01-02 Thread Chris Olsen
Can anyone see why the league_organizers relation is failing. class League ActiveRecord::Base has_many :league_admins has_many :league_organizers, :through = :league_admins, :class_name = User class LeagueAdmin ActiveRecord::Base belongs_to :league belongs_to :user I am getting the

[Rails] Can't get RedCloth to work properly with markitup

2008-12-19 Thread Chris Olsen
For some reason RedCloth isn't parsing things up properly. For some reason it doesn't end the header tags on line breaks. I am using RedCloth 3.0.4 and markitup is set to insert \n\n when enter is clicked. Is there something that I am missing? Thanks. -- Posted via