Re: [Rails] I got error xmlrpc-0.3.0 requires ruby version >= 2.3

2017-05-05 Thread Simon Fisher
Indeed, specifying the Ruby version in the gemfile worked. Thanks all for your help. On Tuesday, 2 May 2017 10:57:55 UTC+8, Edsil Basadre wrote: > > Hi Simon, have you tried specifying Ruby version on your Gemfile? > > e.g > > source "https://rubygems.org"; > r

Re: [Rails] I got error xmlrpc-0.3.0 requires ruby version >= 2.3

2017-05-01 Thread Simon Fisher
Frederick is correct, it is a dependency. > > On Tue, May 2, 2017 at 12:47 AM, Frederick Cheung > wrote: > >> On Monday, May 1, 2017 at 5:42:22 PM UTC+1, Simon Fisher wrote: >> > Hi Edsil, I have the same issue as Edsil and it is because of the Ruby >> versio

Re: [Rails] I got error xmlrpc-0.3.0 requires ruby version >= 2.3

2017-05-01 Thread Simon Fisher
Hi Edsil, I have the same issue as Edsil and it is because of the Ruby version running on Heroku. Curious thing is that xmlrpc-0.3.0 is not a gem in my gemfile (pasted below) so I'm not sure how to downgrade the gem and I can't upgrade the version of Ruby on Heroku (to my knowledge). Any ideas?

Re: [Rails] Need few developers who want to get interesting online learning for free

2016-08-25 Thread Zheng Simon
I have signed up, and have enough time for your lessons and tasks. thanks your invertation 2016-08-17 18:56 GMT+08:00 Mikhail Khomutetskiy : > Hi! > I'm looking for 10-15 RoR developers who wants to become first users of my > educational service http://procoder.io for free. This is limited offer,

Re: [Rails] Rails isn't running on Windows

2015-10-15 Thread Simon Macneall
What's your actual deployment environment? We deploy to linux, so do all our development in linux VMs. Host computer can then be either mac or windows (or linux) and you can still do your development on the correct version of everything else. Cheers Simon On Fri, 16 Oct 2015 08:

[Rails] LOOP ARRAY OF HASHES

2015-06-16 Thread Simon Eric
Please how can i loop this to have all values of _id, contact, sent, answer, repondant? { "result" : [ { "_id" : null, "contact" : 45684, "sent" : 0, "answer" : 0, "repondant" : 0 }, { "_id" : "vms"

[Rails] NET/HTTP GET VALUE

2015-03-07 Thread Simon Eric
I have two app in rails that communicate between net/http: In the first app controller is something like so: class WebservicesController < ApplicationController require 'net/http' require "uri" layout 'admin' def ws uri = URI("http://localhost:3001/api/ws";

[Rails] Keep data on the field after submit a form with error

2015-02-07 Thread Simon Eric
After validation, I got error and return back to :action => :new. Some field on form already filled, so I want to keep them filled after error message too. How it can be done in rubyonrails4? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to th

[Rails] Re: SPECIALS RELATIONSHIP!?

2014-05-30 Thread Simon Eric
I resolved that problem. I done somethig like so to update each column: def update_multiple @postis = Posti.find(params[:posti_ids]) @postis.each do |posti| posti.update_column(:stato, params[:posti]) end redirect_to prenotazione_path(params[:spectacle_id]) end <%= fo

[Rails] Re: Re: Re: SPECIALS RELATIONSHIP!?

2014-05-28 Thread Simon Eric
@postis is an string. Now i see where i the problem. I fix them like so: def posti_multiple @postis = Posti.find(params[:posti_ids]) a=Posti.find_by(numero: params[:posti_ids]) a.update_column(:stato, "checked") end When i have for example posti_ids[" any number"], one seat disa

[Rails] Re: Re: SPECIALS RELATIONSHIP!?

2014-05-28 Thread Simon Eric
Please i try this: @postis.update_column(stato: "checked") but i have error like so: undefined method `update_column' for # -- 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 unsubscribe from th

[Rails] Re: SPECIALS RELATIONSHIP!?

2014-05-28 Thread Simon Eric
Colin i try what you tell me. It work find. Thank very much. The next step is that: if an user choice the seat on the hall, it must not be appear againt on the view. I have some view like this: <%= form_tag( riepilogo_path, method: "post", id: "sel") do %> <%= hidden_field_tag "sala", params

[Rails] Re: SPECIALS RELATIONSHIP!?

2014-05-28 Thread Simon Eric
Thank you very much Colin. I will try that :) -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk

[Rails] Re: SPECIALS RELATIONSHIP!?

2014-05-28 Thread Simon Eric
Thank you very much Jesse! -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@google

[Rails] SPECIALS RELATIONSHIP!?

2014-05-28 Thread Simon Eric
i want to associate one model with 4 models. For example i call a first model Spectacle and call others Hall1, Hall2, Hall3 and Hall4. All of Halls have the same attributes: id and seat. Each Hall have 10 seats. I want to create an spectacle on the database and associate it with any Hall. Proble

[Rails] JOBS: Looking for Ruby on Rails Developers

2014-01-30 Thread simon . aikon
Hello, Hope you are doing well, We are looking for 10 ruby on rails Developers . Let me know if you have any consultants available. *Sr. Lead Ruby and Rail Developer* *Location: San Francisco, CA* *Duration: Long Term* *Skills:* *- Ruby on Rails, LDAP* *- Postgre SQL* *- NoSQL Database l

[Rails] New blog post on making ruby app deployments smooth!

2013-08-13 Thread Jeunee Simon
Hey everyone! Check out this post by Lookout engineer R. Tyler C

Re: [Rails] What would be a good hosting plan for hosting several Rails projects?

2013-07-25 Thread Simon Macneall
ou go. I find the VPS is good because we have complete control over what is installed - however other people might think that's a drawback as you have to administer the server yourself too. Simon On Fri, 26 Jul 2013 14:01:50 +1000, Jordon Bedwell wrote: On Thu, Jul 25, 2013 at 10:58

Re: [Rails] rails and vpn

2013-07-21 Thread Simon Macneall
Hi, I'd assume that the vpn has a specific IP address? I'd just check for that address in the request and if it's not from that address, send it to an error/instruction page. Simon On Mon, 22 Jul 2013 06:03:21 +0800, oto iashvili wrote: Hi, I have a page on my rai

Re: [Rails] Re: Reducing downtime

2013-07-04 Thread Simon Riggs
ies would welcome your contributions via bug reports and/or documentation improvements. Thanks very much. -- Simon Riggs http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- You received this message because you are subscribed to the Google

Re: [Rails] Re: Reducing downtime

2013-07-04 Thread Simon Riggs
differs for everybody. In general the open source ecosystem does have a place for companies that specialise in building, maintaining and supporting system software to assist in cases like this. -- Simon Riggs http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Suppor

Re: [Rails] rubyXL error - uninitialized constant RubyXL (NameError)

2013-06-29 Thread Simon Macneall
don't you need to require rubygems as well when running from a script? On Sun, 30 Jun 2013 11:30:21 +0800, Muthu Selvan wrote: *sudo gem install rubyXL* -> *EMPTY RESULT * * * *So installed rubyXL with the below command ...* * * Fetching: rubyXL-1.2.10.gem (100%) Successfully instal

Re: [Rails] Best library for reading/wriiting excel in ruby

2013-06-15 Thread Simon Macneall
yes, it's pure ruby - we are using it on linux On Sun, 16 Jun 2013 11:08:17 +0800, Muthu Selvan wrote: Thanks simon , I am planning to use in mac environment , will it work ..? kindly share if you have good link for start using this .? Thanks in advance , Muthu Selvan SR On Saturda

Re: [Rails] Best library for reading/wriiting excel in ruby

2013-06-15 Thread Simon Macneall
Hi Muthu, We are using RubyXL. It has some limitations but works in general. Cheers Simon On Sun, 16 Jun 2013 10:04:20 +0800, Muthu Selvan wrote: Hi All , I am new for ruby programming and using ruby for automation work . Planned to implement READ / WRITE excel function in ruby

Re: [Rails] Dynamically create databases?

2013-04-04 Thread Simon Macneall
switching databases to the correct one for that customer once they log into the system. One thing to consider is that shared data needs to go somewhere (sessions, username/passwords etc) as well. Cheers Simon On Thu, 04 Apr 2013 16:34:21 +0800, Julian Leviston wrote: Okay... So

Re: [Rails] wss4r

2013-03-22 Thread Simon Macneall
Hi Jeff, Still in exploratory stage, and looked at savon, however, couldn't get it to play nicely with the security model that our client is using. Setting ClientCredentials and all that. Cheers Simon On Fri, 22 Mar 2013 15:20:57 +0800, Jeffrey Jones wrote: If you are still i

[Rails] wss4r

2013-03-21 Thread Simon Macneall
he server/console to find it. All suggestions welcome. Cheers Simon -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr..

Re: [Rails] Highload project on RoR

2013-01-17 Thread Simon Riggs
type of request that is a problem, not the underlying technology. -- Simon Riggs http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" gr

[Rails] Re: Sweeper class doesn't work

2012-12-09 Thread Simon K.
Over two years later .. same problem, same fix, thanks!! But I would also like an answer to the original question .. because i also don't understand why it only works in the AppController -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the G

Re: [Rails] wickedpdf

2012-09-11 Thread Simon Macneall
Have you set the exe path in the initializer? You need to tell wickedpdf where the wkhtmltopdf binary is On Tue, 11 Sep 2012 19:59:51 +0800, keerthi priya wrote: yeah i have installed as a plugin . the code is in vendor folder On Tue, Sep 11, 2012 at 5:24 PM, Jim Ruther Nill wrote:

[Rails] Re: MySQL Installation Issues

2012-08-29 Thread Simon R.
This is an old thread, but if you google the error message, it appears first in the list of results, so it's worth writing a summary. The root of the problem is that to install the mysql gem you need to compile some native code. ("Native code" is software written in a language such as C or C++

[Rails] Re: I can't install ruby on rails on my mac - Sorry I know it's been posted 1 million times before

2012-06-16 Thread Jessica Simon
Did you try... http://railsinstaller.org/ On Wednesday, June 13, 2012 6:33:10 AM UTC-4, blakeh92 wrote: > > > Hi guys > > I have a macbook pro version 10.7.4. > I'm so keen to start using the ruby programming language and the ruby on > rails framework, > but I cannot download the damn thing !

[Rails] Re: Rails in a Cloud IDE?

2012-03-30 Thread Simon C.
ea of whether this functionality will be built-in in the near future? Cheers! Simon -- 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@g

Re: [Rails] Recovering from a database failure

2012-03-26 Thread Simon Riggs
lopment http://www.postgresql.org/docs/devel/static/high-availability.html > Another resource you probably want to check out out Pacemaker: > <http://www.clusterlabs.org/> And also http://www.repmgr.org/ --  Simon Riggs   http://www.2ndQuadrant.com/  PostgreSQL Devel

Re: [Rails] RoR latest and PostgreSQL 9.1.3

2012-03-03 Thread Simon Riggs
. If there is a reproduceable bug in core Postgres, please show me here so I can resolve it. --  Simon Riggs   http://www.2ndQuadrant.com/  PostgreSQL Development, 24x7 Support, Training & Services -- You received this message because you are subscribed to the Google Group

Re: [Rails] Re: Export data to PDF

2012-02-20 Thread Simon Macneall
Simon. Let me try this approach. But not looks a satisfactory solution to me :) running two servers of same application. -- 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 rubyon

Re: [Rails] Re: Export data to PDF

2012-02-20 Thread Simon Macneall
If you are running wkhtmltopdf in debug mode, you need to run a separate mongrel and point the wkhtmltopdf to that url, otherwise it tries to hit your mongrel instance, which is waiting for wkhtmltopdf to finish running. Cheers Simon On Mon, 20 Feb 2012 18:58:45 +0800, Nitin Mathur wrote

Re: [Rails] Re: Updating the PostgreSQL Admin Cookbook

2012-02-19 Thread Simon Riggs
ly its best practice to use similar environments? Thanks for your other comments. --  Simon Riggs   http://www.2ndQuadrant.com/  PostgreSQL Development, 24x7 Support, Training & Services -- You received this message because you are subscribed to the Google Groups "Ruby o

[Rails] Updating the PostgreSQL Admin Cookbook

2012-02-18 Thread Simon Riggs
tion" of the book? Other ideas? Thanks for your help. --  Simon Riggs   http://www.2ndQuadrant.com/  PostgreSQL Development, 24x7 Support, Training & Services -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk&

[Rails] Re: Forms do not display in browser. What am I doing wrong?

2012-02-06 Thread Simon St.Laurent
ating it. If you have the original book for 2.1, many many things have changed since it was published. Thanks, Simon St.Laurent On Feb 5, 12:17 am, Dennis Fashimpaur wrote: > All, I am a rookie to Ruby on Rails. I just started with a book from > O'Reilly on Friday (Learning Rails). &g

Re: [Rails] WEB SERVICES

2012-01-25 Thread Simon Macneall
We use soap4r for consuming simple web services, Handsoap for slightly more complex services, and for some truly evil IBM web services, we rolled a custom java command line app that we called from rails. Simon On Thu, 26 Jan 2012 07:46:36 +0800, Adrian Caceres wrote: I think to deploy

Re: [Rails] Re: Postgres match with regular expression

2011-11-04 Thread Simon Riggs
able is: Postgres can handle this kind of lookup, though it is more complex than the normal situation. Postgres uses customisable indexes, so you can specify things exactly as you need for specific lookups. https://github.com/dimitri/prefix --  Simon Riggs   http://www.2ndQua

Re: [Rails] Date formats

2011-10-26 Thread Simon Riggs
n. * The PGTZ environment variable is used by libpq clients to send a SET TIME ZONE command to the server upon connection. So you can set this on the client or the server, for the user, explicitly and other ways. --  Simon Riggs   http://www.2ndQuadrant.com/  PostgreSQL Developm

[Rails] Re: redirect_to with params for a nested resource?

2011-08-31 Thread Simon Welker
Thanks so far guys. Will try this. Currently I'm using a very raw string concatenation which just appends the page - and the id. > forum_topic_path(@topic.forum, @topic) + "?page=" + find_topic_page(@post) + > "#post-" + @post.id it is. So well, I'd be glad if I could replace it with the nice and

[Rails] redirect_to with params for a nested resource?

2011-08-29 Thread Simon Welker
ewhere in between. So my question would be: How can I redirect to a nested resource's path and pass a page params variable? -- Thanks in advance! Simon -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, s

Re: [Rails] Database preference?

2011-08-02 Thread Simon Riggs
fully synchronous log based replication. PostgreSQL works well from <100MB to beyond 1TB databases. I need to declare myself here as a PostgreSQL developer, though that means I can provide additional details if required on any questions. --  Simon Riggs   http://www.2ndQuadrant.com

[Rails] Reloading a model in test mode

2011-07-20 Thread Simon
hat happens in development mode by default. Thanks in advance! Simon -- 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 gro

Re: [Rails] PostgreSQL + database.yml - how do I tell it to ignore the fact that other sessions are open in the database?

2011-07-20 Thread Simon Riggs
twice and then blowing itself up, or is there another user there? Switching to using template0 is not the correct solution. --  Simon Riggs   http://www.2ndQuadrant.com/  PostgreSQL Development, 24x7 Support, Training & Services -- You received this message because you

Re: [Rails] Putting data at soap header

2011-06-20 Thread Simon Macneall
Hi, Have a look here - https://www.ruby-forum.com/topic/86107 You need to create your own Header handler and inject the data through that. Cheers Simon On Tue, 21 Jun 2011 05:11:32 +0800, Rander wrote: Hello everybody, I need help! :( I need to communicate through webservice, but I

[Rails] Re: Problem with undefined variable current_user

2011-06-13 Thread Simon Baumgartner
Are you including SessionsHelper in you ApplicationController ? class ApplicationController < ActionController::Base protect_from_forgery include SessionsHelper end Simon On Jun 12, 3:43 pm, Jen wrote: > Hi everyone, > I'm working through the tutorial at the following link

Re: [Rails] Re: Extracting Data From Hash

2011-05-12 Thread Simon Morley | PolkaSpots
my view to this and I now >> can't see the recent tweets but am left with the hash still. Why am I >> finding this so complicated!?! >> > > You removed the wrong equals > > Fred >> <%= @user.twitter_token.timeline.each do |t| %> >> <%

Re: [Rails] Re: Extracting Data From Hash

2011-05-12 Thread Simon Morley | PolkaSpots
llogical... [<#Hashie::Mash created="Thu, 12 May 11 12:53:30 +" display="xxx xxx S. @ Buspace Studio" id=634678877 ..... Shouldn't that output: xxx xxx Thanks again Simon On 12 May 2011, at 13:42, Frederick Cheung wrote: > > > On May 12, 12:29 pm, simon

Re: [Rails] Re: Extracting Data From Hash

2011-05-12 Thread Simon Morley | PolkaSpots
se geo=nil id=65852579048980480 >> id_str="65852579048980480" in_reply_to_screen_name=nil >> in_reply_to_status_id=nil in_reply_to_status_id_str=nil >> in_reply_to_user_id=nil in_reply_to_user_id_str=nil place=nil >> retweet_count=0 retweeted=false source="web" tex

[Rails] Re: Constants and Configurations

2011-05-09 Thread Simon Baumgartner
e a complete overview of all NoSQL solutions but Redis or MongoDB should be a good fit. That said, you will most likely be able to do anything you need with a regular relational DB (as laid out by Colin). It really depends on your overall problem set if it makes sense to add something new into your sy

[Rails] Re: Problem with auto-generated controller and index

2011-03-13 Thread Simon Welker
on't wanna have everything pre-done for me right now, although I think scaffold will get useful for me again. Thank you! :) On 13 Mrz., 11:56, Frederick Cheung wrote: > On Mar 12, 11:25 pm, Simon Welker wrote: > > > Good day, people, > > I installed a fully working Ruby on

[Rails] Problem with auto-generated controller and index

2011-03-13 Thread Simon Welker
e parent directory /stories -- and especially: Why doesn't it do that as _automatically by official Ruby on Rails tools generated_ code? Would look some kinda stupid when every url of my website will have /index at the end. >:s Regards, Simon -- You received this message because you are subscr

[Rails] Re: link_to remote with method POST or DELETE

2011-03-07 Thread Simon Baumgartner
Did you overwrite rails.js when installing jquery-ujs? (see https://github.com/rails/jquery-ujs "Installation") On Mar 6, 5:05 pm, Alberto Santini wrote: > Frederick Cheung wrote in post #985822: > > > Is your page loading the appropriate version of rails.js > > I think so. I'm using the jquery-

[Rails] Re: No re-enter password

2011-03-07 Thread Simon Baumgartner
right way. Hope this helps! Simon On Mar 6, 10:13 pm, Isaac Isccha wrote: > Hi. Currently I'm developing a web application with users and sessions. > > I need avoid the users re-enter the password, something such as clear > the redirect_to(:back) when log in is successful. Seve

[Rails] Re: link_to :method => :delete doesn't?

2011-01-31 Thread Simon Baumgartner
Can you double-check you did everything listed here: https://github.com/rails/jquery-ujs Also, have a look at your HTML source if all js files are included (and in the correct order). Simon On Jan 31, 3:38 am, eka wrote: > Hi, > I am new to rails and was very pleased to find this

[Rails] Re: link_to :method => :delete doesn't?

2011-01-27 Thread Simon Baumgartner
p level. For debugging purposed try using curl: curl "localhost:3000/premises/ 123" -X DELETE Hope this helps! Simon On Jan 27, 2:32 am, Fearless Fool wrote: > Marnen Laibow-Koser wrote in post #977756: > > >> The generated HTML is (for example): > > >&g

[Rails] Re: login session code

2011-01-24 Thread Simon M.
Matt P. wrote in post #977283: > http://railscasts.com/episodes/250-authentication-from-scratch Thank you Matt -- 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

[Rails] login session code

2011-01-24 Thread Simon M.
Hi does anybody know of an example of working user/customer login code for rails models.views controller etc Thanks -- 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, sen

[Rails] Re: Re: Re: Can't get login to work

2011-01-24 Thread Simon M.
okay... In my other view files asscociated with my other controllers the files end in rhtml...ie index.rhtml My files end in html for my user files...i.e index.html Is this a problem? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the

[Rails] Re: Re: Re: Can't get login to work

2011-01-24 Thread Simon M.
Okay, changed code in line will a sample application which i have tested to work and confirmed as working, and the same problem persists... -- 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 po

[Rails] Re: Re: Can't get login to work

2011-01-24 Thread Simon M.
Colin Law wrote in post #977241: > On 24 January 2011 17:27, Simon M. wrote: >> Okay I see a problem >> >> When I hover over the login button in the login page, the url for the >> button is the same page...which is strangebecause i have directed it >> to go t

[Rails] Re: Re: Can't get login to work

2011-01-24 Thread Simon M.
hhhmm.I don't understand why login submit button staying on the same page though? I tried redirecting to a url via the login button but it still stays on the same page , tried directing to another page in the rails application, again nothing...any ideas? -- Posted via http://www.ruby-forum.co

[Rails] Re: Can't get login to work

2011-01-24 Thread Simon M.
Okay I see a problem When I hover over the login button in the login page, the url for the button is the same page...which is strangebecause i have directed it to go to the main page -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the

[Rails] Re: Can't get login to work

2011-01-24 Thread Simon M.
Colin Law wrote in post #977179: > On 24 January 2011 16:25, Simon M. wrote: >> Hi, could anybody help me try to get a login function working, I have >> created a database for users called user1, I have the login screen set >> up but when i hit login with a correct username

[Rails] Can't get login to work

2011-01-24 Thread Simon M.
Hi, could anybody help me try to get a login function working, I have created a database for users called user1, I have the login screen set up but when i hit login with a correct username and password, nothing happens I am expecting the lgin button to direct the user to the main page and show the

[Rails] NoMethodError

2011-01-20 Thread Simon M.
Hi,any ideas how to fix this error, im trying to create a users login.register. which i have called users1. Here is the error message i9n my view.Thanks NoMethodError in User1#index Showing app/views/user1/index.html.erb where line #6 raised: You have a nil object when you didn't expect it! You

[Rails] Re: undefined method `screen_name' for #

2011-01-18 Thread Simon M.
Ratnam Raj varasala wrote in post #975793: > because you are mentioned in controller like this - @user = > User.new(params[:user]) > > On Tue, Jan 18, 2011 at 11:17 PM, Ratnam Raj varasala okay cool thanks, I'll try that two -- Posted via http://www.ruby-forum.com/. -- You received this messa

[Rails] Re: undefined method `screen_name' for #

2011-01-18 Thread Simon M.
Colin Law wrote in post #975776: > On 18 January 2011 16:59, Simon M. wrote: >> Hi >> >> Could anybody help me resolve this error?, i have copy n pasted my >> controler and activerecord below as well.Here is the error medssage >> >> >> NoMethodErro

[Rails] undefined method `screen_name' for #

2011-01-18 Thread Simon M.
Hi Could anybody help me resolve this error?, i have copy n pasted my controler and activerecord below as well.Here is the error medssage NoMethodError in Register_user#index Showing app/views/register_user/index.html.erb where line #4 raised: undefined method `screen_name' for # Extract

[Rails] Re: ruby installed from rvm doesn't work

2011-01-13 Thread Simon Bérubé
I don't have permission to see your problem, but i run Ubuntu 10.10 and i had problems to. http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you I followed that and it work #1 Hope it help On Jan 13, 1:46 pm, sukury47 wrote: > I've installed ruby1.9.2 from rvm > but ruby doesn't work on m

Re: [Rails] Re: How to process hacking attempts?

2011-01-09 Thread Simon Macneall
I wouldn't bother doing that from Rails. That'd be easier to set up either at the firewall or web server level. Would use a lot less resources. Simon On Sun, 09 Jan 2011 19:35:23 +0800, Fritz Trapper wrote: I guess, I simply should send a 404. Since my server needs to be

[Rails] Re: Subselection by URL

2010-12-21 Thread Simon Baumgartner
Have a look at https://github.com/jamesgolick/resource_controller It won't solve all your problems, but some. On Dec 21, 8:32 am, Jo Bu wrote: > Marnen Laibow-Koser wrote in post #969567: > > > You want nested resources.  Read the routing docs. > > Well yes, I could do that, but it would become v

[Rails] Re: model fields

2010-12-18 Thread Simon Grant
Thanks to all who responded to my query. Pleasantly surprised as a newbie at the active and passionate rails community. -- 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, se

[Rails] Re: model fields

2010-12-17 Thread Simon Grant
database, will not all the 100 field values of the model be updated? or just the ones changed. Seems to be very inefficient. I only want to read and write the values of the form that I need. Marnen Laibow-Koser wrote in post #969070: > Simon Grant wrote in post #968977: >> I have a datab

[Rails] Re: model fields

2010-12-17 Thread Simon Grant
yurokle wrote in post #969023: > Why do you want to do it? > You don't want to give possibility to update some fiends to some > users? > Or you have some fields with a lot of data(BLOB) ? I basically want to maximize efficiency. I don't see why I would be reading and writing additionaly database

[Rails] model fields

2010-12-16 Thread Simon Grant
I have a database table with over 100 fields, however I want my model to include only a few fields so that every time I do a query/update, it will only do so for those fields. Is there a way to specify in a model to only use selected fields from a table and ignore the rest? Thankyou. -- Posted

[Rails] Re: Build associated model confusion

2010-12-15 Thread Simon Baumgartner
able column use attr_accessor :foo_bar Also, for all geocoding needs I would use http://geokit.rubyforge.org/ class Location < AR has_many :dives before_validation :geocode # or before_save/before_create, your call def geocode # call geokit to do the geocoding end end Hope this help

[Rails] Re: best way to sync with external database

2010-12-10 Thread Simon Baumgartner
If your app doesn't really have to do anything with the data (validate, transform, etc) then I'd try to solve this on the db level. MySQL replication comes to mind though I'm not sure how that will work with db views. Keep us posted on how it goes! Cheers, Simon On Dec 10,

[Rails] Re: JSON Builder for Rails?

2010-12-01 Thread Simon Baumgartner
it's not exactly like rxml but should do the job: https://github.com/inem/tequila -- 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-t...@googlegrou

[Rails] Re: how to 'delete' an object from an association collection in-memory only

2010-12-01 Thread Simon
. comment = @post.comments.build @post.comments.delete(comment) or @post.comments.build @post.comments.delete(@post.comments.last) Hope this helps! Simon On Nov 30, 9:13 pm, Lille wrote: > Hi, > > My Rails app offers opportunities to try out models on a 'what-if' > bas

[Rails] Re: Update_all without callbacks

2010-09-15 Thread Simon
>From the API docs for update_all : "It does not instantiate the involved models and it does NOT trigger Active Record callbacks" Hope this helps! Simon On Sep 15, 9:08 am, Pål Bergström wrote: > How do I stop callbacks when using Model.update_all? Or stop it for &

[Rails] Re: where to get the plugin "acts_as_attachment"

2010-09-15 Thread Simon
Have you installed ImageMagick on your machine? On Sep 15, 7:11 am, Edwin Chen wrote: > Simon wrote: > > attachment_fu is the successor of acts_as_attachment. > >http://github.com/technoweenie/attachment_fu > > > You should also have a look at paperclip. > &g

[Rails] Re: undefined method `to_sym' for nil:NilClass

2010-09-15 Thread Simon
ember this correctly multiple nested objects have to be in an array in the params like: "pages_attributes" => [ {"body"=>"blabla", "subject"=>"blabla"}, {"body" => "blublu", "subject"=>"blublu"

[Rails] Re: where to get the plugin "acts_as_attachment"

2010-09-14 Thread Simon Baumgartner
I think you meant acts_as_authenticated. On Sep 14, 9:46 am, Gcompany wrote: > This plugin is now renamed as Restful authentication, available > athttp://github.com/technoweenie/restful-authentication > > On Sep 14, 12:20 pm, Edwin Chen wrote: > > > > > I tried to get "acts_as_attachment". All

[Rails] Re: where to get the plugin "acts_as_attachment"

2010-09-14 Thread Simon
attachment_fu is the successor of acts_as_attachment. http://github.com/technoweenie/attachment_fu You should also have a look at paperclip. http://github.com/thoughtbot/paperclip On Sep 14, 9:20 am, Edwin Chen wrote: > I tried to get "acts_as_attachment". All I get from the website is the > li

Re: [Rails] Re: Whats a good way to avoid nil lookup errors

2010-09-05 Thread Simon Macneall
What about @user = User.find(:first, :conditions => {:id => 1}) if (@user) blah, blah, blah end It's longer to type, but returns nil if the user doesn't exist. On Sun, 05 Sep 2010 21:21:25 +0800, Michael Pavling wrote: @user = User.find(1) if User.exists?(1) I don't like doing two look

[Rails] Help Please

2010-07-29 Thread Simon D
Hello, One of my friends paid a fair share of money for a website and the company that developed his site just left him and told him they would no longer host his site because he didn't want to pay $150/mo for hosting. I have never worked with Ruby before, but manage to transfer his website to Ho

[Rails] rails and HTML 5 offline application cache

2010-06-14 Thread Simon
t and css files I would like to be able to cache (along with some views), but am unsure how to get these properly routed. I'm wondering if anybody else has tackled this issue, or if anybody has some ideas for how to handle it. Thanks, Simon -- You received this message because you are subs

[Rails] Re: No default .htaccess

2010-05-22 Thread Simon Che
Frederick Cheung wrote: > On May 21, 2:52�pm, Simon Che wrote: >> >> � >> � � �AllowOverride All >> � � �Options -MultiViews >> � >> >> > Are you sure there's not some other stuff (eg some rewrite rules) that > be being used - I don&#x

[Rails] Re: No default .htaccess

2010-05-21 Thread Simon Che
Frederick Cheung wrote: > On May 21, 2:49�am, Simon Che wrote: >> Hey all! >> >> I just created my first RoR project (following this >> guidehttp://wiki.rubyonrails.org/start), and I had some trouble getting >> everything to work under apache with passenger. Afte

[Rails] No default .htaccess

2010-05-20 Thread Simon Che
Hey all! I just created my first RoR project (following this guide http://wiki.rubyonrails.org/start), and I had some trouble getting everything to work under apache with passenger. After some debugging I found out I simply didn't had any .htaccess in my public/ folder. People around the interwebz

[Rails] Re: SQLServer on Rails

2010-05-18 Thread Simon Krollpfeifer
Clark Snowdall wrote: > It seems my message got cut off. What I wanted to include was the error > log from when I accessed http://localhost:3000/Contacts > > Here it is: > > /!\ FAILSAFE /!\ Mon May 10 09:32:43 -0700 2010 > Status: 500 Internal Server Error > S1090 (0) [Microsoft][ODBC Dri

Re: [Rails] Re: Can't seem to install RMAGICK on Ubuntu Karmic Koala

2010-04-29 Thread Simon Macneall
then I am out of ideas, sorry :) On Fri, 30 Apr 2010 08:17:16 +0800, ct9a wrote: hi, Simon, 1. when I checked mkmf.log, there were no errors but a bunch of "yes" 2. don't know why but i cannot find the mkmf.log file now -- You received this message because you are subscribe

Re: [Rails] Can't seem to install RMAGICK on Ubuntu Karmic Koala

2010-04-29 Thread Simon Macneall
build-essentials. Also, once you get the exact error message from the log file, you can usually google that to get a more specific idea of how to resolve the problem. Cheers Simon On Fri, 30 Apr 2010 08:08:20 +0800, ct9a wrote: hi guys, I have been trying to install Rmagick on ubuntu karmic

Re: [Rails] Re: Cut first x pages from a PDF file

2010-04-25 Thread Simon Macneall
I don't think that you can explicitly do that with pdftk, but you can do 'burst' to break the pdf out into lots of single page documents, and then 'cat' to combine the pages that you want in the final document. Simon On Sun, 25 Apr 2010 21:46:23 +0800, jhaagmans

[Rails] Rails on DB2

2010-04-21 Thread Simon Macneall
Hi, We have a potential requirement to convert our existing rails app to run on DB2. I've had a bit of a look around and there is a DB2 active record gem. Does anyone have any experience with this? Is it a robust solution (if not, I can push back at the powers that be)? Thanks

  1   2   3   >