Re: [Rails] Re: Can anyone tell me about my website

2012-11-17 Thread Thota praneeth
submit your site to google crawlers, other directories and follow SEO rules. On Sat, Nov 17, 2012 at 12:16 PM, Fahim Patel pafa...@gmail.com wrote: Follow SEO (Search Engine Optimization) fundamental rules. It will help you. Thanks Best Regards Fahim Babar Patel On Tuesday, November 13,

[Rails] Re: How does rails determine the path from an object?

2012-11-17 Thread Frederick Cheung
On Nov 17, 5:29 am, Jason Waldrip ja...@waldrip.net wrote: I have been working on implementing my own ORM. And I was wondering how the rails path helper extracts the ID from the object. For example how would I make this work for my ORM?     @contact = Contact.first    

[Rails] Problem with record not being saved but no errors

2012-11-17 Thread AppleII717
I tried to implement a simple model_logger table that is polymorphic as logable. Wanted nothing more than a text field (log) that text is appended to. The ModelLog model just has a simple set_log method def set_log(entry) self.log \r\n#{Time.now.to_s} - #{entry} self.save #puts

[Rails] Question about Active Record

2012-11-17 Thread Alexandra E Paredes T
Good Morning, I'm an student of Computer Engineering from Simón Bolívar University, in Caracas Venezuela. I'm working in my thesis about ORM and their respectfulness on databases. In order to have a better understanding of the Ruby on Rails ORM, I'm wondering where do I can read about the

[Rails] application controller uninitialize authentication error

2012-11-17 Thread ravi kumar
i am using rails 3.2.1 and gems authlogic and declarative_authorization .but i have error uninitialized application controller authentication error.just i tried some solutions like add config.autoload_paths #{Rails.root}/lib in application.rb but it is not be working.what can i do --

[Rails] Re: Problem with record not being saved but no errors

2012-11-17 Thread Frederick Cheung
On Nov 16, 12:46 pm, AppleII717 sa...@mac.com wrote: I tried to implement a simple model_logger table that is polymorphic as logable. Wanted nothing more than a text field (log) that text is appended to. The ModelLog model just has a simple set_log method   def set_log(entry)     self.log

[Rails] Re: Question about Active Record

2012-11-17 Thread Frederick Cheung
On Nov 16, 2:05 pm, Alexandra E Paredes T 05-38...@usb.ve wrote: Good Morning, I'm an student of Computer Engineering from Simón Bolívar University, in Caracas Venezuela. I'm working in my thesis about ORM and their respectfulness on databases. In order to have a better understanding of

Re: [Rails] application controller uninitialize authentication error

2012-11-17 Thread Colin Law
On 17 November 2012 04:06, ravi kumar ravi11dec1...@gmail.com wrote: i am using rails 3.2.1 and gems authlogic and declarative_authorization .but i have error uninitialized application controller authentication error.just i tried some solutions like add config.autoload_paths #{Rails.root}/lib

[Rails] Help needed for error in foreign key validation

2012-11-17 Thread rubyrookie
I have two models bank and country. User should only associate a Bank with a country id present in the country table and I put validates presence of country to enforce it but i get error mysql2::Error: Unknown column 'countries.bank_id' in 'where clause': SELECT `countries`.* FROM

[Rails] Re: Help needed for error in foreign key validation

2012-11-17 Thread Frederick Cheung
On Nov 17, 10:19 am, rubyrookie asajn...@gmail.com wrote:  Can you tell me how to fix the issue? If I remove the  validates_presence_of :country I get a database error as expected when i update bank table with a country id not in country table. class Bank ActiveRecord::Base  

[Rails] How to get more debug information in test log ?

2012-11-17 Thread Erwin
Im one of my unit tests, I got an error I cannot even start looking for the issue as few information are logged ... Using the test console , there is no error at all : rails console test Loading test environment (Rails 3.2.9.rc3) site1 = FactoryGirl.create(:cms_site, label: booboo) BEGIN ..

Re: [Rails] Multiple User Types - Michael Hartl's Tutorial

2012-11-17 Thread Erdem Gezer
Hi Colin, Thanks for your reply. Actually I don't want each user to have multiple types. Only 1 type per user is ok for me. I can satisfy that by using polymorphic relations. I have 1 db table for common user attributes(email,name,password) and 2 more tables for the 2 user types(admin,manager)

[Rails] insert the javascript codes of another view returned from ajax to a view page

2012-11-17 Thread ruby rails
Hi, I am doing an jquery ajax call in my rails application and in the controller I am rendering it to a view page(where javascripts codes are written). Then I need to insert the response returned from the server to a DOM element. When I try to alert the server response (alert (data))I am getting

[Rails] Re: Devise question

2012-11-17 Thread Dave Castellano
Thank you ! I also found this which seems to work well... routes.rb: authenticated :user do root :to = 'users#show' end root :to = home#index -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

[Rails] Re: Help needed for error in foreign key validation

2012-11-17 Thread rubyrookie
Thanks worked. On Saturday, November 17, 2012 3:11:33 AM UTC-8, Frederick Cheung wrote: On Nov 17, 10:19 am, rubyrookie asajn...@gmail.com wrote: Can you tell me how to fix the issue? If I remove the validates_presence_of :country I get a database error as expected when i

Re: [Rails] Re: Devise question

2012-11-17 Thread Casey Ellett
On Sat, Nov 17, 2012 at 11:47 AM, Dave Castellano li...@ruby-forum.comwrote: Thank you ! I also found this which seems to work well... routes.rb: authenticated :user do root :to = 'users#show' end root :to = home#index Nice! That I did not know about. Casey -- Posted

[Rails] Re: How can I prevent ENTER from submitting form?

2012-11-17 Thread Albert Català
I don't know my english but my javascript is very newbie, too much newbie ¿ Is not this, the same or similar, that disable the sumbmit button at the begining of onchange event and activate it at the end?...something like: %= f.text_field :amount, onchange=disable_submit(); +

[Rails] tes

2012-11-17 Thread rubyrookie
test -- 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@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. To view this

[Rails] How mix jquery based ui packages and ruby on rails

2012-11-17 Thread rubyrookie
I am trying to use jqx ui that is based on jquqery I have following questions 1. How do I generate the right id and name for the element without setting the element name and id in the format model name [attribute] ? Example %= f.text_field :country_id % generates sets the element id and