Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Jorge Fuertes
    @jorgefuertes
    @waghanza Haha, thank you.
    Christoph Haas
    @Softener_gitlab
    I would be very disappointed in humanity (even more than now) if Ruby would go away. Developing both in Python and Ruby I must say that Ruby is the only language not getting in my way. I've tried NodeJS/JS and that's even worse than Python. Nah… Ruby needs to stay. Or I'll switch jobs to something with wood and flowers.
    Marwan Rabbâa
    @waghanza
    ruby has so many variants that I do not think it would perish, there is crystal and elixir with the same fun coding, but having a slightly different purpose
    Christoph Haas
    @Softener_gitlab
    It's crazy how many programming languages emerge. I even mix up Python and Ruby. Maybe I'm getting old but running after every hype makes me tired. Go might be interesting but I don't even feel an urge to learn that.
    Marwan Rabbâa
    @waghanza
    yeah, there is a lot of languages to emerge
    Christoph Haas
    @Softener_gitlab
    Besides in a job context it's pretty pointless to use anything "unusual". Some of our devs are slowly moving from PHP to JS… most stay in the old world. My sysadmin coworkers even frown upon my use of Ruby. They believe that Python is "crazy already".
    Marwan Rabbâa
    @waghanza
    most of it are hypes in deed, but their are some values (for example, crystal is compiled but have a ruby syntax)
    Christoph Haas
    @Softener_gitlab
    At least in "big data" stuff they use Python so that's okay. But if I have worked Ruby for a while I can't stand how unnecessarily complicated Python makes my life. :)
    Marwan Rabbâa
    @waghanza
    :-)
    Jorge Fuertes
    @jorgefuertes
    @Softener_gitlab I understand you, I love ruby.
    José Santos Martins Pereira
    @jsmpereira
    Hello :wave:
    José Santos Martins Pereira
    @jsmpereira
    I'm having an issue with params expansion in routes with mustermann. With the old router I have no issues. With mustermann a call like absolute_url(:posts, :index) resolves to a more specific route like /posts/:year/:monthand errors out with Mustermann::ExpandError: cannot expand with keys [], possible expansions: [:year, :month]. Apologies if there is some documentation/migration guide out there that I missed that addresses this. Thank you for your time.
    José Santos Martins Pereira
    @jsmpereira
    Do I maybe need to have distinct name routes for disambiguation?
    Because previously I could name all routes :index and the old router it seems would disambiguate based on request method and params?
    José Santos Martins Pereira
    @jsmpereira
    Because I could have , for example
    Demo::App.controllers :posts do
      get :index do; end # /posts
      get :index, with: :id do; end # /posts/:id
      get :index, with: [:year, :month] do; end # /posts/:year/:month
      post :index do; end # /posts
      patch :index, with :id do; end # /posts/:id
      delete :index, with: :id do; end # /posts/:id
    end
    And there was no issue for absolute_url(:posts, :index) to resolve to /posts
    Nagesh Vanam
    @ngshvanam
    Hi, Can anybody help me with when will be the padrino 0.11.4 will get to EOL ?
    Where Can I find that information?
    Ralph Brown
    @KidFischer_twitter
    I am new to ruby (like couple weeks new) and trying to implement omniauth-okta but getting the following error "OmniAuth::Strategies::OAuth2::CallbackError at /auth/okta/callback
    csrf_detected | CSRF detected" I have know clue as how to proceed
    Matthias Günther
    @wikimatze
    @KidFischer_twitter good be a relation between your vendor and padrino - you proably disable CSRF for the callback route to go on.
    I have created a trailer for my YouTube Channel about Padrino under https://youtu.be/9ZEykhzDjfA - would be great if you like the video to help me with the channel.
    Matthias Günther
    @wikimatze
    New blog post: "Story behind the Padrino logo" http://padrinorb.com/blog/story-behind-padrino-logo/
    Nolan Mayersky
    @nolyoi

    I am new to ruby (like couple weeks new) and trying to implement omniauth-okta but getting the following error "OmniAuth::Strategies::OAuth2::CallbackError at /auth/okta/callback
    csrf_detected | CSRF detected" I have know clue as how to proceed

    padrino/padrino-framework#1258

    Matthias Günther
    @wikimatze
    @nolyoi welcome on board. Haven' worked with omniauth-okta (prefer my own authentication system), but as you mentioned should https://github.com/padrino/padrino-framework/issues/1258#issuecomment-20269121 give you the solution.
    Josh Crank
    @jtcrank
    Is there a way to add a dynamic segment to the padrino log?
    I need each log line to have a trace_id prepended which will continually update with every request. I'm hoping I don't have to install a new logger and update throughout the entire application
    Matthias Günther
    @wikimatze
    @jtcrank I think you need to register an extension and load it directly to your project - so it's a new feature.
    Hey, there NoMethodError error for generated mailers with latest padrino 0.15.0, issue request created under padrino/padrino-framework#2232.
    Devan
    @CyberFerret
    Hey guys, I just upgraded an old project from 13.1 to 15.0, and when trying to boot up, I am getting the message "NoMethodError - undefined method 'mailer' for StudentPortal::App:Class:". I have checked and under "module StudentPortal
    class App < Padrino::Application" I do have "register Padrino::Mailer" as the next line. Any ideas?
    Devan
    @CyberFerret
    Ah, sorry, just saw the conversation above about #2322 - Looks like that is the problem. Is upgrading the Sinatra gem the best solution here?
    Devan
    @CyberFerret
    Cancel my earlier messages. Forcing my Gemfile to use Sinatra 2.0.8.1 instead of 2.1.0 did the trick.
    Ole Kleinschmidt
    @okleinschmidt
    Good morning. I really need some help. My Padrino App has a sub-app, I'd like to share the layout from the main-app with the sub-app, I got it working with render 'index', :layout => AppX::AppX.layout_path('application'), locals: { all: all } but when I start padrino with -e production that doesn't work anymore. :-(
    Devan
    @CyberFerret
    Hi @okleinschmidt, I found with my sub-apps, it was far easier to include the line set :public_folder, PADRINO_ROOT + '/public' in the app.rb file in each sub-app - then the sub-app looks at the same 'public' folder as the main app, and I don't have to specify a hard path to the :layout each time.
    Ole Kleinschmidt
    @okleinschmidt
    @CyberFerret Hi! Thanks, I haven’t tried that yet, but it sound like the sub-app will then have access to /public/stylesheets etc. which it already has?! I’m locking for a solution to use project/mainapp/views/layouts/application.rb for project/subapp/app.rb.
    @CyberFerret By now I’ve copied this file to project/subapp/views/layouts/application.rb - not pretty, but works.
    José Santos Martins Pereira
    @jsmpereira
    Hi. Is it still possible to use sinatra-like routes, without using an alias, like get "/hello-world" do; ...; end. I just end up with a 404
    Slava Nikulin
    @slava-nikulin
    hey. I wonder, how to use flash messages in padrino?
    Josh Crank
    @jtcrank
    I am looking at an app that has a before route_regex do ... end inside of a configure block in app.rb. It appears to set up stuff to do before going to routes that match the regex in any of the controllers, but I'm not clear on how this works. Can anyone point me to the documentation on that, or shed some light on it for me?
    Jorge Fuertes
    @jorgefuertes
    Hi, I'm updating and old project and Mailer doesn't works anymore. I got ERROR - NoMethodError - undefined method 'mailer' for MyProject::App:Class:. Any ideas? Thanks.
    Jorge Fuertes
    @jorgefuertes
    My mailer is
    MyProject::App.mailer :error do
      email :notify do |report|
        from 'noreply@domain.com'
        to 'sistemas@domain.com'
        to 'soporte@domain.com' if Padrino.env == :production
        subject "Error #{report.code}: #{report.message}"
        content_type 'text/html'
        render :report, layout: :mail, locals: { report: report }
      end
    end
    Devan
    @CyberFerret
    Hey Jorge, I think there is a discussion about this earlier in this Gitter thread, but you will have to downgrade the version of Sinatra that you project is using to get this to work. Add the line gem 'sinatra', '2.0.8.1' in your Gemfile and see if that eliminates the error about Mailer.
    1 reply
    Aashish Gangwani
    @aashishg
    Does anybody know where is the documentation or function definition of redirect url()
    Ole Kleinschmidt
    @okleinschmidt
    Hi folks! I'm wondering why I can change the layout for sub-apps but not for the main app? for sub-apps "layout File.expand_path('../../assets/views/application.erb', FILE)" works, but not for the main app, any ideas?
    1 reply
    Maykol
    @maykol
    Hello, I have problems installing godfather, I would like to know if it is necessary to work with ruby ​​2.3 or can I do it with ruby ​​3, I think the problem is in the dependencies, has someone passed this on to him now?
    Maykol
    @maykol
    Help me !
    Adrian Valenzuela
    @adrianvalenz
    @maykol It looks like it just supports Ruby 2.3. The changelogs mention dropped support for 2.3, but nothing on supporting Ruby 3
    Maykol
    @maykol
    @adrianvalenz gracias.
    _ka_
    @ka_:matrix.code-feather.de
    [m]
    @divjot124: Why did you think Padrino has a more or greater design flexibility than Rails or other Frameworks? And my Question is in what point has Padrino the greater design flexibility? Routing, Structure ..... ? 🙂
    Matthias Günther
    @wikimatze
    Finalizing the circleci continuous integration setup under padrino/padrino-framework#2251.