[Rails] Re: Re: How to setup the follow/unfollow/block link_to button for Acts_As_Follower Rails 4

2015-07-10 Thread David Williams
tamouse m. wrote in post #1176466: > On Fri, Jul 10, 2015 at 10:03 PM, David Williams > wrote: > >> I'm in need of the AJAX method that allows a person to follow without >> rendering a view. >> > > On the server side, if you really wish to render nothing at all, `render > nothing: true` will do t

Re: [Rails] Re: How to setup the follow/unfollow/block link_to button for Acts_As_Follower Rails 4

2015-07-10 Thread tamouse pontiki
On Fri, Jul 10, 2015 at 10:03 PM, David Williams wrote: > I'm in need of the AJAX method that allows a person to follow without > rendering a view. > Initially you wanted to use a `link_to` to display the link someone would click on to indicate they wanted to follow someone. <%= link_to 'Follow

[Rails] Re: How to setup the follow/unfollow/block link_to button for Acts_As_Follower Rails 4

2015-07-10 Thread David Williams
I'm in need of the AJAX method that allows a person to follow without rendering a view. -- 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

Re: [Rails] How to setup the follow/unfollow/block link_to button for Acts_As_Follower Rails 4

2015-07-10 Thread tamouse pontiki
On Fri, Jul 10, 2015 at 9:06 PM, tamouse pontiki wrote: > > > On Mon, Jul 6, 2015 at 2:09 PM, David Williams > wrote: >> >> Missing template users/follow, application/follow with {:locale=>[:en], >> :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, >> :ruby, :coffee, :slim, :ha

Re: [Rails] How to setup the follow/unfollow/block link_to button for Acts_As_Follower Rails 4

2015-07-10 Thread tamouse pontiki
On Mon, Jul 6, 2015 at 2:09 PM, David Williams wrote: > > Missing template users/follow, application/follow with {:locale=>[:en], > :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, > :ruby, :coffee, :slim, :haml, :jbuilder]}. Searched in: > It cannot find a follow.html.erb temp

Re: [Rails] Re: Migrating a complete Ruby rails app off heroku!!!

2015-07-10 Thread Colin Law
On 10 July 2015 at 20:11, Elizabeth McGurty wrote: > Has this set of messages been hacked? I see my name and messages that I do > not understand? Since you have not posted the offending text it is difficult for us to comment. More likely someone has just got the quoting mixed up, or is that not

Re: [Rails] Rails carrierwave has_many error

2015-07-10 Thread Colin Law
On 10 July 2015 at 17:34, Bazley <1975...@gmail.com> wrote: > Thank you Colin, that fixed it. I appreciate your help. > The solution raises an interesting question, fully specified here on SO if > you're interested: > >> >> >> http://stackoverflow.com/questions/31306347/rails-carrierwave-has-many-e

[Rails] Re: Migrating a complete Ruby rails app off heroku!!!

2015-07-10 Thread Elizabeth McGurty
Has this set of messages been hacked? I see my name and messages that I do not understand? -- 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-t

[Rails] Re: How should I organize this data?

2015-07-10 Thread Elizabeth McGurty
Well I am definitely not a Nokogiri expert, but I think that your first issue may be that you are opening your HTML as XML. I think that doc = Nokogiri::HTML(open(f)) might be better... Then I am a little worried about your iteration structure. doc... get the HTML CSV.open open the csv

Re: [Rails] Rails carrierwave has_many error

2015-07-10 Thread Bazley
Thank you Colin, that fixed it. I appreciate your help. The solution raises an interesting question, fully specified here on SO if you're interested: > > http://stackoverflow.com/questions/31306347/rails-carrierwave-has-many-error/31345762#31345762 > The question is, is a solution possible wi

[Rails] Re: [JOBS] RedHat Israel is Hiring!!! Software Engineer (RoR)- Container Management

2015-07-10 Thread Elizabeth McGurty
I would LOVE to work for Red Hat. Seriously I think one of the first, if not the first, to be courageous in offering open source code, remembering my Cambridge, MA days. Can't relocate though, but if a junior-level telecommute position should become available, please keep my name in mind. T

[Rails] Re: Error in migration - Error: You have an error in your SQL syntax; check the manual that corresponds

2015-07-10 Thread Elizabeth McGurty
No problem... The best thing about this site is the set of fresh eyes > >>> -- 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

[Rails] Re: Error in migration - Error: You have an error in your SQL syntax; check the manual that corresponds

2015-07-10 Thread Dmitriy
now work. thank you пятница, 10 июля 2015 г., 18:05:04 UTC+3 пользователь Dmitriy написал: > > i inserted > > pids = Vote.where(subject_type: 'Photo').pluck(:subject_id).uniq > unless pids.empty? > > but again same error > > > пятница, 10 июля 2015 г., 17:27:12 UTC+3 пользователь Elizabeth Mc

[Rails] Re: Error in migration - Error: You have an error in your SQL syntax; check the manual that corresponds

2015-07-10 Thread Dmitriy
i inserted pids = Vote.where(subject_type: 'Photo').pluck(:subject_id).uniq unless pids.empty? but again same error пятница, 10 июля 2015 г., 17:27:12 UTC+3 пользователь Elizabeth McGurty написал: > > If I am reading your error message correctly: > UPDATE photos SET votes_count = 0, ratin

[Rails] [JOBS] RedHat Israel is Hiring!!! Software Engineer (RoR)- Container Management

2015-07-10 Thread Edit Aharonovich
http://jobs.redhat.com/jobs/descriptions/software-engineer-container-management-raanana-hamerkaz-central-israel-job-2-5259481 -- 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

[Rails] Re: Error in migration - Error: You have an error in your SQL syntax; check the manual that corresponds

2015-07-10 Thread Elizabeth McGurty
If I am reading your error message correctly: UPDATE photos SET votes_count = 0, rating = 0 WHERE id NOT IN () Looks like your IN Operator is empty. Pretty sure that will throw an error. If I am correct, I think that you should check the return on pids. Otherwise, thanks for this offering I

[Rails] How should I organize this data?

2015-07-10 Thread Aries Gao
Hi Guys, new to RoR but I've been stuck on this problem for a few days now. So goal is to scrape this data -- http://lol.esportspedia.com/wiki/Riot_League_Championship_Series/North_America/2015_Season/Summer_Season/Picks_and_Bans - and then organize it in the following format - the teams

[Rails] Error in migration - Error: You have an error in your SQL syntax; check the manual that corresponds

2015-07-10 Thread Dmitriy
Cant undestand what wrong with syntax sql file migration. please, help: i run rake:db:migrate error: Mysql2::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1: UPDATE photos SET votes_coun

[Rails] Re: How import dump database sql in current project?

2015-07-10 Thread Dmitriy
thank you, Mike пятница, 10 июля 2015 г., 11:42:09 UTC+3 пользователь Mike написал: > > I just do it from the shell (command) prompt > > On Friday, 10 July 2015 09:16:38 UTC+1, Dmitriy wrote: >> >> import command running i in mysql console or whe? >> >> пятница, 10 июля 2015 г., 11:11:10 UTC+3 пол

[Rails] Re: How import dump database sql in current project?

2015-07-10 Thread Mike
I just do it from the shell (command) prompt On Friday, 10 July 2015 09:16:38 UTC+1, Dmitriy wrote: > > import command running i in mysql console or whe? > > пятница, 10 июля 2015 г., 11:11:10 UTC+3 пользователь Mike написал: >> >> First run the migrations, so that Rails has the database in the si

[Rails] Re: How import dump database sql in current project?

2015-07-10 Thread Dmitriy
import command running i in mysql console or whe? пятница, 10 июля 2015 г., 11:11:10 UTC+3 пользователь Mike написал: > > First run the migrations, so that Rails has the database in the situation > that it thinks is right, then you can import the data (which I hope is in > the same database form

[Rails] Re: How import dump database sql in current project?

2015-07-10 Thread Mike
First run the migrations, so that Rails has the database in the situation that it thinks is right, then you can import the data (which I hope is in the same database format) To import the data, you should be able to use something like mysql -u username database < database_dump.sql On Friday,

[Rails] How import dump database sql in current project?

2015-07-10 Thread Dmitriy
Hi I have source code of project with migrations. i want run this project on my pc. I want create new mysql DB and import dates from dump file. I cant undestand very good how correct import dump sql file in mysql database? First need i run migrations in project? And second import values from

Re: [Rails] Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

2015-07-10 Thread Dmitriy
Its was wrong path socket.Thank you! пятница, 10 июля 2015 г., 2:41:05 UTC+3 пользователь Walter Lee Davis написал: > > > On Jul 9, 2015, at 11:14 AM, Norm Scherer > wrote: > > > look in your mysql configuration file to see where the socket really is, > it can vary depending on the system. Is