[Rails] Carrierwave save nil value on database

2014-10-03 Thread Adham El-Deeb
I'm using *Rails-api* with *mongoid*. I try to upload user avatar using *Carrierwave* from a *remote url*. I got the*remote url* form *omniauth-facebook* image params. The problem is the *avatar* field in *Databass* have nil value after save. This is my app on github https://github.com/adham90/pp

[Rails] Re: New Project needs push notifications

2014-10-03 Thread Jim
On Tuesday, September 30, 2014 2:02:16 PM UTC-4, Ruby-Forum.com User wrote: On a side note: in the past, I've used Apache. Sometimes with Passenger and sometimes without. I'm curious on httpd recommendations as well. I've used ActionController::Live with Passenger and Apache, so the

[Rails] template inheritance and nested view directories

2014-10-03 Thread Rob Bartoszynski
So I really like template inheritance for reducing view code duplication (which has been and is current an issue on our project). However, it doesn't work well with nested view directories. Here's an example of the issue: app/ view/ abstract_summaries/ ... slides/

[Rails] [JOBS] Remote Mid to Junior Role - reinteractive - Rails Systems Operations

2014-10-03 Thread Glenn Davy
Hi All reinteractive are an Australian company expanding globally through our Sentinel Operations as a Service platform https://reinteractive.net/service/sentinel and are looking to hire two to three junior to mid Rails Operations staff from around the world. These new team members should

[Rails] Gem: Bootstrap-Material-Design Released

2014-10-03 Thread Paul King
Now you can find it at Github https://github.com/Aufree/bootstrap-material-design. I have a bit of work to do before it will be done, but if you'd like to contribute feel free to fork it. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group.

[Rails] What makes YOU a happy Ruby on Rails developer?

2014-10-03 Thread Pablo Alonso García
Hello! I'm running a quick survey to learn about what makes Ruby on Rails developers like YOU happy https://docs.google.com/forms/d/1fk2TJkMaGzbO5pThFFQKFhDgXQOEPUWFn1PS4n1-ZwU/viewform and what motivates YOU when choosing a new company/project/team. I would love to have as much

[Rails] Re: What makes YOU a happy Ruby on Rails developer?

2014-10-03 Thread KlausG
Looking at your survey: what means 1 and 5 ?? 1 = strongly agree o r 5 strongly agree ? Am Freitag, 3. Oktober 2014 10:15:39 UTC+2 schrieb Pablo Alonso García: Hello! I'm running a quick survey to learn about what makes Ruby on Rails developers like YOU happy

[Rails] Re: What makes YOU a happy Ruby on Rails developer?

2014-10-03 Thread Pablo Alonso García
Hello, 1 = Less important 5 = More important Thanks for your feedback. Pablo http://trabajosrails.com On Friday, October 3, 2014 12:31:20 PM UTC+2, KlausG wrote: Looking at your survey: what means 1 and 5 ?? 1 = strongly agree o r 5 strongly agree ? Am Freitag, 3. Oktober 2014 10:15:39

[Rails] Re: Scaffolding for pre-existing database table in 2.0.1

2014-10-03 Thread Richard Lenawasae
Email Address:richardlenawa...@gmail.com Hi, I'm developing a heavy project using Ruby on Rails, and I already have a big database schema in my sublime text,but my database has a dozen of fields of tables which are sometimes very tiresome when scaffolding such as £rails g scaffold profile

Re: [Rails] Scaffolding for pre-existing database table in 2.0.1

2014-10-03 Thread Jason Fleetwood-Boldt
Although old, ActiveScaffold is still an excellent, efficient, unobtrusive, scalable, and highly effective solution to build out lots of quick list views (complete with searching, sorting, and pagination) and CRUD actions. Check out: http://activescaffold.com The front-end isn't very

[Rails] Re: Scaffolding for pre-existing database table in 2.0.1

2014-10-03 Thread Richard Lenawasae
Email Address:richardlenawa...@gmail.comJason Fleetwood-Boldt @Jasonfb, i guess i did alot of research on ruby on rails as far scaffolding is concern, but you find when it comes on real world boilerplate applications..it's kind of a nightmare when we try oldschool method 'scalfolding' because

Re: [Rails] Carrierwave save nil value on database

2014-10-03 Thread Alexandre Calvão
From the carrierwave documentation %= form_for @user, :html = {:multipart = true} do |f| % p labelMy Avatar URL:/label%= image_tag(@user.avatar_url) if @user.avatar? %%= f.text_field :remote_avatar_url % /p% end % It means that the parameter avatar should have the '_url' sufix. You

Re: [Rails] Carrierwave save nil value on database

2014-10-03 Thread Alexandre Calvão
It also requires the 'remote' prefix. === *Alexandre Mondaini Calvão* *Nossa recompensa se encontra no esforço e não no resultado. Um esforço total é uma vitória completa*. [Ghandi] 2014-10-03 12:19 GMT-03:00 Alexandre Calvão apot...@gmail.com: From the carrierwave

Re: [Rails] Scaffolding for pre-existing database table in 2.0.1

2014-10-03 Thread Jason Fleetwood-Boldt
I generally do not use the rails built-in scaffolding generators. They are from the early days of rails and while they may have some usefulness, they do not save me time in the long run. One table that contains over 100 column fields doesn't sound like a good database design -- maybe you

Re: [Rails] Carrierwave save nil value on database

2014-10-03 Thread Adham El-Deeb
there is no *html* on my app it is an *API* and i want to save the user from the *User Model *it self On Friday, October 3, 2014 5:20:16 PM UTC+2, Alexandre Calvão wrote: From the carrierwave documentation %= form_for @user, :html = {:multipart = true} do |f| % plabelMy Avatar

[Rails] Access asset from asset-pipeline inside a gem

2014-10-03 Thread Martin Trummer
Hi @ all, I have a gem, which implements an engine, to provide assets. Pretty much like the following example: http://brandonhilkert.com/blog/how-to-build-a-rails-engine/ However, my gem serves images. In a rails app, I can access the image using image_path - so far so good. My problem now is,

Re: [Rails] Carrierwave save nil value on database

2014-10-03 Thread Hassan Schroeder
On Fri, Oct 3, 2014 at 8:54 AM, Adham El-Deeb adham.eldee...@gmail.com wrote: there is no html on my app it is an API and i want to save the user from the User Model it self 1) What client are you using? 2) What params are being logged for a create request? 3) What does the log show for a

Re: [Rails] Carrierwave save nil value on database

2014-10-03 Thread Alexandre Calvão
Adham, The code I posted was just to show you that Carrierwave requires that you add a suffix remote_ and a prefix '_url' to the parameter managed by carrierwave, in order for it to work with urls. In your case the following code is not doing that, you are passing the the parameter 'avatar'

Re: [Rails] Carrierwave save nil value on database

2014-10-03 Thread Adham El-Deeb
Thanks! *Alexandre *it works :D On Friday, October 3, 2014 9:25:23 PM UTC+2, Alexandre Calvão wrote: Adham, The code I posted was just to show you that Carrierwave requires that you add a suffix remote_ and a prefix '_url' to the parameter managed by carrierwave, in order for it to work