[Rails] Re: Will Paginate
On Mar 28, 5:44 am, Jeffrey Bonson wrote: > My problem is the div is not getting updated, like the way, a > link_to_remote would have worked. I am able to see all the div commands > and the expected data in a simple white screen after the second > pagination click. Am i missing a simple coding here? > Please help !!! will_paginate doesn't generate ajax links by default. You can write a custom link renderer that does however (I think there are a few examples floating around of how to do this) Fred > > -- > Posted viahttp://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 rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
[Rails] WebApps Conference: Meet Web Application Experts from Sapient, Adobe,Wipro and others!(April 9th,2011) @ Delhi.
Hi , SiliconIndia is organizing "WebApps 2011" in Delhi on April 9th, 2011. Drawing well-renowned thought-leaders, contributors, influencer's, and organizations in the Web Development space, the conference offers insight to develop industry-leading Web Development projects. The conference brings together web developers, web designers technology enthusiasts, innovators, vendors, and users to experience the future of Web Applications. Web-based applications are revolutionizing both the features that can be delivered and the technologies for developing and deploying applications. They also involve a diverse collection of issues and technologies.We have lined up some of the best speakers and the sessions & networking will be of the highest order.Get hands-on technical training and gain new skills. "WebApps 2011 guarantees perfect networking and exciting learning success in workshops, sessions, discussion panels & fascinating keynotes". TOPICS: • An optimum approach to n-tier architectured application testing • Lessons learned in developing Web applications • Powerful Tools that You Need (and probably don't know about) • Guidelines and best practices: Architecture of web applications • eCommerce web app Architecture and Scalability • Developing secure and high performance web applications • Situation Normal, Everything Must Change • Performance Engineering for WebApps Confirmed Speakers: Ajey Gore, Head of Technology, Thought Works Uday M Shankar, Principal Engineer, Yahoo Ganesh Sahai, Quality Manager & Quality Leader , Adobe Vivek Merani, Senior Vice President , Magnon International Deepak Arora, Director Technology, Sapient Nitro Prashant Gautam, Project Lead-Performance Engineering Practice, Wipro Technologies Tarun Dua, CTO, E2E Networks Nishit Shrivastava, Technical Architect, Sify Who should attend: Web Application Developers, Application Managers, Web Architects, Web and Graphic Designers, Web Development Managers, Web Strategists, Web Technologists, Business Strategists, E-commerce Managers, Product Managers, Technologists and Entrepreneurs and Others DATE: April 9th, 2011(Saturday) TIME: 8.30 AM to 6:00 PM VENUE: PHD Chamber of Commerce & Industry PHD House, 4/2 Siri Institutional Area, August Kranti Marg, New Delhi - 110016 We have limited Seats. Registration for this game-changing Symposium is by invitation only. Attendance is limited to maintain an intimate setting and foster dialogue among all participants. REGISTER @ : http://bit.ly/WebApDelhigoogle LOOKING FORWARD TO HEAR FROM YOU. And also you can NOMINATE your colleagues and friends who ever is interested in attending this event. There will be a registration fee of Rs 500/- only. This is towards: Access to Sessions, Tea/ Coffee & Refreshments and Lunch. Here's your chance to meet tech leaders and get expert instruction and hands-on tutorials to create the best web applications, tools, and software. Thanks SiliconIndia -- 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. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
[Rails] error compiling ruby 1.9.2-p180 while upgrading to Rails 3
gcc -shared -o ../../../.ext/i686-linux/digest/md5.so md5init.o md5.o - L. -L../../.. -L/home/rails3/.rvm/usr,/lib -Wl,-R/home/rails3/.rvm/ usr,/lib -L. -rdynamic -Wl,-export-dynamic -Wl,-R -Wl,/home/ rails3/.rvm/rubies/ruby-1.9.2-p180/lib -L/home/rails3/.rvm/rubies/ ruby-1.9.2-p180/lib -lruby -lpthread -lrt -ldl -lcrypt -lm -lc /usr/bin/ld: /lib: No such file: File format not recognized collect2: ld returned 1 exit status make[1]: *** [../../../.ext/i686-linux/digest/md5.so] Error 1 make[1]: Leaving directory `/home/rails3/.rvm/src/ruby-1.9.2-p180/ext/digest/md5' looks to my inexperienced eye that each -L takes only one directory, and -L/home/rails3/.rvm/usr,/lib is breaking things.. no idea how to fix, though ruby compiled fine without links to openssl and iconv. This was posted as a way to remove an 'No such file to load - openssl' error when trying to run my rails app under rails 3.0.5. the command that started all this was: rvm install 1.9.2 -C --with-openssl-dir=$HOME/.rvm.usr --with-iconv- dir=$HOME/.rvm.usr Thanks for any help Bob -- 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. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
[Rails] Will Paginate
Hi, I installed the will_paginate plugin and i used the coding below: #controller def show_tags @tags = Tag.find(:all,:conditions => ['name LIKE ?', '%A']).paginate(:per_page=>10, :page=>params[:page]) end View show_tag <%= render :partial => 'tags/registry_tags' %> <%=will_paginate @tags ,:params => { :controller => 'tags', :action => 'update_tags'}%> view tags/registry_tags <%@tags.each do|tag|%> <%= tag.name%> <%end%> When i click on the will paginates, "Prev-next-1,2,...", it goes to the the controller side def update_tags render :update do |page| page.replace_html "reg_data",:partial=>"tags/registry_tags" end end My problem is the div is not getting updated, like the way, a link_to_remote would have worked. I am able to see all the div commands and the expected data in a simple white screen after the second pagination click. Am i missing a simple coding here? Please 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. 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. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Re: [Rails] RoR with integrated windows authentication
ntlm is used only for workgroups, domains use ldap to access the DS, devise has a plugin for ldap. https://github.com/cschiewek/devise_ldap_authenticatable -- 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. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
[Rails] RoR with integrated windows authentication
Hi All, I'm taking on a re-write project for a ticketing system solution and my company uses ASP.net with IIS. I want to build the new ticketing system with Rails as I believe it to be a much cleaner long term solution, and add to that I don't care for ASP and how it handles sessions. I've searched long and hard and a lot of posts and information out there are pretty out dated in terms of NTLM or (integrated windows authentication) as it's now called working with Rails. I will not be using IIS thankfully and would rather go an Apache route with a mod to handle initial authentication through windows active directory. We use IE8 and it should pass through perfectly. But, I need to know what I'm getting into and would like to look over as many resources as possible before I fully commit to this project. So, with that said, what resources am I going to need to work on this? I'm fully familiar with Ruby 1.8.7, 1.9.1, and 1.9.2 and Rails version 2.x and 3.x, including rails 3.1. I normally use apache + passenger + rails when going to production on a linux server. How would you approach this and what pieces would you opt for, given this scenario? And, any updated links on where to go with this? Thanks for your time. -- 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 rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
[Rails] Re: understanding the to_json method
Stewart wrote in post #989366: > Hello, > > I am using the to_json method to encode models to json. Standard > stuff. I am using the :include option so that a relation model gets > added to the encoded json. Again this is fine however the related > model is a user model that has things like md5 password strings. Whats > the best way of excluding these fields form the encoding. Here is the > current line of code that calls the to_json method > > format.js { render :json => @shifts.to_json(:include => [ :users ]) } I believe you want: @shifts.to_json(:include => { :users => { :except =>[ 'password'] }}) -- 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 rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
[Rails] Re: using a paginate method to display the second group of 25 records on page 2
On Mar 25, 4:33 pm, John Merlino wrote: > Here's the method: > > def paginate(resources) > @all_resources = resources > @limit = (params[:limit] && params[:limit].to_i) || 25 > @page = (params[:page] && params[:page].to_i) || 1 > @page_index = @page - 1 > @offset = @page_index * @limit > @num_pages = if @limit == 0 > 1 > elsif @all_resources.size == 0 > 1 > else > ((@all_resources.size - 1) / @limit).to_i + 1 > end > @last_page = @num_pages > @limit == 0 ? @all_resources : @all_resources.slice(@offset, @limit) > end BTW, if you found this in production code, I'd highly recommend KILLING IT WITH FIRE and using something like will_paginate if at all possible - this is the quite-ancient original pagination code included with Rails (stripped out to the classic_pagination plugin in 1.2.4!) and is immensely inefficient. The Rails version of your code really doesn't matter; I just got will_paginate up and running on an old 1.2.3 app without any major issues. --Matt Jones -- 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. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
[Rails] Re: upgrading from Rails 2.1.0 to 3.0 the "right way" makes my head hurt
On Mar 25, 2:00 pm, "sol.manager" wrote: > When I change the Rails gem version from 2.2.2 to 2.3.4 and restart > the site, I get: > Error message: > undefined local variable or method `version_requirements' for > # > Exception class: > NameError > > I did some investigating and realized that on my system I cannot > generate a new app in 2.3.4, 2.3.5 or 2.3.8, but I can in 2.2.2, > 2.3.11 and of course 3.0.x. From my limited understanding there is a > conflict with the version of rubygems for these. I did an experiment > and jumped from 2.2.2 to 2.3.11 and this error disappears (to be > replaced with a different one). This is why I am trying to see what > versions I can skip over. > Yep, Rubygems deprecated the version_requirements method a while back and then dropped it in the last month or so. I'd recommend you skip the versions that don't work, or figure out how to get a <1.6 version of Rubygems running (not recommended). --Matt Jones -- 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. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
[Rails] replacement for functionality from acts_as_textiled
Our app is on Rails 2.1.0 and has a couple of fields used for job descriptions. These fields use textile codes for bold, italic, underline, etc... From what I understand this is provided by RedCloth and acts_as_textiled. I have been investigating and find acts_as_textiled (https://github.com/defunkt/acts_as_textiled) is no longer maintained, and although forked into another gem (https:// github.com/dasil003/acts_as_sanitiled) the developer no longer sanctions the use of either. Here is a section of code for a textiled box on our site. Post details <%= textile_editor :job_post, :details, :class=>'text_field' %> The model for the job_post.rb has the following line also: acts_as_textiled :details So, what gem or method can I use in Rails 3.0.x to have bolding, italic, etc... markup in this field. I hope my question makes sense. -- 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. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Re: [Rails] undefined method `start_form_tag'
Sent from my iPhone On Mar 27, 2011, at 9:15 AM, amritpal pathak wrote: > I tried to generate the form using > <%= start_form_tag :action => 'create' %> in > app/view/book/new.rhtml > and when i browse to localhost:3000/book/new i got the > following error > > undefined method `start_form_tag' for # > Start_form_tag and end_form_tag were deprecated in Rails 2.0. Use Rails 3 documentation to see the proper use of form_tag. B. -- 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. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Re: [Rails] undefined method `start_form_tag'
On 27 March 2011 16:15, Bryan Crossland wrote: > Sent from my iPhone > On Mar 27, 2011, at 9:15 AM, amritpal pathak > wrote: > > I tried to generate the form using > <%= start_form_tag :action => 'create' %> in > app/view/book/new.rhtml > and when i browse to localhost:3000/book/new i got the > following error > undefined method `start_form_tag' for # > > Start_form_tag and end_form_tag were deprecated in Rails 2.0. Use Rails 3 > documentation to see the proper use of form_tag. In addition if you are using an ancient tutorial then stop and find an up to date one that uses Rails 3. The free online one at railstutorial.org is not bad. Colin -- 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. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
[Rails] Re: Why is Rails eager loading most of my database?
Hi Fred, in Rails 3 I found validates_associated to be the most streamlined approach for such a normalized model. http://guides.rubyonrails.org/active_record_validations_callbacks.html#validates_associated Thanks again! -- 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 rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
[Rails] Re: How to deserialize an array from XML
On Mar 26, 1:24 pm, Gustavo de Sá Carvalho Honorato wrote: > Hi, > > to serialize an array to xml we can use: > > an_array = [ 1, 2, 3] > an_array.to_xml > > But to I can't find a way to convert back XML to array. I didn't find a > method Array.from_xml like Hash.from_xml. > > Any ideas? I have never done what you are trying but I know there is a way of converting a hash to an array (http://ruby-doc.org/core/classes/ Hash.html#M000722) so you could do a double conversion. If you need a simple array then you could just flatten the resulting array of arrays. -- 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. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
[Rails] undefined method `start_form_tag'
I tried to generate the form using <%= start_form_tag :action => 'create' %> in app/view/book/new.rhtml and when i browse to localhost:3000/book/new i got the following error undefined method `start_form_tag' for # Please help me to solve this Thanks -- 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. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
[Rails] Re: Rails 3 + SSL
using https is very simple. unless you are offering accounts based on subdomains, like sean.yoursite.com, jiblethead.yoursite.com etc. then you are going to need a wildcard subdomain to handle each domain with the same certificate. it's just as simple to setup but is a little more expensive. but you still shouldn't have to think about changing your routes to use https in either case. check out this post i wrote http://seanbehan.com/linux/rails-ssl-ubuntu-apache2-w-phussion-on-ubunt/ about how to install an ssl certificate. essentially, you need to create two virtual hosts (apache) and have them both go to the same application. https is over port 443 while http is over port 80. as far as your application is concerned, for rails 3 you can use http://railsplugins.org/plugins/479-bartt-ssl-requirement . essentially, all it does is redirect to a page w/ https:// when it detects the protocol is http:// and the controller#action has been set to use ssl. the ssl_required means that you pages will only be served over https (will be redirected to the same url but with https instead of http) and ssl_allowed means that both protocols will server traffic. class ApplicationController < ActionController::Base include ::SslRequirement end class AccountController < ApplicationController ssl_required :signup, :payment ssl_allowed :index def signup # Non-SSL access will be redirected to SSL end def payment # Non-SSL access will be redirected to SSL end def index # This action will work either with or without SSL end def other # SSL access will be redirected to non-SSL end end More at the docs http://rubydoc.info/gems/bartt-ssl_requirement/1.2.5/frames On Mar 26, 11:57 am, jiblethead wrote: > After reading tons of posts about buying certs, etc, I'm still > confused. Please point me in the right direction. Here's the > question: > > I have a rails3 site (www.mysite.com). I want to have some pages use > ssl, and some not. It appears the require_ssl approach is pre-Rails3 > and there are other alternatives. Most of the posts I read talk about > using a diff domain for ssl (secure.mysite.com). Doing that means I > have to flip domains and seems to get in the way of *_path niceties of > routes in rails3. > > I realize I'm probably making this harder than it needs to be, but > it's my first ssl implementation. > > thanks for the replies 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 rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
[Rails] Testing child model's create action
Hi all, I have a model (stable) with many children (horses). I have created my routes so that you access horses via stables, but this is causing issues with trying to test my horses_controller create action. Routes: resources :users resources :sessions, :only => [:new, :create, :destroy] resources :stables, :only => [:new, :create, :show] do resources :horses end resources :horses, :only => [:show] root :to => 'pages#home' Horses controller: def create @horse = Stable.find_by_id(params[:stable_id]).horses.build(params[:horse]) if @horse.save flash[:success] = 'Horse created!' redirect_to horse_path(@horse) else @breeds = Breed.all @genders = [["Gelding", "G"], ["Mare", "M"], ["Stallion", "S"] ] @title = 'Create A Horse' render :new end end Stables controller spec: describe "POST horses 'create'" do before(:each) do @user = Factory(:user) @stable = Factory(:stable, :user => @user) end describe "as a signed-in user" do before(:each) do test_sign_in(@user) end describe "failure" do before(:each) do @attr = { :name => '', :gender => '', :owner => @stable, :breed_id => '' } end it "should not create a stable" do lambda do {:post => 'stable_horses', :horse => @attr, :stable => @stable} end.should_not change(Horse, :count) end # fails, error 1 below it "should render the 'new' page" do {:post => 'stable_horses', :horse => @attr, :stable => @stable}. should render_template('stable/horses') end end describe "success" do before(:each) do @breed = Breed.new(:name => 'Thoroughbred') @attr = { :name => 'Bob', :gender => 'G', :owner => @stable, :breed_id => @breed.id } end # fails, error 2 below it "should create a horse" do lambda do {:post => 'stable_horses', :horse => @attr, :stable_id => @stable} end.should change(Horse, :count).by(1) end # fails, error 3 below it "should redirect to the horse page" do {:post => 'stable_horses', :horse => @attr, :stable_id => @stable} response.should redirect_to(horse_path(assigns(:horse))) end # fails, error 4 below it "should have a flash message" do {:post => 'stable_horses', :horse => @attr, :stable_id => @stable} flash[:success].should =~ /horse created/i end end end end Errors when tests are run: 1) StablesController POST horses 'create' as a signed-in user failure should render the 'new' page Failure/Error: {:post => 'stable_horses', :horse => @attr, :stable => @stable}. expecting <"stable/horses"> but rendering with <"">. Expected block to return true value. # ./spec/controllers/stables_controller_spec.rb:261:in `block (5 levels) in ' 2) StablesController POST horses 'create' as a signed-in user success should create a horse Failure/Error: lambda do count should have been changed by 1, but was changed by 0 # ./spec/controllers/stables_controller_spec.rb:277:in `block (5 levels) in ' 3) StablesController POST horses 'create' as a signed-in user success should redirect to the horse page Failure/Error: response.should redirect_to(horse_path(assigns(:horse))) ActionController::RoutingError: No route matches {:action=>"show", :controller=>"horses"} # ./spec/controllers/stables_controller_spec.rb:284:in `block (5 levels) in ' 4) StablesController POST horses 'create' as a signed-in user success should have a flash message Failure/Error: flash[:success].should =~ /horse created/i expected: /horse created/i got: nil (using =~) # ./spec/controllers/stables_controller_spec.rb:289:in `block (5 levels) in ' I'm sure I'm missing something pretty basic, but am not sure what it is. Thanks! -- 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. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
[Rails] Re: "Undefined Attribute Method"
Please post your model code On Mar 26, 12:56 pm, Mistral Contrastin wrote: > I couldn't find any other source to solve my problem, so I'm posting > here I have a controller "candidates" > > class CandidatesController < ApplicationController > def new > @candidate = Candidate.new > end > end > > A table model called candidate with lots of validations. > > I create my new.html.erb and whenever I try to open it I get this > error message: > > undefined method `define_attribute_methods' for nil:NilClass > > Extracted source (around line #3): > > 1: Yeni Basvuru > 2: > 3: <% form_for @candidate do |t|%> > 4: > 5: <%= t.label :name,"Isim"%> > 6: <%= t.text_field :name%> > > Please help me out! -- 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. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
[Rails] Re: Kaminari: how page=1-param in link to first page?
I've ended up with monkeypatching: https://gist.github.com/889160 module Kaminari module Helpers class Tag def page_url_for(page) @template.url_for @template.params.merge(@param_name => (page < 1 ? nil : page)) end end end end On Feb 25, 1:54 pm, "T. N. T." wrote: > Kaminari omits the :page-param for the first page. Does anybody know a > way to get this 'fixed'? > > I'm now doing it this way (in _first_page_link.erb): > > <%= link_to page, url + '?page=1', :remote => remote %> > > but this is not really satisfying. > > Thanks, T. > > -- > Posted viahttp://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 rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Re: [Rails] Rails stop responding when I try to use MySQL connection instead of SQLITE3
On 27 March 2011 09:50, amjad1233 wrote: > I am using mysql 5.0 and rails 3.0.3 when I try to connect it to MySql > ( through rake migration) it works fine but it does not like when I > try to fetch data from der... It might help if we had some idea of what problem you are seeing. Post the complete error message and stack trace (if there is one) that you see. If you do not see an error message then explain what happens. Have a look in log/development.log to see if there is a clue there. Also tell us which operating system you are using. > > Will anybody help me for that or let me know how I can change sever > from Webrick to something else ? What makes you think it is a webrick problem? Colin > > -- > 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. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- 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. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Re: [Rails] Re: how to solve ActiveRecord::ConnectionNotEstablished
On 26 March 2011 23:04, Bryan Crossland wrote: > On Fri, Mar 25, 2011 at 10:17 PM, salim mandrekar > wrote: >> >> yes. >> database.yml file is ok.. >> even i can run the rake db:create and rake db:migrate commands with zero >> errors.. >> wat can be the problem? > > What is on line 7 of this file ? > > app/controllers/greetings_controller.rb In fact show us from the start of file to the end of that action, and also the model file (presumably greetings.rb). Strip out irrelevant methods from there if it is big. Colin -- 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. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
[Rails] Rails stop responding when I try to use MySQL connection instead of SQLITE3
I am using mysql 5.0 and rails 3.0.3 when I try to connect it to MySql ( through rake migration) it works fine but it does not like when I try to fetch data from der... Will anybody help me for that or let me know how I can change sever from Webrick to something else ? -- 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. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.